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

41 lines
1.2 KiB
YAML

---
- 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