initial commit
This commit is contained in:
43
configuration/automation/switch_light_backyard.yaml
Normal file
43
configuration/automation/switch_light_backyard.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
- alias: '[ZWave] Backyard Switch Single Tap UP'
|
||||
initial_state: "true"
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave_js_value_notification
|
||||
event_data:
|
||||
property: "scene"
|
||||
property_key: "002"
|
||||
value: "KeyPressed2x"
|
||||
condition:
|
||||
condition: template
|
||||
value_template: '{{ trigger.event.data.node_id == 25 }}'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.backyard_01
|
||||
brightness: 153
|
||||
hs_color: [31, 95]
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
# - light.backyard_01
|
||||
- light.backyard_pergola_01
|
||||
- light.backyard_decoration_01
|
||||
|
||||
- alias: '[ZWave] Backyard Switch Single Tap DOWN'
|
||||
initial_state: 'true'
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave_js_value_notification
|
||||
event_data:
|
||||
property: "scene"
|
||||
property_key: "001"
|
||||
value: "KeyPressed2x"
|
||||
condition:
|
||||
condition: template
|
||||
value_template: '{{ trigger.event.data.node_id == 25 }}'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.backyard_01
|
||||
- light.backyard_pergola_01
|
||||
- light.backyard_decoration_01
|
Reference in New Issue
Block a user