Page 1 of 1

[REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Tuesday 18 April 2017 15:54
by Hedda
Seeing as there are already a Sonos and Denon / Marantz plugins being developed for Domoticz, any chance that we could have a plugin for Domoticz which could control playback/volume controls and get media information from Google Cast compatible recievers (especially Chromecast Audio) on your home (Wi-Fi) network and maybe even output audio to them ?

Note! I am only requesting support to audio output via Google Cast protocol as supported by "Chromecast Audio" reciever dongles (and not support Chromecast video output or recieving).

Why you ask? The two awesome things about Chromecast Audio dongels is that they are cheap and support grouping for multi-room syncronization over WiFi.

https://www.google.com/chromecast/audio/

Google have also recently licensed its Cast technology for audio to multiple speaker manufacturers under the "Chromecast built-in", so many speakers and AV-receivers from third-parties will likley soon support Chromecast Audio without dongle.

https://www.google.com/chromecast/built-in/audio/

http://www.theverge.com/2016/1/6/107230 ... s-ces-2016
https://www.engadget.com/2016/01/06/goo ... kers-2016/

The awesomeness of Chromecast Audio on existing devices is that any music/audio app can add support for it on iOS (iPhone/iPad/iPod) and Android as well as Google Chrome web browser to stream audio to Chromecast Audio dongles and speakers over local WiFi, including with multiroom support.

https://www.google.com/chromecast/built ... #?speakers

How could this be done in Domoticz? For starter a few developers from the Home Assistant project have made "PyChromecast" library as an open source Python module to talk with Chromecast, maybe someone can check it out?

http://pypi.python.org/pypi/PyChromecast

http://github.com/balloob/pychromecast

PyChromecast - Library for Python 2 and 3 to communicate with the Google Chromecast (for video) and Chromecast Audio. It currently supports:
  • Auto discovering connected Chromecasts on the network
  • Start the default media receiver and play any online media
  • Control playback of current playing media
  • Implement Google Chromecast api v2
  • Communicate with apps via channels
  • Easily extendable to add support for unsupported namespaces
  • Multi-room setups with Audio cast devices
PyChromecast is even available as a PyPI package for Ubuntu and Debian:

https://launchpad.net/ubuntu/+source/pychromecast/

https://packages.debian.org/sid/python/ ... chromecast


Not sure if anyone on the Domoticz development team have got a few Chromecast Audio yet but I stongly recommend it regardless if you integrate it Domoticz or not.

I have bought a few dongles myself so far and have them connected to active (computer) speakers around the house and they work great.

These new Chromecast Audio dongles have finally brought the possibility for simple and cheap multiroom music playback to the masses!

Re: Google Cast (especially Chromecast Audio) control and output plugin

Posted: Tuesday 18 April 2017 15:58
by Hedda
Hedda wrote:How could this be done in Domoticz? For starter a few developers from the Home Assistant project have made "PyChromecast" library as an open source Python module to talk with Chromecast, maybe someone can check it out?

http://pypi.python.org/pypi/PyChromecast

http://github.com/balloob/pychromecast
By the way, you can check out Home Assistant (https://home-assistant.io) for a ready-made solution using the mentioned PyChromecast library for controlling and automating your Chromecast or Cast-enabled device like Google Home.

Re: Google Cast (especially Chromecast Audio) control and output plugin

Posted: Tuesday 18 April 2017 16:02
by Hedda
Another interesting aspect could be an option to output Security Camera / Doorbell cam video to a Chromecast Video dongle or Android TV.

Android TV 7.0 (which also support Google Cast for Video) even supports PiP (Picture in Picture) which is perpect for example doorbell video.

Re: Google Cast (especially Chromecast Audio) control and output plugin

Posted: Tuesday 18 April 2017 20:50
by freakshock
+1, this is the last major thing missing from my Domoticz setup.
It would be great to have the Chromecast audio autoplay when you come home for instance.
This could be a very cost effective way of integrating multi room music play into Domoticz.
Hope someone with the skills to make it a reality could chime in :)

Re: Google Cast (especially Chromecast Audio) control and output plugin

Posted: Thursday 20 April 2017 9:34
by papoo
+1 nice idea
with tts support ?

Re: Google Cast (especially Chromecast Audio) control and output plugin

Posted: Thursday 20 April 2017 10:06
by freijn
Very interesting idea and usefull links!

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Friday 28 April 2017 0:34
by Derik
still hoping... :D
Is this only possible with a new cast or should the old one work to..

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Friday 28 April 2017 9:23
by Hedda
Derik wrote:Is this only possible with a new cast or should the old one work to..
PyChromecast is made to follow the guidelines for sender apps written for Google Cast SDK v2 which means that it is compatible with both first-generation, second-generation Chromecast, Chromecast Ultra, as well as Chromecast Audio, as long as the endpoint device have a up-to-date firmware that implement Google Chromecast API v2

http://pypi.python.org/pypi/PyChromecast

http://github.com/balloob/pychromecast

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Monday 01 May 2017 0:54
by visser
I'm using PyChromecast for populating some custom text sensors showing the Current App, Current Song, etc. I haven't used it for detailed control actions yet other than opening default Chromecast Apps (e.g. YouTube, NetFlix, Spotify). I'll have a play and see what I can come up with and provide a github link.

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Wednesday 03 May 2017 11:58
by freakshock
visser wrote:I'm using PyChromecast for populating some custom text sensors showing the Current App, Current Song, etc. I haven't used it for detailed control actions yet other than opening default Chromecast Apps (e.g. YouTube, NetFlix, Spotify). I'll have a play and see what I can come up with and provide a github link.
That would be a nice start :)

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Saturday 02 September 2017 19:13
by Chrisiesmit93
visser wrote: Monday 01 May 2017 0:54 I'm using PyChromecast for populating some custom text sensors showing the Current App, Current Song, etc. I haven't used it for detailed control actions yet other than opening default Chromecast Apps (e.g. YouTube, NetFlix, Spotify). I'll have a play and see what I can come up with and provide a github link.
Can you share your script? :D
I am also looking for a solution to populate the current app and media status (play / pause) to Domoticz.
With this information within Domoticz I can for example auto controll my lights to auto dim when a movie (Plex) starts or pause the movie when the doorbell rings. 8-)

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Tuesday 05 September 2017 18:21
by deennoo
Using lms and chromebrige plugin, all chromecast and Google home are show and driveable as another "normal" Player on domoticz.

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Tuesday 05 September 2017 20:56
by Derik
deennoo wrote: Tuesday 05 September 2017 18:21 Using lms and chromebrige plugin,
mm

