# Start music playing when somebody arrive home

**URL:** <https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627>\
**Category:** Questions & Help\
**Created:** [October 8, 2020, 6:15am UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627 "2020-10-08T06:15:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janos\_Prepuk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janos_prepuk/32/18032_2.png) [@Janos\_Prepuk](https://community.homey.app/u/Janos_Prepuk)\
**Post date:** [October 8, 2020, 6:15am UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627/1 "2020-10-08T06:15:39Z")

</div>

I would like to play the music when one of our family arrive home. First i try to play music on echo dot 3 with Amazon Alexa app. It doesn’t work, maybe the country problem, i don’t know but alexa doesn’t play anything. After i bought a google chrome cast to play music from plex. To i t i need to switch on the tv first then start music, it is quite unstable. I don’t want to buy sonos, it is too expensive for welcome music.  
Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [October 9, 2020, 10:37am UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627/2 "2020-10-09T10:37:58Z")

</div>

I will share my flows later (do not have much time now)  
What I did:  
Create 2 virtual devices: “Radio ON” & “Radio playing“  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a27b95148ec32ddb97963679e3966c5a2e80e2e7.png)  
“Radio ON” controls if the radio should start playing automatically (i do not always want to autoplay)  
“Radio playing” controls the playing of the radio

I have a motion sensor that determines presence. It starts the “radio playing” only when “Radio ON” is true.

A timer switches off the radio when no motion is detected

A hue remote control is used to control “Radio On”. The dimmer buttons on this remote are used to [control the volume](https://community.homey.app/t/a-volume-button-for-my-chromecast/9476)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [October 9, 2020, 7:51pm UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627/3 "2020-10-09T19:51:53Z")

</div>

Switch radio on

“Radio ON” also start the “playing”, and sets the default volume (see [control the volume](https://community.homey.app/t/a-volume-button-for-my-chromecast/9476))

Motion keeps the radio playing

When no motion is detected and the timer ends playing is stopped:

Auto off switches off the radio when playing has stopped for longer time

---

<div class="post-metadata">

**Author:** ![Janos\_Prepuk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janos_prepuk/32/18032_2.png) [@Janos\_Prepuk](https://community.homey.app/u/Janos_Prepuk)\
**Post date:** [October 9, 2020, 8:12pm UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627/4 "2020-10-09T20:12:29Z")

</div>

Ok, thank you. I will tes tit, but I think it will be good for me. So chromecast and a tv the requirements. I wanted not to use the TV, but chromecast doesn’t work with only speaker. Am I right?  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [October 9, 2020, 8:16pm UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627/5 "2020-10-09T20:16:30Z")

</div>

Depends on the chromecast you have.  
I have a chromcast audio, it has an optical out.  
That is connected to class-A amplifier and some great speakers.  
Big advantage: I can select my own adio equipment, much better quality than Sonos 🙂  
No TV needed…

---

<div class="post-metadata">

**Author:** ![Janos\_Prepuk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janos_prepuk/32/18032_2.png) [@Janos\_Prepuk](https://community.homey.app/u/Janos_Prepuk)\
**Post date:** [October 9, 2020, 8:32pm UTC](https://community.homey.app/t/start-music-playing-when-somebody-arrive-home/35627/6 "2020-10-09T20:32:25Z")

</div>

I have google chromcast 3. As I know chromecast audio is discontinuing. Hmmm, maybe I could buy one. Good idea 🙂
