hjelev / rpi-mqtt-monitor

Raspberry Pi MQTT Monitor gathers system information and sends it to a MQTT server.
GNU General Public License v3.0
155 stars 41 forks source link

Change uptime to timestamp #76

Open genestealer opened 5 months ago

genestealer commented 5 months ago

Can I suggest changing uptime, to a last boot timestamp. That way Home Assistant will automatically set the time formatting. Like this: image image

Mqtt auto discovery parameters :

{
  "name": "Last Boot",
  "state_topic": "xxxx",
  "device_class": "timestamp",
  "value_template": "{{ as_datetime(value) }}",
  "unique_id": "xxxx",
   etc,
   etc
  }
}