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

MQTT reporting system status

Open henriklund opened this issue 1 year ago • 3 comments

Describe your problem I use a standard MQTT JSON for receiving data. On the previous version I had installed (v2.1.14) this worked as a charm. However, after v.2.2.3 I noted my graphs have started to get 'holes' in them. Further investigation shows that the reason is that the MQTT reports a normal data package (list 4) immediately followed by 'System data'. Since I pull the tPI information for the overall state of the entity, I had to create a workaround to get the value from previous message. This is not pretty since it relies on the assumption of a specific order in messages. Secondly I pull all data and apply those as the entities attribute. Those data (attributes) are used in various Grafana graphs. The introduction of a (almost) blank 'System data' message means that once every minute, attributes will be blank since the 'System data' message does not contain any relevant data (similar to list 4).

I thus wonder what purpose the 'System data' serves, and if there is any way to avoid this message? I do recognize that there is an option to use 'Home Assistant' format for MQTT. However, I created my setup prior to this, and it has been working flawlessly ever since (well until now).

Hardware information:

  • Country: DK
  • Meter: Kampstrup
  • Encryption enabled: yes
  • AMS reader: Pow-K ESP8266
  • M-bus adapter (if applicable): N/A
  • Relevant firmware information:

Version: 2.2.3

  • MQTT: yes
  • MQTT payload type: JSON
  • HAN GPIO: GPIO3 (according to configfile)
  • HAN baud and parity: 2400 8N1
  • Temperature sensors: N/A
  • ENTSO-E API enabled: yes (although ESP8266 does not provide possibility to enter ENTSO-E API key)

henriklund avatar Jan 31 '23 14:01 henriklund