From 8ebac52160ef0260729f4ce0b3e5e2caf2e709d4 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Tue, 29 Sep 2026 21:01:14 -0400 Subject: [PATCH] Refactor binary sensor initial state handling and update OTA configuration for remote panels --- esphome/family-room-remote.yaml | 7 ++++--- esphome/living-room-remote.yaml | 5 +++-- esphome/panel-hardware-test.yaml | 2 +- esphome/panel-remote-common.yaml | 3 +-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/esphome/family-room-remote.yaml b/esphome/family-room-remote.yaml index bc9e678..8864cdf 100644 --- a/esphome/family-room-remote.yaml +++ b/esphome/family-room-remote.yaml @@ -16,7 +16,7 @@ binary_sensor: - platform: homeassistant id: standing_lamp_state entity_id: light.living_room_lamp_1 - publish_initial_state: true + trigger_on_initial_state: true on_state: - lvgl.widget.update: id: standing_lamp_button @@ -25,7 +25,7 @@ binary_sensor: - platform: homeassistant id: small_lamp_state entity_id: light.small_family_room_lamp - publish_initial_state: true + trigger_on_initial_state: true on_state: - lvgl.widget.update: id: small_lamp_button @@ -34,7 +34,7 @@ binary_sensor: - platform: homeassistant id: tv_stand_state entity_id: light.family_room_tv_stand - publish_initial_state: true + trigger_on_initial_state: true on_state: - lvgl.widget.update: id: tv_stand_button @@ -42,6 +42,7 @@ binary_sensor: checked: !lambda return x; lvgl: + rotation: 90 on_idle: - timeout: 45s then: diff --git a/esphome/living-room-remote.yaml b/esphome/living-room-remote.yaml index ef6a396..5d5066a 100644 --- a/esphome/living-room-remote.yaml +++ b/esphome/living-room-remote.yaml @@ -16,7 +16,7 @@ binary_sensor: - platform: homeassistant id: ceiling_light_state entity_id: light.living_room_light_2 - publish_initial_state: true + trigger_on_initial_state: true on_state: - lvgl.widget.update: id: ceiling_light_button @@ -25,7 +25,7 @@ binary_sensor: - platform: homeassistant id: small_lamp_state entity_id: light.small_living_room_lamp - publish_initial_state: true + trigger_on_initial_state: true on_state: - lvgl.widget.update: id: small_lamp_button @@ -33,6 +33,7 @@ binary_sensor: checked: !lambda return x; lvgl: + rotation: 90 on_idle: - timeout: 45s then: diff --git a/esphome/panel-hardware-test.yaml b/esphome/panel-hardware-test.yaml index d09beea..5e8ab96 100644 --- a/esphome/panel-hardware-test.yaml +++ b/esphome/panel-hardware-test.yaml @@ -24,7 +24,7 @@ api: ota: - platform: esphome - password: !secret ota_password + encryption: wifi: ssid: !secret wifi_iot_ssid diff --git a/esphome/panel-remote-common.yaml b/esphome/panel-remote-common.yaml index a407577..6595ced 100644 --- a/esphome/panel-remote-common.yaml +++ b/esphome/panel-remote-common.yaml @@ -18,7 +18,7 @@ api: ota: - platform: esphome - password: !secret ota_password + encryption: wifi: ssid: !secret wifi_iot_ssid @@ -44,7 +44,6 @@ display: dc_pin: GPIO18 reset_pin: GPIO3 dimensions: 240x320 - rotation: 90 data_rate: 8MHz invert_colors: true auto_clear_enabled: false