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

Python and python framework

Moderator: leecollings

Post Reply
Hedda
Posts: 49
Joined: Wednesday 06 July 2016 13:16
Target OS: Linux
Domoticz version:
Contact:

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

Post 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!
Last edited by Hedda on Tuesday 25 April 2017 8:19, edited 4 times in total.
Hedda
Posts: 49
Joined: Wednesday 06 July 2016 13:16
Target OS: Linux
Domoticz version:
Contact:

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

Post 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.
Hedda
Posts: 49
Joined: Wednesday 06 July 2016 13:16
Target OS: Linux
Domoticz version:
Contact:

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

Post 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.
freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

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

Post 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 :)
User avatar
papoo
Posts: 126
Joined: Friday 22 January 2016 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10
Location: France
Contact:

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

Post by papoo »

+1 nice idea
with tts support ?
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

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

Post by freijn »

Very interesting idea and usefull links!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post by Derik »

still hoping... :D
Is this only possible with a new cast or should the old one work to..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Hedda
Posts: 49
Joined: Wednesday 06 July 2016 13:16
Target OS: Linux
Domoticz version:
Contact:

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

Post 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
visser
Posts: 5
Joined: Sunday 13 November 2016 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Brisbane, Australia
Contact:

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

Post 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.
freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

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

Post 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 :)
Chrisiesmit93
Posts: 4
Joined: Wednesday 30 March 2016 23:41
Target OS: Windows
Domoticz version:
Contact:

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

Post 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-)
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo »

Using lms and chromebrige plugin, all chromecast and Google home are show and driveable as another "normal" Player on domoticz.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post 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?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post 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)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

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

Post 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?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
cattoo
Posts: 60
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3072
Location: Sweden
Contact:

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

Post 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.
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

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

Post by dextm80 »

News?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
themaniekk
Posts: 2
Joined: Saturday 20 January 2018 21:14
Target OS: -
Domoticz version:
Contact:

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

Post 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?


dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

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

Post 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
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
Thomasdc
Posts: 133
Joined: Wednesday 11 March 2015 19:13
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

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

Post by Thomasdc »

i'm also intrested in good chromecas support
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest