Skip to content

Commit 04e3989

Browse files
committed
add script on_boot_scripts
1 parent 6feefb2 commit 04e3989

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

dev-sdl.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,7 @@ esphome:
170170
comment: "ESPHome HomeAssistant General Purpose Interface Panel"
171171
on_boot:
172172
then:
173-
- script.execute: hide_unwanted_rooms
174-
- script.execute: hide_unwanted_tabs
175-
- delay: 2s
176-
- script.execute: sync_all_window_contact_ui
173+
- script.execute: on_boot_scripts
177174

178175
# Webserver is exposed under regular use
179176
#web_server:

include/scripts.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
# Time update script
77
# This is run once per minute.
88
script:
9+
- id: on_boot_scripts
10+
then:
11+
- delay: 2s
12+
- script.execute: hide_unwanted_rooms
13+
- script.execute: hide_unwanted_tabs
14+
- script.execute: sync_all_window_contact_ui
15+
916
- id: time_update
1017
then:
1118
# The format %I:%M %p will display the time in a 12-hour format with "am" or "pm" included

main.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ substitutions:
105105

106106
# Current target temperature sensor
107107
ha_temperature_target_sensor: "sensor.temperature_target"
108+
temp_current_target_label: "Target Temperature"
108109

109110
# --------------------------------------------------------------------------
110111
# Scene configuration
@@ -176,10 +177,7 @@ esphome:
176177
comment: "ESPHome HomeAssistant General Purpose Interface Panel"
177178
on_boot:
178179
then:
179-
- delay: 2s
180-
- script.execute: hide_unwanted_rooms
181-
- script.execute: hide_unwanted_tabs
182-
- script.execute: sync_all_window_contact_ui
180+
- script.execute: on_boot_scripts
183181

184182
# Webserver is exposed under regular use
185183
web_server:

0 commit comments

Comments
 (0)