Alexa Sound Detection and Indigo

Posted on
Wed Feb 23, 2022 5:37 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Alexa Sound Detection and Indigo

I got this working and thought I'd share....
I'm currently using the sound detection capability of my alexas to manipulate a virtual indigo device.

My case use:
Alexa Routine:
When Baby Crying Detected
Turn on BCD
IMG_4158.PNG
IMG_4158.PNG (156.39 KiB) Viewed 941 times


On the Indigo Side:

Virtual Device 1: BCD (Baby Crying Detector) with actions, use variable for status
Action 1: BCD On -> Set Variable BabyCryingDetector to on
Action 2: BCD Off -> Set Variable BabyCryingDetector to off
Action 3: BCD Toggle -> Toggle Variable BabyCryingDetector.
Variable: BabyCryingDetector

Add that to alexa as a switch and then have the routine turn it on... mostly done. This is the optional part of mine...
Virtual Device 2: Baby Crying Detector - Notification (with actions, use variable for status)
Action 1: BCD-Notify on -> Set Variable BCD_Notifications to on
Action 2: BCD-Notify off -> Set Variable BCD_Notifications to off
Action 3: BCD-Notify Toggle -> Toggle Variable BCD_Notifications
Variable: BCD_Notifications

Trigger: Baby Crying Detector - Notifications
"BCD" ofOffState becomes on
Condition: if "Baby Crying Detector - Notifications" onOffState is true
Actions: turn off "BCD", disable trigger "Baby Crying Detector - Notifications", auto-enable after 15 minutes. Add more cool automations stuff here... send a pushover message, etc.

Trigger: Baby Crying Detector - No Notifications
"BCD" ofOffState becomes on
Condition: if "Baby Crying Detector - Notifications" onOffState is false
Actions: turn off "BCD", disable trigger "Baby Crying Detector - Notifications", auto-enable after 15 minutes.

With this method, the BCD device is basically in the background. It will turn on and off with the input from the alexa routine.
If you want notifications, just turn on the 2nd device "Baby Crying Detector - Notifications". It's the 2nd device that I would use on a control page.
Auto-enable can be adjusted to taste. I know my baby can set off multiple alexa devices with some of her tantrums.

Note: Even though alexas are supposed to tell what device the sound is closest too, I've had my living room echo pick up crying before the echo flex in the nursery, so all my routines, regardless of which alexa device hears something, turn on the same BCD virtual device in indigo.

Note: Currently they have 6 sounds you can trigger a routine on: Snoring, Baby Crying, Water Sounds, Dog Barking, Beeping Appliance, and Cough.

So maybe someone can automate a treat dispenser with the dog barking thing,

Bill
My Plugin: My People

Posted on
Thu Feb 24, 2022 3:56 pm
jay (support) offline
Site Admin
User avatar
Posts: 18221
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Alexa Sound Detection and Indigo

Cool! Thanks for posting.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests