amsreader-firmware icon indicating copy to clipboard operation
amsreader-firmware copied to clipboard

Improve MQTT integration by adding status/debug topic and pr. message type subtopics

Open ujhede opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Just had an "incident" where for some reason data stopped flowing from the meter at midnight last night. I only noticed this because I am still having problems with ENTSO price download currency and was trying to find out what was happening.

Describe the solution you'd like

Would be very uselful if you could post a status/debug topic to MQTT so that you can setup alerts when the HAN indicator changes or the ENTSO download fails. This could potentially also be used as an alternative to telnet debugging where logmessages could be sent to MQTT.

Now that we are are at the subject of MQTT would you consider adding an option to post the different message types to their own sub-topic? Especially consumption and price mesages would be very usefull and avoid parsing errors in HA, when a message does nor have the expected json object like data or prices. Not sure if this is relevant when we get HA autodiscovery.

And finally would you consider add the exchange rate used to convert prices to both the GUI and the prices mqtt message?

Describe alternatives you've considered

This is a perfect idea so I simply cannot think of any alternative :-)

Additional context Add any other context or screenshots about the feature request here.

ujhede avatar Jan 29 '22 10:01 ujhede

Thanks for the suggestion, I will think about how we could do this.

gskjold avatar Jan 30 '22 10:01 gskjold