Repo for scripts and some config examples for google assistant with additional soft. Squeezebox, MagicMirror, Homeassistant and potential exansion. Most part of code here - aggregation from available open sources like GitHub.
I'm just doing this for my self. If you want to help or improve - you're welcome. For code maintainers - guys, you're rock! Big Thank You to every person who share knowladge!
- Raspberry Pi3B+
- Jack audio
- USB headset (logitech H230)
- HDMI screen
- Keyboard, mouse (if needed)
- Raspbian Noobs https://www.raspberrypi.org/downloads/noobs/ / Hassbian (for those who want all-in-one work) (https://www.home-assistant.io/docs/installation/hassbian/installation/)
- Google Project (setup and IDs got, all info according - https://developers.google.com/assistant/sdk/guides/library/python/embed/config-dev-project-and-account)
- Nano ( to edit some configs and assistant code) / IDE
- I use Google Assistant SDK (python one) as a base for all integrations for now
- As Music base I use squeezebox server (with standalone client on same machine (it was more stable))
- Optionally you may install Homeassistant with Mosquitto and MQTT brocker for gree AC (but better to install all this to hassbian)
- As I want to use all this on the wall - I've tryed MagicMirror. cool thing.
- copy client secret to /home/pi/ scp client_secret-NAME OF FILE.json pi@IP:/home/pi/
- edit squeezebox_assistant/systemd/lmsassistant.service and insert your device ID
- Run install.sh and follow instructions
- Run squeezebox_assistant/scripts/install_service.sh to install GASDK as service
- Just in case - reboot
- Possibly you may got endless reboot in case don't comment some code in assistant.py (in CONVERSATION_START section)
- In case you install only GASDK - please comment actions which are not used.
- No input/outpus sound see squeezebox_assistant/scripts/fix.sh and squeezebox_assistant/scripts/sound_install.sh for solution
This is most long and painless installation. Google music installed as a part of server.
- run install_lms.sh and follow instructions. several confirms required
- read squeezebox_assistant/scripts/links_lms.txt for additional actions to do
Open RASPBERRY_IP:9000 and setup it. After - proceed to Server Admin section and configure addons.
Not found. Main pain - credentials for lms admin page. (gmusic and youtube)
- run squeezebox_assistant/scripts/magicmirror.sh
- change screensaver config and rotation manually (i don't know why this doesn't work)
!!! in case you want to use as smart home - install hassbian as a base.
- run install_hass.sh (and be accurate. I'm stop using this after install hassbian as a base) and wait
- Install mosquitto and configure it on home assistant frontend.
- install mosquitto.serice with 'sudo cp squeezebox_assistant/systemd/mosquitto.serice /lib/systemd/system/'
- Enable it sudo systemctl enable lmsassistant.service && sudo systemctl start lmsassistant.service ---- Mosqitto+gree brocker+shell-------
- need look on home system