add bedroom nightstand light configuration with brightness control events

This commit is contained in:
2026-04-19 22:47:53 +02:00
parent 08dabb4c7f
commit 534059d831

View File

@@ -26,6 +26,7 @@ light_hallway:
25: binary_sensor.day_interval_night 25: binary_sensor.day_interval_night
100: True 100: True
light_restroom: light_restroom:
module: smartlight module: smartlight
class: SmartLight class: SmartLight
@@ -39,3 +40,38 @@ light_restroom:
1: input_boolean.sleeping 1: input_boolean.sleeping
25: binary_sensor.day_interval_night 25: binary_sensor.day_interval_night
100: True 100: True
light_bedroom_nightstand:
module: smartlight
class: SmartLight
entity: light.berdroom_bedlight
toggle_events:
button_press:
event_name: zha_event
event_data:
device_name: 'bedroom_hue_remote'
args:
press_type: 'press'
button: 'off'
increase_brightness_events:
up_hold:
event_name: zha_event
event_data:
device_name: 'bedroom_hue_remote'
args:
press_type: 'hold'
button: 'up'
decrease_brightness_events:
down_hold:
event_name: zha_event
event_data:
device_name: 'bedroom_hue_remote'
args:
press_type: 'hold'
button: 'down'