DallasHoff / homebridge-openrgb

Control the RGB lighting of your PC components and peripherals with HomeKit.
https://www.npmjs.com/package/homebridge-openrgb
Apache License 2.0
13 stars 0 forks source link

Effects Override Control #15

Open cwfeldmann opened 8 months ago

cwfeldmann commented 8 months ago

When controlling a light that is part of an actively running Effect, the animation overrides the ability to control the light's status through the Home app or HB. Turning a switch "Off" will only flicker black before resuming an animation.

In OpenRGB, when the device is no loner selected as part of the animation, the toggles work as expected.

Without knowledge of what toggles can be altered through the server / client relationship, Is there a way to expose effects as devices in Homebridge?

An alternative exploration might be a way to utilize an "all off" button similar to the one seen in openRGB's toolbar context menu. Not sure if that's a function exposed on the server side. Speaking truthfully I'm not sure if the "Lights Off" toggle in the toolbar overrides an actively running effect.

For context when our office door is left open, the radiant glow of magnificence isn't so magnificent when telling the house it's time for bed. 😛

The plugin and OpenRGB have been a blast to get to play with this weekend. Thank you for helping connect these dots and making our colorful builds and our living spaces become more like the movie "Smart House."

DallasHoff commented 8 months ago

Hey there! I'm glad you are enjoying the plugin. Could you clarify what you are referring to as "effects"? Do you mean the "mode" selector?

image

cwfeldmann commented 8 months ago

Thanks for the response! So when you want to animate the lights, OpenRGB has a number of official plugins. With the Effects Plugin, each effects act like a "layer" that can be enabled and disabled as desired with the switch toggle on the left hand of my effect layer titled "Gradient Wave"

When any of these layers are active, the lights they apply to stop listening to the HomeBridge commands. You can see that the lights flicker in a way that indicates HB tries to control the lights but the next frame of the "effect animation" comes in and overrides the HB command, resulting in the animated light show continuing to play.

I recognize these are "Plugins" that can always change the app's expected behavior but wasn't sure about their status since they appear to be official from openrgb.org. Pardon my ignorance here as I'm not sure what's achievable with the server side access.

Since OpenRGB has some basic top level controls accessible from the taskbar menu, lights off, effects controls, profile selection, I would have hoped it might be possible to call those same commands from their server-client connection.

Screenshot 2024-02-26 at 16 37 20