lukasroegner / homebridge-philips-hue-sync-box

Homebridge plugin for the Philips Hue Sync Box.
MIT License
55 stars 12 forks source link

Controlling TV service with button turns off sync #55

Closed jeroen020 closed 2 years ago

jeroen020 commented 2 years ago

I'd like to use buttons to control the state of the Sync box. I can switch modes (and inputs etc) via the home.app. I can assign selecting a mode to a button as well, but if I press the button, it goes to passthrough instead of the mode I selected, so the lights are off. I guess this is because when you assign the button, you not just select an input, but switch it on as well. But this switching on likely works a toggle - it's switched on already, so it switches off to passthrough. If the sync box is off and I push the button, it does switch to the mode I want to.

Another way to circumvent is if the modes (and inputs and intensity) could be made available as buttons instead of a TV service. These are discrete so easier to script.

lukasroegner commented 2 years ago

I fixed the behavior in version 0.8.1. Now, you can use the TV accessories in automations. As you already pointed out, automations will not only change the input (i.e. the mode, input, intensity), but also send an "On" command. This lead to a weird behavior where passthrough is enabled if the Sync Box has already been on.