mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
888552ace1 | ||
|
|
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);
|
||||
@@ -101,8 +101,6 @@ display:
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, 126, 15);
|
||||
it.printf(64,11, id(size_10), TextAlign::BASELINE_CENTER, "bone IO");
|
||||
it.printf(4, 25, id(dejaVuSmall), TextAlign::BASELINE_LEFT ,"Current:");
|
||||
it.printf(124, 25, id(dejaVuSmall), TextAlign::BASELINE_RIGHT ,"%.3fA", id(ina_current).state);
|
||||
it.printf(4, 37, id(size_10), TextAlign::BASELINE_LEFT ,"IP addr:");
|
||||
it.printf(124, 37, id(size_10), TextAlign::BASELINE_RIGHT ,"%s", id(ip_address).state.c_str());
|
||||
it.printf(4, 49, id(size_10), TextAlign::BASELINE_LEFT ,"Uptime:");
|
||||
|
||||
Reference in New Issue
Block a user