Also looking for this as i currently have a setup where there’s a dedicated Harmony activity that does start our sound system, starts casting spotify to the TV and turn on Amibilight+Hue.
If you’re using Google Assistant, you can start and stop Hue+Spotify using voice command “turn on(off) music sync” (assuming your Google Assistant is linked and synced with Philips Hue).
For a Switch in HA, I created a new input_boolean (I named it hue_music_sync) and two simple automations to issue virtual voice commands to Google Assistant based on the state of this input_boolean.
Here are my automations code - for On and Off:
alias: Hue Music Sync - On
description: ''
trigger:
- platform: state
entity_id: input_boolean.hue_music_sync
from: 'off'
to: 'on'
condition: []
action:
- service: rest_command.assistant_relay
data:
command: turn on music sync
mode: single
alias: Hue Music Sync - Off
description: ''
trigger:
- platform: state
entity_id: input_boolean.hue_music_sync
from: 'on'
to: 'off'
condition: []
action:
- service: rest_command.assistant_relay
data:
command: turn off music sync
mode: single
After installing and adding the Google Assistant SDK integration. You now create your automation with action service “Google Assistant SDK send text to command” in the command field write “start music sync”. (The stop command is: “stop music sync”)
You don’t need the add on with similar name. You just need to install the integration following the instructions in Google Assistant SDK - Home Assistant
Are more people having problems starting hue music sync with google assistant sdk? It worked like a charm before, other commands work fine. So it seems specific to the command “ start music sync” and “ stop music sync” ,
Hey, i Highly appreciate your work, and it works perfectly fine, did you also try to make that color changing thing from the Hue app an option?
usually for the music sync there are 4 color templates or the automatic mode, and it’d be awesome to be able to change that aswell
Thank you in advance