/ChromecastPlugin

Chromecast plugin for Domoticz, based on PyChromecast

Primary LanguagePython

Chromecast plugin for Domoticz, based on PyChromecast

Short summary

This plugin adds devices and an user variable to Domoticz to control your chromecasts, and to retrieve the current app, title, volume and playing mode. Every chromecast (or chromecast group) gets its own set of devices. The variable is used to send text to the chromecast to pronounce in a languague which can be set via the hardware options. Just add a languague code like 'en-US' or 'nl-NL', type in any text in the auto-generated variable. The text will be spoken on the relevant chromecast.

Installation and setup

  1. This plugin is only tested with python 3.5. If you have an older version please update python first.
  2. Install dependecies:
sudo pip3 install pychromecast
sudo pip3 install packaging

If you have Spotify:

sudo pip3 install spotify-token
sudo pip3 install git+https://github.com/plamere/spotipy.git
  1. Install Plugin:
cd domoticz/plugins
git clone https://github.com/Tsjippy/ChromecastPlugin
  1. Restart domoticz:
sudo service domoticz.sh restart
  1. Add hardware, fill in the required field, including a comma seperated list of chromecast names (or just one) You can find the languague code relevant for you here: http://www.lingoes.net/en/translator/langcode.htm

Known issues

  • After playing a custom mesagge, your previous playback does not resume. (except for YouTube and Spotify)
  • Limited support for Netflix as they encrypt their data:
    • If you pause netflix from the web/an app, Domoticz doesn't know
    • If you pause it from Domoticz it works
    • Title device does not get updated

Known bugs

  • Does not work with the current stable of domoticz, you need the latest beta

Releases

01-06-2019: 4.4.1 Emporved the dependicy check
03-04-2019: 4.2.5 Added a dependicy check
29-03-2019: 4.2.0 Retrieve last played music from Spotify, bug fixes
27-03-2019: 4.1.0 Cleaner code and better Spotify listeners
25-03-2019: 4.0.0 Added Spotify support, added previous and next buttons
03-12-2018: 3.0.0 Massive rework and better listeners
20-11-2018: 2.0.0 Bugfixes
12-11-2018: 1.0.0 First release

Donations

If you want, you can thank me by donating via https://www.paypal.me/Tsjippy