diff --git a/package/1bar_1display.yaml b/package/1bar_1display.yaml index b445575..a73d658 100644 --- a/package/1bar_1display.yaml +++ b/package/1bar_1display.yaml @@ -8,6 +8,7 @@ packages: base: !include base.yaml + scripts: !include 1bar_1display_scripts.yaml mcp23008: - id: 'base_J2' diff --git a/package/1bar_1display_scripts.yaml b/package/1bar_1display_scripts.yaml new file mode 100644 index 0000000..bfd3ef1 --- /dev/null +++ b/package/1bar_1display_scripts.yaml @@ -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 diff --git a/package/2bar_1display.yaml b/package/2bar_1display.yaml index f7a3396..b33d72a 100644 --- a/package/2bar_1display.yaml +++ b/package/2bar_1display.yaml @@ -8,6 +8,7 @@ packages: base: !include base.yaml + scripts: !include 1bar_1display_scripts.yaml mcp23008: - id: 'base_J1' diff --git a/package/2bar_1display_scripts.yaml b/package/2bar_1display_scripts.yaml new file mode 100644 index 0000000..5e25269 --- /dev/null +++ b/package/2bar_1display_scripts.yaml @@ -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 diff --git a/package/3bar_1display.yaml b/package/3bar_1display.yaml index 2fdf957..651dd9b 100644 --- a/package/3bar_1display.yaml +++ b/package/3bar_1display.yaml @@ -8,6 +8,7 @@ packages: base: !include base.yaml + scripts: !include 1bar_1display_scripts.yaml mcp23008: - id: 'base_J0' diff --git a/package/3bar_1display_scripts.yaml b/package/3bar_1display_scripts.yaml new file mode 100644 index 0000000..581fa41 --- /dev/null +++ b/package/3bar_1display_scripts.yaml @@ -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