From 7b04a57a082be40623e7f7e1568a1d186fd84a38 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Tue, 21 Jan 2025 13:00:55 +0100 Subject: [PATCH] Add screen restart and ADC PR to all NSPanels --- mcu-nspanel-bedroom.yaml | 8 ++++++++ mcu-nspanel-dev.yaml | 10 +++++++++- mcu-nspanel-fireplace.yaml | 8 ++++++++ mcu-nspanel-office-j.yaml | 8 ++++++++ mcu-nspanel-office-r.yaml | 10 +++++++++- mcu-nspanel-patio.yaml | 8 ++++++++ 6 files changed, 50 insertions(+), 2 deletions(-) diff --git a/mcu-nspanel-bedroom.yaml b/mcu-nspanel-bedroom.yaml index 6c9e1c2..3753ee7 100644 --- a/mcu-nspanel-bedroom.yaml +++ b/mcu-nspanel-bedroom.yaml @@ -10,6 +10,11 @@ substitutions: esphome: name: mcu-${device} comment: ${comment} + on_boot: + then: + - switch.turn_off: screen_power + - delay: 1s + - switch.turn_on: screen_power esp32: board: nodemcu-32s @@ -22,6 +27,9 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] + - source: github://pr#7942 + components: adc + refresh: 0s - source: components packages: diff --git a/mcu-nspanel-dev.yaml b/mcu-nspanel-dev.yaml index 1a7e4ea..1b7822b 100644 --- a/mcu-nspanel-dev.yaml +++ b/mcu-nspanel-dev.yaml @@ -10,7 +10,12 @@ substitutions: esphome: name: mcu-${device} comment: ${comment} - # on_boot: + on_boot: + then: + - switch.turn_off: screen_power + - delay: 1s + - switch.turn_on: screen_power + # priority: -100 # then: # - wait_until: @@ -35,6 +40,9 @@ external_components: ref: dev refresh: 0s components: [nspanel_lovelace] + - source: github://pr#7942 + components: adc + refresh: 0s - source: components packages: diff --git a/mcu-nspanel-fireplace.yaml b/mcu-nspanel-fireplace.yaml index 77fefba..0e2aa9b 100644 --- a/mcu-nspanel-fireplace.yaml +++ b/mcu-nspanel-fireplace.yaml @@ -10,6 +10,11 @@ substitutions: esphome: name: mcu-${device} comment: ${comment} + on_boot: + then: + - switch.turn_off: screen_power + - delay: 1s + - switch.turn_on: screen_power esp32: board: nodemcu-32s @@ -22,6 +27,9 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] + - source: github://pr#7942 + components: adc + refresh: 0s - source: components packages: diff --git a/mcu-nspanel-office-j.yaml b/mcu-nspanel-office-j.yaml index d808d1c..223262f 100644 --- a/mcu-nspanel-office-j.yaml +++ b/mcu-nspanel-office-j.yaml @@ -10,6 +10,11 @@ substitutions: esphome: name: mcu-${device} comment: ${comment} + on_boot: + then: + - switch.turn_off: screen_power + - delay: 1s + - switch.turn_on: screen_power esp32: board: nodemcu-32s @@ -22,6 +27,9 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] + - source: github://pr#7942 + components: adc + refresh: 0s - source: components packages: diff --git a/mcu-nspanel-office-r.yaml b/mcu-nspanel-office-r.yaml index f0999ff..d7e3839 100644 --- a/mcu-nspanel-office-r.yaml +++ b/mcu-nspanel-office-r.yaml @@ -10,6 +10,11 @@ substitutions: esphome: name: mcu-${device} comment: ${comment} + on_boot: + then: + - switch.turn_off: screen_power + - delay: 1s + - switch.turn_on: screen_power esp32: board: nodemcu-32s @@ -22,6 +27,9 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] + - source: github://pr#7942 + components: adc + refresh: 0s - source: components packages: @@ -248,7 +256,7 @@ light: rgb_order: GRB pin: 23 num_leds: 3 - rmt_channel: 0 + # rmt_channel: 0 chipset: SK6812 effects: - pulse: diff --git a/mcu-nspanel-patio.yaml b/mcu-nspanel-patio.yaml index 807ce04..7424ee0 100644 --- a/mcu-nspanel-patio.yaml +++ b/mcu-nspanel-patio.yaml @@ -10,6 +10,11 @@ substitutions: esphome: name: mcu-${device} comment: ${comment} + on_boot: + then: + - switch.turn_off: screen_power + - delay: 1s + - switch.turn_on: screen_power esp32: board: nodemcu-32s @@ -22,6 +27,9 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] + - source: github://pr#7942 + components: adc + refresh: 0s - source: components packages: