Moode Forum
[How to do instruction] MoodeAudio Alexa Integration - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9)
+--- Thread: [How to do instruction] MoodeAudio Alexa Integration (/showthread.php?tid=4771)



[How to do instruction] MoodeAudio Alexa Integration - navatarx - 03-11-2022

Hello!

The only thing I found missing from this great project is an integration with Amazon Alexa SmartHub, so after trying some things, I managed to do it and wrote a detailed how-to here:

https://github.com/navatarx/moode-audio-automation

In general I created a "pseudo" Amazon hub using node-red automation  emulating Philips Hub as a proxy for managing Moode Audio. I tried to create all these having security in mind, so everything is on your internal network, without having to open anything from the outside.


Node-red flows:
[Image: 154813898-5ebf3ce6-1137-4bbc-8c44-d57fa7b39e66.png]
An example for the first function for http request is the following:

Code:
res={}
if (msg.on) {
 res.url="http://moodeIP/command/?cmd=play"
} else {
 res.url="http://moodeIP/command/?cmd=stop"
}
res.payload=""
return res;


Note that Alexa identifies those devices as philips royal hue hub. Just say:

"Alexa, turn on Pi audio" "Alexa, turn on Pi Audio Volume"
or create a routine for "Alexa, next song" to "Turn on Pi Next Song"


RE: [How to do instruction] MoodeAudio Alexa Integration - navatarx - 03-12-2022

Needless to say that if anyone has any addition and / or question, feel free to add / ask Smile


RE: [How to do instruction] MoodeAudio Alexa Integration - Tim Curtis - 03-12-2022

After moOde 8 ships I'll have a look at it :-)


RE: [How to do instruction] MoodeAudio Alexa Integration - TookaFace - 03-31-2022

Very cool, as soon as i have more time, i will test.