From 63386406ce4e15f62763d5645423165ff517ae0b Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 26 May 2026 08:36:49 +0200 Subject: [PATCH] Add light_living_room configuration with toggle and off events --- apps/rooms/living_room.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/apps/rooms/living_room.yaml b/apps/rooms/living_room.yaml index 02e91a7..25e5c37 100644 --- a/apps/rooms/living_room.yaml +++ b/apps/rooms/living_room.yaml @@ -40,4 +40,23 @@ light_bookshelves: #light_brightness_pct: # 5: input_boolean.sleeping # 25: binary_sensor.day_interval_night - # 100: True \ No newline at end of file + # 100: True + +light_living_room: + module: smartlight + class: SmartLight + entity: light.living_room + + toggle_events: + button_press: + event_name: state_changed + debounce_seconds: 0.5 + event_data: + entity_id: event.living_room_bilresa_button_bouton_1 + new_state: + attributes: + event_type: multi_press_1 + + + off_events: + - turn_off_all_lights \ No newline at end of file