Hi!
Today the new Chromecast was announced, together with the new Chromecast audio. On the press-conference Google said that they will launch multi-room support for Chromecast audio (hopefully it will work for audio on Chromecast as well).
This will be a very cheap alternative to the expensive Sonos system, which is very well integrated in Openhab.
Would it be possible to make a binding for this, or is Google keeping the cards to close to be able to develop anything?
It is probably too early to say. The current generation appears to have been limited to apps written for iOS, Android, and Chrome OS.
You can Chromecast to it from an Apple device but you cannot AirPlay to it. On iOS you will have to be using an app that supports Chromecast such as Pandora, Netflix, Amazon Prime, etc. and cast the media from there.
But, for people who are up for a little DIY, you can set up a Raspberry Pi to be an AirPlay receiver. For awhile I had one set up this way connected to the main TV/Stereo system in the house and it worked really well for both audio and video (except for mirroring which didn’t work at the time but I think now works). For the non-Apple devices it also supported DLNA. Since I got the Roku though my use for the RasPi and the Chromecast dried up and I reused the RasPi in my home automation.
Yeah I currently have a raspberry pi running as a squeezebox client and it also visible as an airplay client so works a treat…
I think i’ll stick with that for a while yet
@TommySharp Maybe I should look into squeezebox… I currently have couple of sonos units, but its really expensive (!!!) so I’m looking into other options… Is there any good tutorials around?
@l_grave I’ve seen it, but it needs much more development. Not very usable at the moment.
@gaute91 Yeah you should… I’d still buy Sonos stuff if I had spare cash lying around because their speakers are pretty good. With a raspberry pi you need to buy a small amp and speakers of a decent quality to be on par with the smallest Sonos speaker. I just bought some amplified computer speakers and put it all into an old busted valve radio, it sounds pretty good… I’m still working on how to get the physical volume and tuning knobs to control the raspberry pi…
I think I am ready to share my solution to integrate chromecast ist openHAB.
I wrote three scripts to control castnow.
There scripts can be used by the ecex binding to get the status and title from and send some commands to chromecast via openHAB.
I tested this on a RaspberryPi with Rasbian.
It also works with desktop browsers (Windows, Linux, OS X), if you see the the cast icon, the video can be cast to a chromecast device. If you are using chrome, you can cast a tab, which is another way to cast video and/or audio that doesn’t suppport casting.
Correct, this is called vendor lock-in by Apple. The API’s for casting are open, and if Apple wasn’t so worried about locking people in to protect their profits, they would implement casting.
I started to create a binding for Chromecast based on the Eclipse SmartHome framework. So it will also run on openHAB 2.
At the moment there are three channels:
play / pause
volume
play uri
For me “play uri” is currently the one I would like to use, so I started using this ones.
Need to look for a easy way to install the stuff in the openHAB distribution.
If there are more details, I will report it here.