initial commit
This commit is contained in:
40
configuration/automation/switch_light_living_room.yaml
Normal file
40
configuration/automation/switch_light_living_room.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
---
|
||||
- alias: '[ZWave] Living Room 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 == 10 or trigger.event.data.node_id == 11 }}'
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.living_room_light_state
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.manually_operated_light_living_room
|
||||
|
||||
- alias: '[ZWave] Living Room 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 == 10 or trigger.event.data.node_id == 11 }}'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.living_room_light_state
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.manually_operated_light_living_room
|
Reference in New Issue
Block a user