initial commit
This commit is contained in:
54
configuration/automation/switch_light_bedroom_max.yaml
Normal file
54
configuration/automation/switch_light_bedroom_max.yaml
Normal file
@ -0,0 +1,54 @@
|
||||
---
|
||||
- alias: '[ZWave] Bedroom Max 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 == 19 }}'
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bedroom_max_light_state
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.manually_operated_light_bedroom_max
|
||||
# - service: light.turn_on
|
||||
# entity_id:
|
||||
# - light.bedroom_max_ceiling_01
|
||||
# - light.bedroom_max_table_01
|
||||
# - service: input_boolean.turn_on
|
||||
# entity_id:
|
||||
# - input_boolean.manually_operated_light_bedroom_max
|
||||
|
||||
- alias: '[ZWave] Bedroom Max 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 == 19 }}'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.bedroom_max_light_state
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.manually_operated_light_bedroom_max
|
||||
# - service: light.turn_off
|
||||
# entity_id:
|
||||
# - light.bedroom_max_ceiling_01
|
||||
# - light.bedroom_max_table_01
|
||||
# - service: input_boolean.turn_on
|
||||
# entity_id:
|
||||
# - input_boolean.manually_operated_light_bedroom_max
|
Reference in New Issue
Block a user