mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-22 21:16:28 +01:00
Improved initial data handling
This commit is contained in:
parent
bea4430721
commit
f38598a854
1 changed files with 8 additions and 0 deletions
|
|
@ -9,6 +9,14 @@ esphome:
|
||||||
priority: 200.0
|
priority: 200.0
|
||||||
then:
|
then:
|
||||||
- component.update: eink_display
|
- component.update: eink_display
|
||||||
|
- wait_until:
|
||||||
|
condition:
|
||||||
|
lambda: 'return id(data_updated) == true;'
|
||||||
|
# Wait a bit longer so all the items are received
|
||||||
|
- delay: 5s
|
||||||
|
- logger.log: "Initial sensor data received: Refreshing display..."
|
||||||
|
- lambda: 'id(initial_data_received) = true;'
|
||||||
|
- script.execute: update_screen
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue