refactor sleep_switch event handling to use device_name instead of device_ieee

This commit is contained in:
2026-04-17 22:24:38 +02:00
parent 61c115be37
commit 4aaf97dbc9
2 changed files with 3 additions and 5 deletions

View File

@@ -28,18 +28,16 @@ sleep_switch:
entity: input_boolean.sleeping
trace_events: zha_event
toggle_events:
button_long_press:
event_name: zha_event
event_data:
device_ieee: '00:17:88:01:09:27:74:45'
device_name: 'bedroom_hue_remote'
args:
press_type: 'hold'
button: 'off'
reset_data:
device_ieee: '00:17:88:01:09:27:74:45'
device_name: 'bedroom_hue_remote'
args:
button: 'off'
press_type: 'long_release'