initial commit
This commit is contained in:
54
configuration/automation/switch_light_bathroom_master.yaml
Normal file
54
configuration/automation/switch_light_bathroom_master.yaml
Normal file
@ -0,0 +1,54 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user