initial commit
This commit is contained in:
52
configuration/automation/switch_light_kitchen.yaml
Normal file
52
configuration/automation/switch_light_kitchen.yaml
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
- alias: '[ZWave] Kitchen 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 == 23 or trigger.event.data.node_id == 65 or trigger.event.data.node_id == 25 }}'
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.kitchen_light_state
|
||||
# - service: light.turn_on
|
||||
# entity_id:
|
||||
# - light.kitchen_sink_01
|
||||
# - light.kitchen_led_01
|
||||
# - light.light_kitchen_ceiling_01
|
||||
# - light.light_kitchen_ceiling_02
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.manually_operated_light_kitchen
|
||||
|
||||
- alias: '[ZWave] Kitchen 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 == 23 or trigger.event.data.node_id == 65 or trigger.event.data.node_id == 25 }}'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.kitchen_light_state
|
||||
# - service: light.turn_off
|
||||
# entity_id:
|
||||
# - light.kitchen_sink_01
|
||||
# - light.kitchen_led_01
|
||||
# - light.light_kitchen_ceiling_01
|
||||
# - light.light_kitchen_ceiling_02
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.manually_operated_light_kitchen
|
Reference in New Issue
Block a user