page update is now out of the loop.
This commit is contained in:
@@ -61,8 +61,5 @@ script:
|
|||||||
- id: update_all
|
- id: update_all
|
||||||
then:
|
then:
|
||||||
- component.update: main_display
|
- component.update: main_display
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar1_left
|
- script.execute: update_bar1_left
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar1_right
|
- script.execute: update_bar1_right
|
||||||
- delay: 0.1s
|
|
||||||
|
|||||||
@@ -103,12 +103,7 @@ script:
|
|||||||
- id: update_all
|
- id: update_all
|
||||||
then:
|
then:
|
||||||
- component.update: main_display
|
- component.update: main_display
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar1_left
|
- script.execute: update_bar1_left
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar1_right
|
- script.execute: update_bar1_right
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar2_left
|
- script.execute: update_bar2_left
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar2_right
|
- script.execute: update_bar2_right
|
||||||
- delay: 0.1s
|
|
||||||
|
|||||||
@@ -154,15 +154,9 @@ script:
|
|||||||
- id: update_all
|
- id: update_all
|
||||||
then:
|
then:
|
||||||
- component.update: main_display
|
- component.update: main_display
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar1_left
|
- script.execute: update_bar1_left
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar1_right
|
- script.execute: update_bar1_right
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar2_left
|
- script.execute: update_bar2_left
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar2_right
|
- script.execute: update_bar2_right
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar3_left
|
- script.execute: update_bar3_left
|
||||||
- delay: 0.1s
|
|
||||||
- script.execute: update_bar3_right
|
- script.execute: update_bar3_right
|
||||||
|
|||||||
+3
-3
@@ -13,7 +13,7 @@ esp32:
|
|||||||
interval:
|
interval:
|
||||||
- interval: 1min
|
- interval: 1min
|
||||||
then:
|
then:
|
||||||
- logger.log: "ESPHome for Button+ v0.1.1"
|
- logger.log: "ESPHome for Button+ v0.1.2_dev"
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
- id: temperature_sensor
|
- id: temperature_sensor
|
||||||
@@ -34,7 +34,7 @@ globals:
|
|||||||
initial_value: '0'
|
initial_value: '0'
|
||||||
- id: page_names
|
- id: page_names
|
||||||
type: std::vector<std::string>
|
type: std::vector<std::string>
|
||||||
initial_value: '{"Page 1"}'
|
initial_value: '{"Page 1","Music","Page 3"}'
|
||||||
- id: active_page_name
|
- id: active_page_name
|
||||||
type: std::string
|
type: std::string
|
||||||
initial_value: ""
|
initial_value: ""
|
||||||
@@ -114,7 +114,7 @@ number:
|
|||||||
id(actual_page) = id(menu_selector).state;
|
id(actual_page) = id(menu_selector).state;
|
||||||
}
|
}
|
||||||
# Refresh the screen
|
# Refresh the screen
|
||||||
# - script.execute: update_page <<< this ends in an loop...
|
- script.execute: update_all # @balk77 update_page results in a loop, moved update_all to here, now test
|
||||||
|
|
||||||
script:
|
script:
|
||||||
######################
|
######################
|
||||||
|
|||||||
Reference in New Issue
Block a user