Hi. I have Homey Pro. Have added the Hue Sync device using the Hue App.
Is there a way to change sync modes video/music though a flow? The purpose of the Hue Sync Box is to have dynamic light as per video or music.
Thanks in advance for any help.
Hi. I have Homey Pro. Have added the Hue Sync device using the Hue App.
Is there a way to change sync modes video/music though a flow? The purpose of the Hue Sync Box is to have dynamic light as per video or music.
Thanks in advance for any help.
No one can help?
Hi
Did you get anywhere with this? I’m keen to be able to turn on Sync Mode from a flow but only see the options for on/off and dim level?
Cheers
Darrell
I was also struggling with controlling the Hue Play Sync Box from Homey. I’ve asked Athom for an update of the app a year ago but unfortunately nothing has changed since then.
Let me share my workaround, which allows me to set the sync mode like this:
Before you can control or read data from the Hue Play Sync Box, you need to pair with it and create credentials. This only needs to be done once. After you obtain the accessToken, you can reuse it forever (until you remove the registration).
https://<SYNC-BOX-IP>/api/v1/registrations{ "appName": "homey", "instanceName": "homey" }{ "code": 16, "message": "Invalid State" }SetPhilipsHueSyncBoxMode[SYNC-BOX-IP] with your Sync Box IP[ACCESS-TOKEN-HERE] with your access token// Set Mode for Philips Hue Sync Box
// Argument value: powersave, passthrough, video, game, music, ambient
const syncboxIp = "[SYNC-BOX-IP]";
const bearerToken = "[ACCESS-TOKEN-HERE]";
const url = `https://${syncboxIp}/api/v1/execution`;
const mode = args[0];
const body = JSON.stringify({ mode });
const agent = new https.Agent({ rejectUnauthorized: false });
const response = await fetch(url, {
method: "PUT",
agent,
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${bearerToken}`
},
body
});
if (!response.ok) {
throw new Error(`SyncBox returned ${response.status} ${response.statusText}`);
}
Note: The default Request action card validates SSL certificates and will not work with the Sync Box’s self-signed certificate. That’s why we use HomeyScript instead.
SetPhilipsHueSyncBoxModepowersavevideogamemusic