Hello,
is it possible to send a timestamp of an event using MQTT?
i want to see the timestamp on the gui [web] and i want it to be updated using my esp8266 ntp client
thank you
Hello,
is it possible to send a timestamp of an event using MQTT?
i want to see the timestamp on the gui [web] and i want it to be updated using my esp8266 ntp client
thank you
Timestamp like a text field?
MQTT Sensor would most likely be the way to go.
Something like this (untested) could work.
Assuming your sending something like this from your esp8266.
esp8266/ntp
{"_name":"esp8266ntp","timestamp":2016-06-07 05:30:18.063570}
sensor:
platform: mqtt
state_topic: "esp8266/ntp/"
name: "Timestamp"
value_template: '{{ value_json.timestamp }}'