56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
---
|
|
- alias: '[ZWave] Bedroom Olivia 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 == 22 }}'
|
|
action:
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.bedroom_olivia_light_state
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.manually_operated_light_bedroom_olivia
|
|
|
|
# - service: light.turn_on
|
|
# entity_id:
|
|
# - light.bedroom_guest_ceiling_01
|
|
# - light.bedroom_olivia_table_lamp_01
|
|
# - service: input_boolean.turn_on
|
|
# entity_id:
|
|
# - input_boolean.manually_operated_light_bedroom_olivia
|
|
|
|
- alias: '[ZWave] Bedroom Olivia 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 == 22 }}'
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
entity_id:
|
|
- input_boolean.bedroom_olivia_light_state
|
|
- service: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.manually_operated_light_bedroom_olivia
|
|
# - service: light.turn_off
|
|
# entity_id:
|
|
# - light.bedroom_guest_ceiling_01
|
|
# - light.bedroom_olivia_table_lamp_01
|
|
# - service: input_boolean.turn_on
|
|
# entity_id:
|
|
# - input_boolean.manually_operated_light_bedroom_olivia
|