Skip to content
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

[KNX] DPT 9.007 is wrongly reported #12922

Closed
kgoderis opened this issue Jun 11, 2022 · 4 comments
Closed

[KNX] DPT 9.007 is wrongly reported #12922

kgoderis opened this issue Jun 11, 2022 · 4 comments
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@kgoderis
Copy link
Contributor

Cfr #3408
Cfr #3416
Cfr

dptTypeMap.put(DPTXlator2ByteFloat.DPT_HUMIDITY.getID(), PercentType.class);

A device Thing with a Channel defined as follows

Type number : GuestBathroomRelativeHumidity [ ga="9.007:<8/4/30" ]
and an Item linked to that Channel as follows

Number:Dimensionless GuestBathroomRelativeHumidity "Guest Bathroom - Relative Humidity [%.2f %%]" {channel="knx:device:bridge:1_3_151:GuestBathroomRelativeHumidity"}

still reports its values as

2022-06-11 16:46:18.405 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'GuestBathroomRelativeHumidity' changed from 0.46% to 0.47 %

whereas the data should be interpreted as 46% and 47% instead, Cfr what is reported in ETS5

image

@kgoderis kgoderis added the bug An unexpected problem or unintended behavior of an add-on label Jun 11, 2022
@tmsch13
Copy link

tmsch13 commented Sep 19, 2022

+1 This is similar to #4146
and ists really annoying. Of course there are possible workarounds to change the value or just display it as desired.
I have 11 KNX Humidity Sensors and 5 Shelly HT Sensors. Openhab should be the place were it doesn’t matter where the data comes from. But a Humidity of 60% from KNX (stored as 0.6) is evaluated as less than 50% of the shelly HT (stored as 50) and that is a real problem in some situations.

@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/problems-with-sending-humidity-from-oh3-to-knx/141343/13

@holgerfriedrich
Copy link
Member

Attention: With the introduction of Unit of Measurement (UoM) support #14534, some data types have changed (see number channel below):

  • ...
  • Data type for DPT 9.007 (Humidity) has changed from PercentType to QuantityType.

With current version of the binding, DPT 9.007 seems to work correctly and reports the percentage correctly.
Event log shows the percentage values correctly.

@holgerfriedrich
Copy link
Member

I closed the issue, pleas reopen in case you think that this is not properly handled in the current snapshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

5 participants