Hi, everyone. I’d like to share my project with the community.
Here’s the script:
doorbell_pressed:
alias: "Doorbell Pressed"
sequence:
- service: light.toggle
data:
entity_id: light.bedroom_lamps
- delay:
seconds: 5
- service: light.turn_on
data:
entity_id: light.living_room_floor_lamps
- delay:
seconds: 5
- service: light.toggle
data:
entity_id: light.bedroom_lamps
- service: light.turn_on
data:
entity_id: light.living_room_floor_lamps
brightness: 224
And automation that goes with the script:
- alias: "Doorbell pressed"
trigger:
platform: state
entity_id: switch.aeotec_doorbell_gen5_switch_2_0
state: "on"
action:
service: script.turn_on
entity_id: script.doorbell_pressed
For this to work, you have to set the notification type to Hail in Open-ZWave Control Panel.