stefanwichmann / kelvin

Kelvin - The hue bot
MIT License
347 stars 37 forks source link

How to stop Kelvin for disabling when physical lightswitch turned off and on? #109

Open DanMossa opened 1 year ago

DanMossa commented 1 year ago

Hello! I have a physical light switch that turns my hue bulbs off and on.

Right now, when I turn the lights off and then back on, kelvin disables because they were manually set.

I want kelvin to always be working no matter what. I want to be able to my light switches and have kelvin still work. Any idea on how to get this happening?

Thanks!

patkol commented 1 year ago

For me this works as long as "enableWhenLightsAppear" is set to true in the configuration, as is default. This has the disadvantage that Kelvin also enables when I try to turn my light on in a specific state using my Tap Dial while the physical light switch is on. I then have to press again to disable Kelvin.

cswrd commented 1 year ago

@DanMossa Does the aforementioned settings work for you? Also the readme states:

Works with smart switches as well as conventional switches

Are there any side effects with hue bulbs? Like flickering, full brightness or addtional latency until the settings apply when the light is turned on with a conventional switch?

edit: this is also discussed in #28

DanMossa commented 12 months ago

@patkol @cswrd Nope. Doesn't seem to work.

cswrd commented 11 months ago

@DanMossa I gave it a try. Same for me. When I turn off the hue bulb with a conventional switch and power it on again, Kelvin does not enable automation for it. I can enable it through the web interface. Even though enableWhenLightsAppear is set to true. I am using the default settings.

stefanwichmann commented 11 months ago

I'm using Kelvin every day with physical switches in the scenario you described. (enableWhenLightsAppear has be set to true)

Could you post a snapshot of the log output from Kelvin around a time where you flipped your switch? If possible with debug logging (parameter --debug) turned on.

(When using physical switches there is a latency between flipping the switch and Kelvin reacting. This results from the bulb "booting up", discovering and logging on the the zigbee network, and the bridge exposing it in the API. So if you flip your switches to rapidly, Kelvin might end up in the wrong state...)