In my Tinkerforge2mqtt -> HomeAssistant i expose the “uptime” of the host system in seconds via MQTT:
Another value is the “run time of the script” in seconds:
I exposed this values with:
- state_class: measurement
- device_class: null
- unit_of_measurement: seconds
- suggested_display_precision: 0
How can I change this so that the user can get reasonable values in the UI?
Maybe i should try to look into System monitor - Home Assistant sources?!?