initial commit
This commit is contained in:
61
configuration/automation/switch_light_entrance.yaml
Normal file
61
configuration/automation/switch_light_entrance.yaml
Normal file
@ -0,0 +1,61 @@
|
||||
---
|
||||
- alias: '[ZWave] Entrance 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 == 12 }}'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.porch_01
|
||||
brightness: 255
|
||||
hs_color: [57, 100]
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.garage_gate_01
|
||||
brightness: 255
|
||||
hs_color: [236, 100]
|
||||
# entity_id:
|
||||
# - light.porch_01
|
||||
# - light.garage_gate_01
|
||||
|
||||
- alias: '[ZWave] Entrance 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 == 12 }}'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.porch_01
|
||||
- light.garage_gate_01
|
||||
|
||||
#color_mode: hs
|
||||
#brightness: 255
|
||||
#hs_color: 52.768, 100
|
||||
#rgb_color: 255, 224, 0
|
||||
#xy_color: 0.482, 0.484
|
||||
#friendly_name: Porch
|
||||
#supported_features: 36
|
||||
|
||||
#color_mode: hs
|
||||
#brightness: 255
|
||||
#hs_color: 243.521, 100
|
||||
#rgb_color: 14, 0, 255
|
||||
#xy_color: 0.137, 0.041
|
||||
#friendly_name: Garage Gate
|
||||
#supported_features: 36
|
Reference in New Issue
Block a user