The startup sensor is mostly like the Uptime Sensor and allows you to track the time the ESP has stayed up, but uses Home Assistant
device class timestamp
, so HA calculates uptime for you automatically.
# Example configuration entry
sensor:
- platform: startup
name: Device Uptime