openhab-addons icon indicating copy to clipboard operation
openhab-addons copied to clipboard

[enocean] Dimplex fan - wrong temperature values

Open lovery opened this issue 7 months ago • 0 comments

Expected Behavior

I have a Dimplex fan which uses D2_50 EEP. The device has a sensor for outdoor temperature of the air and it sends values to the openhab. The supported values are from -64 to 63 according to the specification

Current Behavior

Currently the parsed value are incorrect ~ 2147483541.0°C dimplex-outdor-temp Received message from the device is 4D02000F00A954000078003AE000, where the data for OUTT is 1010100 (bytes) = 84, which is in the limits from the specification - 0 to 127, scaled is 84 - 64 = 20, and 20°C is the correct value measured with different device.

Possible Solution

I think that the problem is in the leading 1 of the value for the OUT temperature which converts to - because in java there is no unsigned int

Your Environment

  • Version used openHAB 4.1.1

lovery avatar Jul 01 '24 12:07 lovery