added onboot scripts

This commit is contained in:
Martijn
2024-11-25 19:04:55 +01:00
parent 0a946467eb
commit d79d065851
2 changed files with 22 additions and 0 deletions
+10
View File
@@ -10,6 +10,16 @@ packages:
base: !include base.yaml base: !include base.yaml
scripts: !include 2bar_1display_scripts.yaml scripts: !include 2bar_1display_scripts.yaml
esphome:
on_boot:
priority: -100
then:
- script.execute: setup_bar_displays
- script.execute: update_bar1_left
- script.execute: update_bar1_right
- script.execute: update_bar2_left
- script.execute: update_bar2_right
mcp23008: mcp23008:
- id: 'base_J1' - id: 'base_J1'
i2c_id: buttons i2c_id: buttons
+12
View File
@@ -10,6 +10,18 @@ packages:
base: !include base.yaml base: !include base.yaml
scripts: !include 3bar_1display_scripts.yaml scripts: !include 3bar_1display_scripts.yaml
esphome:
on_boot:
priority: -100
then:
- script.execute: setup_bar_displays
- script.execute: update_bar1_left
- script.execute: update_bar1_right
- script.execute: update_bar2_left
- script.execute: update_bar2_right
- script.execute: update_bar3_left
- script.execute: update_bar3_right
mcp23008: mcp23008:
- id: 'base_J0' - id: 'base_J0'
i2c_id: buttons i2c_id: buttons