made some basic scripts for every setup

This commit is contained in:
Martijn
2024-11-12 19:03:13 +01:00
parent 30f39857b0
commit 62f045a71d
6 changed files with 132 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@
packages: packages:
base: !include base.yaml base: !include base.yaml
scripts: !include 1bar_1display_scripts.yaml
mcp23008: mcp23008:
- id: 'base_J2' - id: 'base_J2'
+37
View File
@@ -0,0 +1,37 @@
##############################################
## ##
## filename: 1bar_1display_scripts.yaml ##
## description: Specific pre-defined ##
## scripts for 1 BAR 1 Display setup ##
## ##
##############################################
script:
- id: update_main
then:
- component.update: main_display
- id: update_all
then:
- component.update: main_display
- component.update: bar1_display_left
- component.update: bar1_display_right
- id: next_page_main
then:
- display.page.show_next: main_display
- script.execute: update_main
- id: next_page_all
then:
- display.page.show_next: main_display
- display.page.show_next: bar1_display_left
- display.page.show_next: bar1_display_right
- script.execute: update_all
- id: prev_page_main
then:
- display.page.show_previous: main_display
- script.execute: update_main
- id: prev_page_all
then:
- display.page.show_previous: main_display
- display.page.show_previous: bar1_display_left
- display.page.show_previous: bar1_display_right
- script.execute: update_all
+1
View File
@@ -8,6 +8,7 @@
packages: packages:
base: !include base.yaml base: !include base.yaml
scripts: !include 1bar_1display_scripts.yaml
mcp23008: mcp23008:
- id: 'base_J1' - id: 'base_J1'
+43
View File
@@ -0,0 +1,43 @@
##############################################
## ##
## filename: 1bar_1display_scripts.yaml ##
## description: Specific pre-defined ##
## scripts for 2 BAR 1 Display setup ##
## ##
##############################################
script:
- id: update_main
then:
- component.update: main_display
- id: update_all
then:
- component.update: main_display
- component.update: bar1_display_left
- component.update: bar1_display_right
- component.update: bar2_display_left
- component.update: bar2_display_right
- id: next_page_main
then:
- display.page.show_next: main_display
- script.execute: update_main
- id: next_page_all
then:
- display.page.show_next: main_display
- display.page.show_next: bar1_display_left
- display.page.show_next: bar1_display_right
- display.page.show_next: bar2_display_left
- display.page.show_next: bar2_display_right
- script.execute: update_all
- id: prev_page_main
then:
- display.page.show_previous: main_display
- script.execute: update_main
- id: prev_page_all
then:
- display.page.show_previous: main_display
- display.page.show_previous: bar1_display_left
- display.page.show_previous: bar1_display_right
- display.page.show_previous: bar2_display_left
- display.page.show_previous: bar2_display_right
- script.execute: update_all
+1
View File
@@ -8,6 +8,7 @@
packages: packages:
base: !include base.yaml base: !include base.yaml
scripts: !include 1bar_1display_scripts.yaml
mcp23008: mcp23008:
- id: 'base_J0' - id: 'base_J0'
+49
View File
@@ -0,0 +1,49 @@
##############################################
## ##
## filename: 1bar_1display_scripts.yaml ##
## description: Specific pre-defined ##
## scripts for 3 BAR 1 Display setup ##
## ##
##############################################
script:
- id: update_main
then:
- component.update: main_display
- id: update_all
then:
- component.update: main_display
- component.update: bar1_display_left
- component.update: bar1_display_right
- component.update: bar2_display_left
- component.update: bar2_display_right
- component.update: bar3_display_left
- component.update: bar3_display_right
- id: next_page_main
then:
- display.page.show_next: main_display
- script.execute: update_main
- id: next_page_all
then:
- display.page.show_next: main_display
- display.page.show_next: bar1_display_left
- display.page.show_next: bar1_display_right
- display.page.show_next: bar2_display_left
- display.page.show_next: bar2_display_right
- display.page.show_next: bar3_display_left
- display.page.show_next: bar3_display_right
- script.execute: update_all
- id: prev_page_main
then:
- display.page.show_previous: main_display
- script.execute: update_main
- id: prev_page_all
then:
- display.page.show_previous: main_display
- display.page.show_previous: bar1_display_left
- display.page.show_previous: bar1_display_right
- display.page.show_previous: bar2_display_left
- display.page.show_previous: bar2_display_right
- display.page.show_previous: bar3_display_left
- display.page.show_previous: bar3_display_right
- script.execute: update_all