From d79d065851dcac418a66e8a350a87bcf29e0dbfc Mon Sep 17 00:00:00 2001 From: Martijn Date: Mon, 25 Nov 2024 19:04:55 +0100 Subject: [PATCH] added onboot scripts --- package/2bar_1display.yaml | 10 ++++++++++ package/3bar_1display.yaml | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/package/2bar_1display.yaml b/package/2bar_1display.yaml index b7f8302..582b896 100644 --- a/package/2bar_1display.yaml +++ b/package/2bar_1display.yaml @@ -10,6 +10,16 @@ packages: base: !include base.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: - id: 'base_J1' i2c_id: buttons diff --git a/package/3bar_1display.yaml b/package/3bar_1display.yaml index aad5c7f..7c6c8ea 100644 --- a/package/3bar_1display.yaml +++ b/package/3bar_1display.yaml @@ -10,6 +10,18 @@ packages: base: !include base.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: - id: 'base_J0' i2c_id: buttons