Files
hassio-configuration/configuration/automation/switch_light_bathroom_master.yaml
2025-02-07 12:46:24 -05:00

55 lines
1.4 KiB
YAML

---
- alias: '[ZWave] Bathroom Master Switch Single Tap UP'
initial_state: "true"
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
property: "scene"
property_key: "002"
value: "KeyPressed"
condition:
condition: template
value_template: '{{ trigger.event.data.node_id == 26 }}'
action:
- service: light.turn_on
entity_id:
- light.bathroom_master_wall_01
- alias: '[ZWave] Bathroom Master Switch Single Tap DOWN'
initial_state: 'true'
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
property: "scene"
property_key: "001"
value: "KeyPressed"
condition:
condition: template
value_template: '{{ trigger.event.data.node_id == 26 }}'
action:
- service: light.turn_off
entity_id:
- light.bathroom_master_wall_01
- alias: '[ZWave] Bathroom Master Switch Tripple Tap DOWN'
initial_state: 'true'
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
property: "scene"
property_key: "001"
value: "KeyPressed3x"
condition:
condition: template
value_template: '{{ trigger.event.data.node_id == 26 }}'
action:
- service: fan.turn_off
entity_id:
- fan.master_bathroom
- service: light.turn_off
entity_id:
- light.bathroom_master_wall_01