Skip to content

Instantly share code, notes, and snippets.

@TerroBladeZ
Created June 8, 2018 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TerroBladeZ/a17725eed958cd8a4b92f802f9a53e12 to your computer and use it in GitHub Desktop.
Save TerroBladeZ/a17725eed958cd8a4b92f802f9a53e12 to your computer and use it in GitHub Desktop.
input_select:
music:
name: Playlists
options:
- " " # Should be empty
icon: mdi:playlist-play
media_player:
name: Speakers
options: # entity_ids of your media players
- "every_speaker"
- "first_floor_speakers"
- "kitchen_home"
- "chromcast_onkyo"
- "basement_speaker"
icon: mdi:speaker-wireless
switch:
- platform: gmusic
user: !secret gmusic_user
password: !secret gpassword
device_id: !secret gmusic_device_id # http://unofficial-google-music-api.readthedocs.io/en/latest/reference/mobileclient.html#gmusicapi.clients.Mobileclient.login
media_player: media_player # entity id of the input select used for mediaplayer
playlist: music # entity id of the input select used for playlist
# OPTIONAL
group:
google_music:
name: Google Music
entities:
- input_select.music
- input_select.media_player
- switch.google_music
shell_command:
install_gmusic: pip3 install gmusicapi
automation:
- alias: homeassistant_start
trigger:
- platform: homeassistant
event: start
action:
- service: shell_command.install_gmusic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment