From f38598a854f26b3e705edd9072114ed97614e4eb Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Fri, 18 Nov 2022 21:45:55 +0100 Subject: [PATCH] Improved initial data handling --- weatherman.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/weatherman.yaml b/weatherman.yaml index b1a9bc4..7c9ea7a 100644 --- a/weatherman.yaml +++ b/weatherman.yaml @@ -9,6 +9,14 @@ esphome: priority: 200.0 then: - 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: board: esp32dev