You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Markus,
I installed my Noah 2000 yesterday and also setup the HA integration. And now I was just looking into the HA discovery stuff and wanted to check how the sensors have been registered.
But I had to restart noah-mqtt to get the HA registration messages again.
E.g. topic: homeassistant/sensor/noah_0PV.../OutputPower/config { "name":"Output Power", "device_class":"power", "state_topic":"noah2mqtt/0PV...", "state_class":"measurement", "unit_of_measurement":"W", "value_template":"{{ value_json.output_w }}", "unique_id":"0PV..._output_power", "device": { "identifiers":[ "noah_0PV..." ], "name":"NOAH 2000", "manufacturer":"Growatt", "sw_version":"07.08.05.4004", "model":"NOAH 2000", "serial_number":"0PV..." }, "origin": { "name":"noah-mqtt", "sw_version":"0.0.24", "support_url":"https://github.com/mtrossbach/noah-mqtt" } }
It would be great if you could set the retain flag in method https://github.com/mtrossbach/noah-mqtt/blob/main/internal/homeassistant/service.go#L42 to true because that allows to read the messages from the mqtt server at any time.
E.g. s.options.MqttClient.Publish(topic, 0, false, string(b))
would become s.options.MqttClient.Publish(topic, 0, true, string(b))
Thanks
Klaus
The text was updated successfully, but these errors were encountered:
Hi Markus,
I installed my Noah 2000 yesterday and also setup the HA integration. And now I was just looking into the HA discovery stuff and wanted to check how the sensors have been registered.
But I had to restart noah-mqtt to get the HA registration messages again.
E.g. topic: homeassistant/sensor/noah_0PV.../OutputPower/config
{ "name":"Output Power", "device_class":"power", "state_topic":"noah2mqtt/0PV...", "state_class":"measurement", "unit_of_measurement":"W", "value_template":"{{ value_json.output_w }}", "unique_id":"0PV..._output_power", "device": { "identifiers":[ "noah_0PV..." ], "name":"NOAH 2000", "manufacturer":"Growatt", "sw_version":"07.08.05.4004", "model":"NOAH 2000", "serial_number":"0PV..." }, "origin": { "name":"noah-mqtt", "sw_version":"0.0.24", "support_url":"https://github.com/mtrossbach/noah-mqtt" } }
It would be great if you could set the retain flag in method https://github.com/mtrossbach/noah-mqtt/blob/main/internal/homeassistant/service.go#L42 to true because that allows to read the messages from the mqtt server at any time.
E.g.
s.options.MqttClient.Publish(topic, 0, false, string(b))
would become
s.options.MqttClient.Publish(topic, 0, true, string(b))
Thanks
Klaus
The text was updated successfully, but these errors were encountered: