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

Python and python framework
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 » Tuesday 18 April 2017 15:54

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 » Tuesday 18 April 2017 15:58

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 » Tuesday 18 April 2017 16:02

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: 48
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 » Tuesday 18 April 2017 20:50

+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: 50
Joined: Friday 22 January 2016 23:14
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

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

Post by papoo » Thursday 20 April 2017 9:34

+1 nice idea
with tts support ?

freijn
Posts: 150
Joined: Friday 23 December 2016 17:40
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands Purmerend
Contact:

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

Post by freijn » Thursday 20 April 2017 10:06

Very interesting idea and usefull links!

User avatar
Derik
Posts: 1841
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post by Derik » Friday 28 April 2017 0:34

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 » Friday 28 April 2017 9:23

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: 11
Joined: Sunday 13 November 2016 11:11
Target OS: Raspberry Pi
Domoticz version: beta
Location: Brisbane, Australia
Contact:

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

Post by visser » 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.

freakshock
Posts: 48
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 » Wednesday 03 May 2017 11:58

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 » Saturday 02 September 2017 19:13

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: 900
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo » Tuesday 05 September 2017 18:21

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 / ESP8266 / MQTT / BLE
http://domo-attitude.fr

User avatar
Derik
Posts: 1841
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post by Derik » 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?
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: 900
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo » 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)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests