Uptime Sensor

The uptime sensor allows you to track the time the ESP has stayed up for in seconds. Time rollovers are automatically handled.

# Example configuration entry
sensor:
  - platform: uptime
    name: Uptime Sensor

Configuration variables:

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.

  • id (Optional, ID): Set the ID of this sensor for use in lambdas.

  • All other options from Sensor.

See Also