Philips Hue Sync Box with Home Assistant

Grigorii Merkushev
2 min readFeb 6, 2022

I just got a shiny Sync Box for Philips Hue and decided to integrate it with Home Assistant.

Prerequisite

  • Sync box is already setup and entertainment zone is linked
  • IP address of the Sync Box already known (can be found in Hue sync app)
  • Sync box should be closed by as we need to press pairing button and fire API call within 5 seconds
  • Home Assistant with access to config files

Obtaining token

First of all we need to authorize our Home Assistant and for this we need to execute curl with following parameters:

curl -k -d '{"appName":"curl", "instanceName":"Home Assistant"}' -X POST https://SYNC_BOX_IP_ADDRESS/api/v1/registrations

This curl may return an error if you didn’t press pairing button until it blinks green in the last 5 seconds.

If all goes well, curl will return you following output.

{"registrationId":"1","accessToken":"JWT_token_here"}

Now lets add this JWT_token_here to you secrets file in HA. In my case it is secrets.yaml in the root of HA folder.

Great, now we are ready for integration.

Home Assistant integration

Our plan is to have input_select which is linked to the rest_command via automations.

Let’s create input_select for different sync modes: Movie, Music, Game, Standby (off), Passthrough

Next we need to create rest_command. Don’t forget to replace 10.0.0.190 by IP address of your sync box.

Then we link input_select with rest_commands via automation.

In my case all files stored in dedicated folders, so later we need to inject them.

We are done for one way control from HA -> Hue Sync. But, if something changes in Sync box via Hue Sync app, we will not see any update in HA yet.

Back sync from Hue Sync to HA

To sync states back we need to create a few sensors to fetch current state. Don’t forget to replace 10.0.0.190 by IP address of your sync box.

Don’ forget to add sensors into you configuration file.

Now we have sensors in place and last but not least thing that we need to do is to wire sensors with input_select via automations.

And we are done, now you should have fully integrated input_select in your Home Assistant.

References:

--

--