mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cebd3d9e45 |
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user