brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
101 stars 6 forks source link

DPT7012/DPT7013 script function outputs only 8bit (0-255) instead of the correct 16bit values (0-65,535) #134

Closed matthafner closed 3 years ago

matthafner commented 3 years ago

I think I found a bug in scripting, when using "hkknx.DPT7012(...)" or "hkknx.DPT7013(...)", the max value is "00 FF" (255). Below 255, it works correctly... it is always "00 FF" if the value is between 255 and 65,535).

Here is a screenshot of the code I was using to test it... Code

... here the response (the 300 and 30000 values are not correct)! GroupMonitor

It should say "01 2C" and "75 30"

I'm on hkknx Version 2.0.0.

And thanks for making this tool, it works really well... minus this little bug which should be a quick fix ;)

brutella commented 3 years ago

Fixed in pre-release version 2.0.1.