Closed carp3-noctem closed 3 years ago
That actually is weird, because https://github.com/homebridge/HAP-NodeJS/blob/master/src/lib/gen/HomeKit.ts#L759 says it is a percentage type. So the calculation performed will be perc = (bus value -> decimal) / 255 * 100 (pseudo code only)
For a display of 19%
, there should have been a 30
hex (48
decimal) on the bus.
I will recheck what is on the Bus at Thursday and will come back with the Information.
Anything else i should provide?
Ahh!
I didn't see you already mentioned DPT 9.007 in the issue header.
It is required to hint homebridge-knx to that.
https://github.com/snowdd1/homebridge-knx/blob/master/knx_config.json.md#characteristics
{
"ServiceType": "HumiditySensor",
"ServiceName": "Luftfeuchte",
"Characteristics": [
{
"Type": "CurrentRelativeHumidity",
"Listen": [
"7/4/141"
],
"DPT":"DPT9"
}
]
}
should do the trick...
@snowdd1 Thanks for the hint, that was missed by myself. It is now working as it should! I will close this issue!
I've added two humidity sensors with the following lines:
Both are delivering wrong Values, did i need to choose a Handler for them to be correctly displayed? When read the Values with the ETS i got
1A 6C 49.6%
in Homekit it shows up as
19%
Thanks in Advance. If any additional feedback is helpful let me know and i will provide as soon as possible.
And also thanks for your effort for that great and stable working Plugin. You did an awesome job!