Amazon music as a trigger?

You are correct.

That's not a practical solution. The separate virtual switch is the only viable way to do it.

1 Like

It is when all you listen to is Tangerine Dream :joy::rofl:

5 Likes

So if I really crank up the volume on the WiFi speaker, the Iris outlet does see the wattage jump up. But thatā€™s only gonna work when no one else is home. For some reason, the wife gets annoyed when I crank this up to 11:

Flipping a virtual switch would work, my receiver already has a switch capability in hubitat since it works with the Denon driver. But that requires an extra step when telling Alexa to play music, also not conducive to WAF...

1 Like

Does "Echo Speaks" expose any data about a specific Echo device that could be used to indicate whether or not it is currently playing music? I don't use Echo Speaks (tested it once or twice, but I prefer a lighter weight solution for simple TTS.)

2 Likes

Yeah I was thinking about that, since I really donā€™t know much about echo speaks (at the moment, I use a minimal amount of TTS, and have one Sonos speaker thatā€™s easier to send TTS with HE anyway). Probably worth looking into.

I noticed in this thread the other day that echo speaks can be used to send album art of a currently playing track to a dashboard. That could be something to try to leverage.

2 Likes

Can you just have the input go back to the amazon by default to be ready for music?

Ok, total newbie here, but I'll throw my two cents in (though its worth maybe a half a cent).
Are there any listening devices that can be set as a trigger out there? Hear noise > trigger rule that sets receiver. Noise stops > trigger rule that sets receiver back to original state.
I have never even used a listening device before so I am not 100% sure their abilities. I was kind of thinking the way I use motion sensors for turning on lights and turning them off after not sensing motion for a given amount of time.
I guess the other concern is other noises setting of the rule, but pending what all you're using the receiver for that may or may not be a problem.

Forgive my lack of knowledge if not possible!

Are you talking about through a microphone? So, whenever there is noise in the room you want to set the receiver to a certain input? Wouldn't that always be the case since the receiver is a device that makes noise ultimately. I mean, it would pretty useless if I set the receiver to TV, turn on the TV and as soon as it comes on it switches to Alexa. Are you also not allowed to talk in your living room if you want something else as the input. I don't think you've thought this one through all the way.

While your sarcasm and overall condescending tone of your reply is noted, kindly refer the first sentence of my post. Merely trying to think of possible triggers that could make this happen without having to give multiple commands to Echo.
I don't know exactly where OP's receiver is located in the home related to the echo he would be speaking to, if there is TV set in the same room, the location of the speakers connected to the receiver, or what other functions the receiver serves.
Im also, as stated, not entirely familiar with listening devices on the market. I know they have them for situations like fire detectors and glass breakage. I am not sure how sensitive they are or if said sensitivity could be adjusted so a normal voice in the room wouldn't set it off but a fairly loud echo right next to it would? Maybe you could plug the listening device into a smart plug that turned on, thus turning on power to the listening device and allowing it to trigger, through the command for music, some unique conditional limitations, or some other consistent action that occurred before asking the echo for music.
Spit balling here man. Trying to generate some thoughts and be a part of this amazingly active community. Or is that reserved for individuals more adept than I?

2 Likes

The tone was meant to be comical as having a sound trigger for a device that's whole existence is 100% dedicated to making sound is utterly ridiculous.

1 Like

If you can conditionally set when its to listen and when its not, I don't see why its so ridiculous. But hey, there are lots of different people with wild ideas out there, hopefully you have the time to get to all of them so you can personally approve them or slap em' down.
Good luck OP, sounds like a fun project.

How would the presence of sound indicate that you wanted to listen to music with Alexa? What if you were just talking in the room? What if you were watching TV? What if you just sneezed? I don't understand how you imagine a sound detector working in this situation. If you could explain your idea in more detail or give me an example of how you would set it up, maybe I could understand better. But from what you have said so far, that wouldn't work.

@DaDrumBum59 welcome to the community. Iā€™m not sure thereā€™s a solution that would rely on acoustic detection that discriminates music streaming from a HEOS or echo speaker from all other noises.

Letā€™s move on, shall we?

Iā€™m considering keeping the receiver on as long as thereā€™s movement detected in my living room and/or kitchen. Then I just have to figure out how to keep the receiver input set to HEOS unless Iā€™m watching tv with the fire tv cube attached.

OP did not request a trigger to start playing music on the echo. The request was for music playing on the echo to trigger something. Music plays, devices listens, which calls for the trigger.

Thanks knife. Do you have a smart TV by chance? I can turn my TV on and off with Alexa voice control, maybe there's a way to create a routine that would trigger the receiver switch. Certainly a smart plug for the TV would read a power surge more so than the power surge of an Echo, that power surge could be used as a trigger as well, as was discussed earlier. The powering off the TV could then be used as a trigger to switch back to HEOS.

The tv attached to this receiver isnā€™t a smart tv.

But since the receiver has a telnet interface and hubitat driver, Hubitat knows when the receiver is on/off and which input itā€™s set to.

So for the moment Iā€™m thinking of something like the following.

A rule in rule machine that is triggered by motion sensors in my living room/kitchen (where the receiver and HEOS speaker are). If motion is present, turn on receiver and cancel delayed events. Else if no motion, turn off receiver (cancelable delay by 5 mins).

That at least keeps the receiver on when people are home, now to figure out how to keep the input set to HEOS, unless I want to watch the fire TV, in which case the receiver switches to the appropriate input (which should occur every time I use the fire tv cube remote). So the trigger/condition to make use of is the receiver input changing to Fire TV cube.

Not sure if I explained that last part well, but if anyone has any ideas, Iā€™d appreciate it.

I believe that was suggested already. If you want to have your receiver on whenever someone is in the living room, than you can certainly turn it on with a motion sensor. Of you could just issue one extra command to Alexa when you want to listen to music. Is that really that bad?

My original goal was to turn the receiver on when amazon music starts playing on a WiFi speaker. From that perspective, no, just keeping the receiver input set to amazon music isnā€™t sufficient, unfortunately.

But if itā€™s not possible to come up with a trigger that turns the receiver on every time music starts playing, then Iā€™ll have to come up with a way to create rule machine rules that do something like this:

Keep the AV receiver on and set the input to amazon music as long as thereā€™s movement in the room. If thereā€™s no movement, turn off the receiver. If someone turns on the fire tv, donā€™t change the input back to amazon music until theyā€™re done watching tv.

In the big scheme of things? Of course not. Most of the stuff we discuss in this forum consists of first world problems. But when it comes to home automation and xAF (trying to be inclusive, not everyone has a wife :slightly_smiling_face:), then one extra voice command is really that bad.

I wouldn't want to turn my receiver on/off a couple dozen times a day. But that's just me.