This commit is contained in:
pszafer
2024-04-09 17:44:28 +02:00
parent 6158e73526
commit cebd3d9e45

View File

@@ -7,7 +7,7 @@ sensor:
on_raw_value:
then:
- text_sensor.template.publish:
7 id: wt32_uptime
id: wt32_uptime
state: !lambda |-
int seconds = round(id(wt32_uptime_seconds).raw_state);
int days = seconds / (24 * 3600);