-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
GeneratedCommandList empty for DoorLock cluster implementations #18121
Comments
@jrhees-cae Are the commands actually enabled in the ZAP config for the device? It doesn't sound like they are. |
Yes they are. However, having the commands in the .zap is not enough. As stated, the generation tool will not include the commands in the generated-command-list unless the .xml template lists the commandResponse as optional=false. |
@jrhees-cae That should be fixed since #17833 merged: as long as the client-to-server command is enabled, the corresponding response will show up in the generated-command-list, even if marked optional. The responses will also show up in accepted-command-list in some cases, but project-chip/zap#515 will fix that once it merges. Please let me know if there is still an issue on tip, especially with that ZAP change. |
We had some response commands flagged as incoming commands, because they had the wrong flags mask. Fixes project-chip#17809 Fixes project-chip#17688 Fixes project-chip#18002 Fixes project-chip#18121
Marked Boris as assignee since #18674 will resolve this. |
Problem
A device implementing the DoorLock cluster has an empty GeneratedCommandList, even though the appropriate responses are in the .zap
Proposed Solution
Discovered that changing the 'optional' attribute in the xml fixes the issue. However, it is unclear whether this is the correct fix or if there is a bug in zap-tool
For example, making the following change in src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml:
from:
to:
...will cause "GetUserResponse" to be included in the GeneratedCommandList (assuming, of course, it and its corresponding command are also present in the .zap)
The text was updated successfully, but these errors were encountered: