-
Notifications
You must be signed in to change notification settings - Fork 782
[Homematic] Slightly incorrect values for dimmers and other datapoints #6841
Comments
Forgot to mention which devices exactly:
|
Same problem here (same environment): Setting decimal values to a Homematic Item works fine, but when receiving Updates from the Homematic binding, values get rounded to integer values: BL_AZ_temp in my case is defined as a Rollershutter Item (for a HM-LC-Bl1PBU-FM), but I also tried Dimmer with the same results unfortunately. Setting 99.5 to item works fine and gets send to Homematic as 0.005 correctly (Homematic uses different value range):
But when the update is received from the Homematic item (also correctly as 0.005), it gets converted/rounded to 100:
fyi, The rule "Test1" looks like this:
The same behaviour can be observed using the REST API. For me this is a problem, because: |
TRACE debug level shows further information:
So this code snippet seems to be causing the problem:
Changing "percent" to a double value would probably solve the issue. I am not a software engineer myself, so hofully someone else can make the change. |
With Homematic1.x binding (in openhab2.4.0), it is possible to use a Number Item, which seems to work due to the different Converter applied:
Number Item does not work with Homematic 2.x add-on due to a conversion problem:
|
+1 |
Migrated to openhab/openhab-addons#6688. |
I am using openHAB 2.4.0 stable and a CCU3 with the newest firmware. Devices are all HM IP. Everything has been configured with PaperUI.
Values often differ by 1 between CCU3 and openHAB.
I cannot set a dimmer to 100%. I see the command in the logs, but the CCU3 does nothing. I can set it to 0% - 99% without problems.
The reported dimmer value from the CCU3 is often one less in openHAB. For example, the dimmer is at 20% but it’s 19% in openHAB. 100% is 99%.
Setting to 60% in openHAB sets it to 60.5% in the CCU3.
Same thing for level (valve) of a thermostat. When it’s 53% in the CCU3, it is 52% in openHAB.
With debug logging, I see that the binding is sending 1.005 to the CCU3 for a dimmer value of 100. This may be the cause. I think I read somewhere in a forum, that the CCU needs this value (or factor?) for actually setting to 100%, but this may not be true anymore in current firmwares.
The Android App TinyMatic is working correctly in all these cases.
2 other minor things:
The formatted SetPointTemperature of a thermostat has 2 decimal points. 1 would be enough.
The formatted ActualTemperature of a thermostat has 0 decimal points. It should have 1.
The text was updated successfully, but these errors were encountered: