Playing with automations. Went from knowing zero a few days ago to kind of getting the hang of this. Someone here helped me set up my Ring doorbell and since then I’ve added a thing or two. Just running it by the crowd to see if there’s a better or more elegant way to do this.
Here’s what I want to accomplish (and have accomplished).
Ring my doorbell and it sends me a pushbullet notification (in addition to the Ring doorbell notification which oddly enough isn’t very dependable. The pushbullet works every time perfectly. Then the outdoor lights come on.
10 seconds after you you push the doorbell an MQTT configured wifi outlet comes on. A radio is plugged in and loud music starts playing. I’m thinking German Death Metal or whatever the most dangerous kind of sounding music there is
5 seconds after that a light pops on in the front room.
It does work but last time I asked this question someone helped me clean up the code somewhat. I’m having too much fun with this.
automation 3:
alias: 'Doorbell Ding'
trigger:
- platform: state
entity_id: binary_sensor.ring_front_door_ding
from: 'off'
to: 'on'
action:
- service: switch.turn_on
entity_id: switch.ge_12722_onoff_relay_switch_switch_3_0
- service: notify.mypushbullet
data_template:
title: "Doorbell"
message: >-
Someone at the door, Intruder Alert!
- delay:
seconds: 10
- service: switch.turn_on
entity_id: switch.living_room_outlet
- delay:
seconds: 5
- service: switch.turn_on
entity_id: switch.front_room_light