Hi,
the device classes of the sensor platform currently only support a timestamp (i.e., a concrete time instant). However, one might be interested in also displaying an elapsed period of time.
In my case, I want to report intervals such as uptime etc. via MQTT. This could be emulated via a binary available / unavailable sensor, however I then can’t distinguish a device restart from a MQTT connection loss. Publishing the “time of boot” as timestamp requires time synchronization and moreover doesn’t really allow for anything that potentially “finishes” (such as charging).
Cheers