upd: weather-entity, new boot-process

This commit is contained in:
Chris
2023-01-10 17:46:50 +01:00
parent 8ae14a4cff
commit 491b5cb23e
2 changed files with 303 additions and 503 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -872,21 +872,10 @@ display:
tft_url: ${nextion_update_url}
on_setup:
then:
- lambda: id(disp1).send_command_printf("page 8"); ##### CHANGE! - Loading page #####
- lambda: id(disp1).send_command_printf("page 8");
- wait_until:
api.connected
- delay: 0.5s
- if:
condition:
switch.is_on: notification_sound
then:
- rtttl.play: "two short:d=4,o=5,b=100:16e6,16e6"
- delay: 0.5s
- switch.template.publish:
id: nextion_init
state: on
# - lambda: id(disp1).send_command_printf("page 0"); #### home page #####
- delay: 2s ##### gives the display time to update other components & set the home page #####
- number.set:
id: display_brightness
value: !lambda 'return id(display_brightness_global);'
@@ -904,3 +893,7 @@ display:
{
id(disp1).set_component_value("settings.a02",1);
}
- delay: 0.5s
- switch.template.publish:
id: nextion_init
state: on