-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Dimmer items don't display correct values #108
Comments
Let me know if this is working now... |
This looks to be working... thank you! The states jump around a bit, but they seem to finally all get there! |
Thanks. I think the jumping states is caused by the update that set. The UI sets to (say) 100% when the device is at 0%, then there's a number of updates come in as the bulb changes. So, you will see 0% 100% 20% 40% 60% 80% 100% (sort of thing). Short of changing the update rate I don't think there's a way around this at the moment - I know other bindings have the same issue and I've seen other discussions about how to solve this sort of thing. |
One of my relays is now randomly shown as ON in OH although it is off. Is it possible the behaviour was introduced with this commit? UPDATE: |
It shouldn't be related to this but if the device is returning dimmer levels that aren't 0, then it might be the case that a value of 1 would have been interpreted as off in the past.
In any case if the device is returning a non 0 value then it's a device issue.
I'd suggest to open a new issue and provide a debug log and I'll take a look.
…Sent from my iPhone
On 26 Jan 2018, at 11:01, weakfl ***@***.***> wrote:
One of my relays is now randomly shown as ON in OH although it is off. Is it possible the behaviour was introduced with this commit?
Strangely only one of two relays seems to be affected. But it's quite random, the state is ok for an hour or two and suddenly jumps to ON.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
OH 2.3.0 build 1191
Zigbee 2.3.0.201801200902
I have rules that set the lights to a specific level, and don't adjust them if they are not at that specific level. This way, I can manually turn the light on (which sets it to 100), and the light won't turn off when motion stops or be adjusted by lux changes. I noticed this wasn't working for my Zigbee bulbs, and that when I send 99 through the rule, the lights are reporting 98 in the logs and UI. It looks like there may be a rounding issue in ZigBeeConverterSwitchLevel.java.
Here is a light being set to 99 through a rule, which is sent to the device, but then the bulb reports back 98...
Since lastValue=251 (98.8), it looks like this...
org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/converter/ZigBeeConverterSwitchLevel.java
Line 128 in 25dfb38
... is truncating to an integer when converting to PercentType or because of integer division. Either way, adding 0.5 to the value (like you have in the outbound command at line 100) should fix this? In looking at the scripts that I had used with a Wink hub, this is basically how I handled refreshing values correctly from the hub.
The text was updated successfully, but these errors were encountered: