-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dim 0 command turns device on #272
Comments
I'll take a look at what 0 gives. It should have been the off url. |
I just tested the behavior of a hue passthru device and when you dim it to 0 percent (in webiniterface and harmony) the command is just ignored. I would prefer this behavior because often I just slide to to the minimum in the harmony to lower the light. It would be inconsistent when I dim all my lights to minimum, and all but hue devices are powered off. |
I will throw the following into the conversation, not sure it is relevant to this issue but it is good thing to be aware of. The minimum value for a Hue bulbs brightness is 1 (max of 254). So there is no 0. Also the bulbs do not turn off when you set the brightness to minimum. Even though there might not be any light coming from a bulb at 1, it is still technically on. From the api:
|
@digiltd That will help resolve this. Thanks |
I tested the feature today and unfortunately it is not 100 percent correct implemented. Like digiltd allready mentioned, the hue bri state can only be between 1 and 254. In version 3.x the problem was that the dim 0 command was replaced with the on command but now it is bri 255. So the effect is that the light is turned off because 255 is not a valid state. So far so good but I think it would be the best to work like all other hue lamps. If you set bri 255 to a hue light it will internally set bri 254, also in all readings. So to be more at the hue api just allow bri 1 to bri 254. |
Updating in 4.0.2 |
Hi all together,
at first I want to thank you for this nice piece of software. At the the moment I just use it for publishing my fhem devices to my harmony hub so I can control all my lights with my harmony. But I'm still waiting for my invitation to buy an echo and control my devices by voice.
However, I have some troubles with the dim command of the ha bridge inside the webinterface and also on the harmony. If I dim a light to 0 percent it it is turned on by the on url. For testing purposes I replaced the on url with a dim 10 command and then when I dim to 0, the light is set to 10 percent ....
So definitely the percentage 0 command is replaced by the on command, but why?
Here are the examples of the command urls:
https://127.0.0.1:8084/fhem?cmd=set%20HM_LC_DIM_XXXXX%20on
https://127.0.0.1:8084/fhem?cmd=set%20HM_LC_DIM_XXXXX%20pct%20${intensity.percent}
https://127.0.0.1:8084/fhem?cmd=set%20HM_LC_DIM_XXXXX%20off
I hope we can investigate this problem because I have no clue why it is not working correctly
The text was updated successfully, but these errors were encountered: