Script/service to monitor the playback status of moOde and toggle a Home Assistant entity when playback starts/stops.
Based off https://gist.github.com/michaelfdeberry/d3e7c9b4c4e1305be863d81a7e09f3de
Modify powertoggle.sh and fill in the relevant details. You can obtain HASS_TOKEN
from your Home Assistant user account, and generate a long lived access token.
Save the contents of powertoggle.sh script to /home/pi/powertoggle.sh Save the contents of powertoggle.service to /lib/systemd/system/powertoggle.service
Run the following commands sudo systemctl enable relaytoggle sudo service relaytoggle start