Modification Gogole Assistant SDK on Raspberry Pi with Broadlink RM Pro
- Google Assistant on Raspberry Pi https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/
- Python control for Broadlink RM2 IR controllers https://github.com/mjg59/python-broadlink
sudo chmod +x launch-assistant.sh
sudo nano /etc/rc.local
Add python /home/pi/googleassistant.py
- create folder ir_codes in /home/pi
- run ir.py
- enter button name
Since Google Assistant run on Python 3 but Broadlink API run on Python 2, I cannot establish a connection with Broadlink device by Google Asssitant SDK during start so I have to wrote autocheck_ir_command.py to check the IR command from text file every 1 second in background. The IR command is created by Google Asssitant in main.py There might be a better way around to do this though.
Location of main.py: /home/pi/env/local/lib/python3.4/site-packages/google/assistant/