Move bedside switch automations

This commit is contained in:
2020-05-16 14:43:05 +03:00
parent aa8cba4293
commit f7a8d93736
3 changed files with 28 additions and 12 deletions
@@ -25,3 +25,29 @@ automation:
{% else %}
100
{% endif %}
- alias: Lighting · Master bedroom · Toggle ambient lights on bedside switch double click
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: !secret master_bedroom_bedside_switch_ieee
command: double
action:
- service: light.toggle
data_template:
entity_id:
- light.bedside
- light.bed_led
brightness_pct: 100
- alias: House mode · Toggle on bedside switch hold
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: !secret master_bedroom_bedside_switch_ieee
command: hold
action:
- service: input_select.select_next
entity_id: input_select.house_mode