is there a how to??
And what are the options what i can do with cast?

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Wednesday 13 September 2017 10:58
by deennoo
Derik wrote: Tuesday 05 September 2017 20:56
deennoo wrote: Tuesday 05 September 2017 18:21 Using lms and chromebrige plugin,
mm

is there a how to??
And what are the options what i can do with cast?
how to is simple :

- Install LMS : http://support.logitech.com/en_za/article/17011
- Install Chromecastbridge on LMS
- Enable LMS on your domoticz
- Your chromcast arrive as switch

With it you can:
change sound volume, start, stop, next song, last song, (all controle available from LMS and chromecastbridge, who make run your chromecast and google home run a LMS reciever)

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Wednesday 15 November 2017 16:31
by dextm80
deennoo wrote: Wednesday 13 September 2017 10:58
Derik wrote: Tuesday 05 September 2017 20:56
deennoo wrote: Tuesday 05 September 2017 18:21 Using lms and chromebrige plugin,
mm

is there a how to??
And what are the options what i can do with cast?
how to is simple :

- Install LMS : http://support.logitech.com/en_za/article/17011
- Install Chromecastbridge on LMS
- Enable LMS on your domoticz
- Your chromcast arrive as switch

With it you can:
change sound volume, start, stop, next song, last song, (all controle available from LMS and chromecastbridge, who make run your chromecast and google home run a LMS reciever)
Is there a problem whit ubuntu 17.04 and logitechmediaserver?
I installed .deb and service logitechmediaserver start but 127.0.0.1:9000 give connection lost page
Any ideas?

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Wednesday 13 December 2017 15:22
by cattoo
Install LMS?
Why use an old product like that?
Would it not be better if any scripting guru could fix CCA in to Domoticz instead?
In some points the Home-Assistant way further in the development.

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Friday 29 December 2017 16:41
by dextm80
News?

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Monday 05 February 2018 13:20
by themaniekk
The news are on GitHub here:
https://github.com/tbowmo/chromecastcontrol
I didn't try it yet.

Could you please help the noob to run this python script on win10 from the very beginning?



Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Wednesday 07 February 2018 17:11
by dextm80
themaniekk wrote: Monday 05 February 2018 13:20 The news are on GitHub here:
https://github.com/tbowmo/chromecastcontrol
I didn't try it yet.

Could you please help the noob to run this python script on win10 from the very beginning?
I
i'm runnin on ubuntu 16.04. I don't understand how to install it....
Can you explain me?

Thanks

Re: [REQUEST] Chromecast (Google Cast) output and controller plugin?

Posted: Wednesday 21 February 2018 17:01
by Thomasdc
i'm also intrested in good chromecas support