I left my big garage door open last night, and at 11pm my ST’s goodnight routine ran and quietly sent me a push notification to my phone. Well, being half asleep, or just lazy to pickup my phone and look at the message, my garage door was open all night long inviting people to come in a steal my stuff. uggh!
I would like to write an automation to do this…
At 11pm, if my garage door is open, Alexa will tell me every 2 mins until it’s closed.
It sounds basic to me. But I can’t figure out how to do this using Alex connected to my ST without ‘other’ services.
Using ‘other’ services, I came up with this idea, but it still won’t work because Alexa can’t be triggered by switches or virtual-switches, only sensors: open/close, motion, etc.
Here’s my ‘almost works’ routine. If anyone has a better solution, please share
when my big garage door opens, IFTTT will send httpGET to my garage.php with key garage=1 (my garage door has a ST contact sensor)
garage.php will write this status into dbGarage MySQL database
cron job will call garagecheck.php at 11pm
garagecheck.php will check garage door status and
if garage=1 (open) it will send httpGET to ‘garage1’ IFTTT webhook
after 30sec it will send httpGET to ‘garage0’ IFTTT webhook (pulse)
it will loop ‘garage1’ & ‘garage0’ until it finds garage=0 in dbGarage
once it finds garage=0 in dbGarage, it will end program
‘garage1’ IFTTT webhook will turn ON ST virtual switch ‘garagenotify’
‘garage0’ IFTTT webhook will turn OFF ST virtual switch ‘garagenotify’
Alexa routine: when ST virtual switch ‘garagenotify’ is opened
Alexa will say ‘Big garage door is open’ (and this will repeat every 2 mins because of the garagecheck.php)
There’s gotta be a better way to do this! Any ideas?
Not completely related, but I wish the automations (like Goodnight) had the option to send a httpGET request aside from the push notification.