miflora-mqtt-daemon
miflora-mqtt-daemon copied to clipboard
DateTime over mqtt-json
https://community.openhab.org/t/xiaomi-mi-flora-plant-sensor-mqtt-client-daemon/33119/53
https://github.com/ThomDietrich/miflora-mqtt-daemon/blob/a7a474b196c7cd299b939a47737ddbac17124b5e/miflora-mqtt-daemon.py#L337
Add:
data['timestamp'] = strftime('%Y-%m-%dT%H:%M:%S', localtime())
Maybe add timezone? Also the openHAB generator function needs to be adapted.
I would prefer Zulu time (UTC) π
I will soon add some updates to this project, especially because of Homie v3, see #57