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

Wrong decoding of negative setback values in Climate Control Schedule CC #7364

Closed
6 of 7 tasks
AlCalzone opened this issue Nov 5, 2024 Discussed in #7362 · 0 comments · Fixed by #7366
Closed
6 of 7 tasks

Wrong decoding of negative setback values in Climate Control Schedule CC #7364

AlCalzone opened this issue Nov 5, 2024 Discussed in #7362 · 0 comments · Fixed by #7366

Comments

@AlCalzone
Copy link
Member

Discussed in #7362

Originally posted by @bueeler November 5, 2024

Checklist

  • I have read and followed the above instructions

  • I have checked the troubleshooting section and my problem is not described there.

  • I have read the changelog and my problem was not mentioned there or the fix did not work.

Describe the issue

I am using MT02650 TRV and use "Climate Control Schedule CC" command class to adjust the TRV set point based on input from room thermostat.
After sending negative setback values through function setOverride() from "Climate Control Schedule CC" command class, the value for "Override state" is not correctly shown in Z-Wave JS UI:
grafik

I would expect that negative setback values are correctly displayed as negative number in Z-Wave JS UI (as it is done for positive values). e.g. value "252" from screenshot above shall be displayed as "-0.4".

Issue seems caused by missing handling for negative numbers in function decodeSetbackState():
https://github.com/zwave-js/node-zwave-js/blob/master/packages/cc/src/lib/serializers.ts#L31
The specification defines the value as signed byte:
grafik
but the implementation treats it as "number".
All negative values where val>=128 (0x80) are handled as "special state", instead handled as negative setback state.

Software versions

zwave-js-ui: 9.25.0.38e48a8
zwave-js: 13.10.1

Z-Wave Controller (Stick/Dongle/...)

It should be unrelated to controller

Device information

Manufacturer: Devolo
Model name: ...
Node ID: e.g. 008, 005 ...

Checklist

  • I made sure to provide a driver log on level debug.

  • The log includes a re-interview of the problematic device (if applicable).

  • The log includes the problematic interaction with the device (if applicable).

  • I provided the node ID of the problematic device (if applicable).

Upload Logfile

zwave-js-ui-store.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant