Home

Awesome

Music Cards

Click the image below to see a video of it being used

RFID Jukebox with Google Home

Requires

software:

wget http://dl.piwall.co.uk/python-evdev_0.4.1-1_armhf.deb

dpkg -i python-evdev_0.4.1-1_armhf.deb
pip install python-mpd2

hardware:

Please note that Raspberry Pi Zero is insufficient to run both the Home Assistant and Music Cards concurrently. I recommend you use a Raspberry Pi 3 if you intend to run both at the same time.

Steps to Configure and/or Run once if you dont want Music Cards to AutoStart

  1. Run python config.py to select the reader from the inputs
  2. Run python add_card.py to scan cards and enter your Google Play Music Playlist Name
  3. Run python box.py to start the application and verify that it is reading your cards and csv list properly

Install Service to AutoStart

cd music-cards/
sudo cp musiccards.service /etc/systemd/system/musiccards.service
sudo systemctl daemon-reload
sudo systemctl start musiccards.service
sudo systemctl status musiccards.service

HomeAssistant Setup for Google Music

  1. Place the files under homeassistant_files in the config directory of your Homeassistant machine.
  2. You will need to create custom_components/switch directory in your config directory and place gmusic.py in there.
  3. Follow this forum post to install gmusicapi, find your device id, and set up the component.