AMIS smart meter integration with ESPHome (Upper Austria)

My smart meter is a Siemens TD-3511 provided by Netz OÖ GmbH (Upper Austria). It uses M-Bus over Infrared for the communication and encrypts all data with AES. The key can be obtained in the customer area.

I started hacking together an integration for it, based on two other projects: Volkszähler (http://www.volkszaehler.org) and AMIS Leser (http://www.mitterbaur.at).

I have a few questions on how to best implement a few things in ESPHome:

  • The meter reports a timestamp in local time. How can I hand the timestamp over to Home Assistant? Due to the Unix timestamp conversion to float, about 30 seconds of precision is lost if I create a new sensor.
  • The reader acts as an M-Bus slave, so data transmission is initiated by the meter (every second). How can I best make the data reporting interval configurable?

For reference, the code is here: GitHub - andyboeh/esphome-amis: AMIS Smart Meter custom component for ESPHome

Thanks

5 Likes