made some basic scripts for every setup
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
packages:
|
||||
base: !include base.yaml
|
||||
scripts: !include 1bar_1display_scripts.yaml
|
||||
|
||||
mcp23008:
|
||||
- id: 'base_J2'
|
||||
|
||||
@@ -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
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
packages:
|
||||
base: !include base.yaml
|
||||
scripts: !include 1bar_1display_scripts.yaml
|
||||
|
||||
mcp23008:
|
||||
- id: 'base_J1'
|
||||
|
||||
@@ -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
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
packages:
|
||||
base: !include base.yaml
|
||||
scripts: !include 1bar_1display_scripts.yaml
|
||||
|
||||
mcp23008:
|
||||
- id: 'base_J0'
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user