initial commit
This commit is contained in:
74
configuration/automation/alert_lock_right_code.yaml
Normal file
74
configuration/automation/alert_lock_right_code.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
---
|
||||
- id: lock_alert_on_on_entered_correct_code
|
||||
alias: '[Lock] Alert ON on Entered Correct Code'
|
||||
initial_state: 'true'
|
||||
trigger:
|
||||
# condition:
|
||||
# - condition: template
|
||||
# value_template: "{{ trigger.to_state.state in ['','not_home'] }}"
|
||||
- platform: state
|
||||
entity_id: sensor.lock_01_alarm_type
|
||||
to: '19'
|
||||
action:
|
||||
- parallel:
|
||||
- service: lifx.effect_pulse
|
||||
data:
|
||||
entity_id:
|
||||
- light.porch_01
|
||||
- light.garage_gate_01
|
||||
- light.backyard_01
|
||||
brightness: 255
|
||||
rgb_color: [0, 255, 0]
|
||||
mode: strobe
|
||||
- service: zwave_js.bulk_set_partial_config_parameters
|
||||
target:
|
||||
entity_id: switch.switch_kitchen_01
|
||||
data:
|
||||
parameter: '8'
|
||||
value: 67045970
|
||||
- delay:
|
||||
seconds: 10
|
||||
- service: zwave_js.bulk_set_partial_config_parameters
|
||||
target:
|
||||
entity_id: switch.switch_kitchen_01
|
||||
data:
|
||||
parameter: '8'
|
||||
value: 65536
|
||||
mode: single
|
||||
|
||||
- id: lock_alert_on_on_locking_by_keypad
|
||||
alias: '[Lock] Alert ON on Locking by Keypad'
|
||||
initial_state: 'true'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.lock_01_alarm_type
|
||||
to: '18'
|
||||
# condition:
|
||||
# - condition: template
|
||||
# value_template: "{{ trigger.to_state.state in ['18','25'] }}"
|
||||
action:
|
||||
- parallel:
|
||||
- service: lifx.effect_pulse
|
||||
data:
|
||||
entity_id:
|
||||
- light.porch_01
|
||||
- light.garage_gate_01
|
||||
- light.backyard_01
|
||||
brightness: 255
|
||||
rgb_color: [0, 0, 255]
|
||||
mode: strobe
|
||||
- service: zwave_js.bulk_set_partial_config_parameters
|
||||
target:
|
||||
entity_id: switch.switch_kitchen_01
|
||||
data:
|
||||
parameter: '8'
|
||||
value: 33491456
|
||||
- delay:
|
||||
seconds: 10
|
||||
- service: zwave_js.bulk_set_partial_config_parameters
|
||||
target:
|
||||
entity_id: switch.switch_kitchen_01
|
||||
data:
|
||||
parameter: '8'
|
||||
value: 65536
|
||||
mode: single
|
Reference in New Issue
Block a user