Add lampstand control to Living Room remote with toggle functionality

This commit is contained in:
Joshua King
2026-09-29 21:09:30 -04:00
parent 8ebac52160
commit 057744abce
+30 -1
View File
@@ -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