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
fix(config): add enableBasicSetMapping for device ZD2102 #2386
Conversation
We don't blindly add compat flags to devices. Could you describe the problem and what is not happening that you believe should happen? Could you post a log with and without? Mapping has been a particular issue that has caused us to revert changes a few times now. |
@blhoward2 Thank you,
|
What's wrong with this being a report? Have you looked under both zwave_js_notification and zwave_js_value_notification? |
@trantamjp maybe it helps if you state your expectations of what should happen. I think this PR is a misunderstanding of what the compat flag does. The way I see it is that the device reports its current open/closed status with If it also supported You probably wanted |
Please hold this PR and let me test out with the new code which fixes the interview (from the other PR). |
I have tested this device First, the good thing is I no longer receive Now when I test open/close, I get
zd2102_ZWJS_inclusion.log Then I enable the enableBasicSetMapping in the device config zd2102 and test it again. This time I get
zd2102_JWJS_and_HA_with_enableBasicSetMapping.log Lastly, I tested both wadwaz-1_without_enableBasicSetMapping.log Right now, on the HA integration, Thank you, |
Were you possibly looking at the wrong manual? There is a ZD2102 and ZD2102-5, they are identical in appearance. The ZD2102-5 is zwave plus and is a proper notification sensor. This ZD2102 is a binary sensor device type (see interview) and according to the manual I found, it uses Basic Set to indicate off/on. This seems to fit the profile of a device that requires the compat flag. |
Mine is ZD2102
Yes, it use Basic Set. Currently it does not have compat flag. This is why this PR is for, and to match with other device That's why ZD2102 produces a Binary Sensor report while the other one wadwaz-1 produces Basic report. |
Okay I'm convinced. Let's do this |
Fibaro FGK101 with firmware version lower than 2.3 does not report properly state change and uses `BasicCC:Set` to do so. As per discussed in zwave-js#2417, enabling compat flag to treat the basic set report as a status change (similar to what has been done on zwave-js#2386). After applying the patch, I have got the following in logs, confirmed working on two FGK101-2.1 devices ``` 2021-04-22T06:31:25.722Z CNTRLR [Node 024] treating BasicCC::Set as a report 2021-04-22 08:31:25.736 INFO ZWAVE: Node 24: value updated: 48-0-Any false => true 2021-04-22T06:31:29.816Z CNTRLR [Node 024] treating BasicCC::Set as a report 2021-04-22 08:31:29.823 INFO ZWAVE: Node 24: value updated: 48-0-Any true => false ```
Fibaro FGK101 with firmware version lower than 2.3 does not report properly state change and uses `BasicCC:Set` to do so. As per discussed in zwave-js#2417, enabling compat flag to treat the basic set report as a status change (similar to what has been done on zwave-js#2386). After applying the patch, I have got the following in logs, confirmed working on two FGK101-2.1 devices ``` 2021-04-22T06:31:25.722Z CNTRLR [Node 024] treating BasicCC::Set as a report 2021-04-22 08:31:25.736 INFO ZWAVE: Node 24: value updated: 48-0-Any false => true 2021-04-22T06:31:29.816Z CNTRLR [Node 024] treating BasicCC::Set as a report 2021-04-22 08:31:29.823 INFO ZWAVE: Node 24: value updated: 48-0-Any true => false ```
Without enableBasicSetMapping set, it doesn't treat BasicCC::Set as a event but a report