Skip to content
Use RFID to call a curl command to homeassistant to play a Google Play playlist
Branch: master
Clone or download
Pull request Compare This branch is 22 commits ahead of fsahli:master.
hoveeman Merge pull request #2 from wenweil/master
 Made changes to
Latest commit fb94daa Mar 28, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
card_template Added links to cards and printer used Mar 27, 2018
homeassistant_files Add files via upload Mar 26, 2018 Update Mar 27, 2018 Multiple improvements Feb 7, 2016 Modified to fail better if crash occurs Mar 27, 2018
cardList.csv Example cardList.csv Mar 27, 2018 Multiple improvements Feb 7, 2016 Added a timeout and silent to the curl command Mar 27, 2018

Music Cards

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

RFID Jukebox with Google Home



  • python evdev. To install:

dpkg -i python-evdev_0.4.1-1_armhf.deb
  • python mpd-2. To install
pip install python-mpd2


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 to select the reader from the inputs
  2. Run python to scan cards and enter your Google Play Music Playlist Name
  3. Run python to start the application and verify that it is reading your cards and csv list properly

Install Service to AutoStart

  • Change directory to music-cards/
cd music-cards/
  • Copy the musiccards.service file to systemd
sudo cp musiccards.service /etc/systemd/system/musiccards.service
  • Reload the Daemon
sudo systemctl daemon-reload
  • Start the musiccards.service
sudo systemctl start musiccards.service
  • Check if musiccards.service is running
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 in there.
  3. Follow this forum post to install gmusicapi, find your device id, and set up the component.
You can’t perform that action at this time.