uptime 传感器允许您以秒为单位跟踪 ESP 保持运行的时间。时间翻转会自动处理。
uptime
# 示例配置条目sensor: - platform: uptime type: seconds name: 运行时间传感器
type (可选): 可以是:
seconds
timestamp
update_interval (可选, 时间): 传感器报告间隔。默认为 60s。仅对 type: seconds 有效。
60s
type: seconds
传感器的所有其他选项。