From 057744abced185585adca017bba746f8f8036dd4 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Tue, 29 Sep 2026 21:09:30 -0400 Subject: [PATCH] Add lampstand control to Living Room remote with toggle functionality --- esphome/living-room-remote.yaml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/esphome/living-room-remote.yaml b/esphome/living-room-remote.yaml index 5d5066a..bd25c7f 100644 --- a/esphome/living-room-remote.yaml +++ b/esphome/living-room-remote.yaml @@ -31,6 +31,15 @@ binary_sensor: id: small_lamp_button state: checked: !lambda return x; + - platform: homeassistant + id: lampstand_state + entity_id: light.studio_bulb_1 + trigger_on_initial_state: true + on_state: + - lvgl.widget.update: + id: lampstand_button + state: + checked: !lambda return x; lvgl: rotation: 90 @@ -80,9 +89,25 @@ lvgl: data: entity_id: light.small_living_room_lamp - button: + id: lampstand_button x: 10 y: 135 - width: 300 + width: 145 + height: 75 + checkable: true + widgets: + - label: + align: CENTER + text: Lampstand + on_click: + - homeassistant.action: + action: light.toggle + data: + entity_id: light.studio_bulb_1 + - button: + x: 165 + y: 135 + width: 145 height: 75 widgets: - label: @@ -97,3 +122,7 @@ lvgl: action: light.turn_off data: entity_id: light.small_living_room_lamp + - homeassistant.action: + action: light.turn_off + data: + entity_id: light.studio_bulb_1