jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.67k stars 612 forks source link

Feature Request: datetime of current value via mqtt #79

Closed HJS72 closed 3 years ago

HJS72 commented 3 years ago

Please add a new object transmitted via mqtt with the timestamp of the last checked value. Can be used to check if the esp32cam is still alive.

jomjol commented 3 years ago

@HJS72 I readout the transmission time from my MQTT-Server. If you want to know, if the connection is still alived, there has been recently (currently only Branch rolling) another feature been added: If you activate the MQTT ErrorTopic, a Last Will Testament is defined, that will produce a "connection lost" if the ESP32CAM is not responsive anymore. Just readout this topic. Is that sufficient for you? Please give a short notive, so I could close this topic again.

HJS72 commented 3 years ago

Reading the transmission time was my fallback solution ;-) This will need some lines of code in my iobroker but will work for me. Thanks for great code and support. Enjoy your cup of coffee.

jomjol commented 3 years ago

You're welcome and thank you very much for the coffee!