Developer mode: Enables custom frame generation from Z-Wave XML #3887
silabs-mamihali
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
I suppose the Z-Wave XML repo needs to be made public before we could do this. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have created #3888 as I think this could live inside a custom plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Z-Wave XML contains information about all the available command classes.
E.g: List of command classes, command, available fields.
This XML file can be parsed and according to this, on the UI the developer could set the fields.
This behavior would be the same, how the PC Controller acts. On the UI the developer can set the fields of the supported command class and send the raw data to the backend. According to my information (@AlCalzone), the custom frame can be called as:
For now, only the "Driver Function"-s provides this feature, when somebody wants to send a custom frame to their device.
Example1:
According to this part of the XML, on the UI the developer can choose the COMMAND_CLASS_SWITCH_BINARY (available version which can be 1 or 1+) and the SWITCH_BINARY_SET command. The UI could generate them one (in this case) field, which could be a dropdown menu with the
on/enable=0xFF
and theoff/disable=0x00
values.Example2
Some command classes have a payload of variable length, like the Color Switch CC.
When the developer chooses this CC with the SWITCH_COLOR_SET command, the UI could generate the following fields:
And a plus and minus button to add vg-s for the command class. One VG would have the following fields:
Beta Was this translation helpful? Give feedback.
All reactions