Replies: 1 comment 1 reply
-
The JSON scheme can indeed be reconstructed from the exposes. This is also how the frontend does it. I've fixed the typo in the docs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to interface my java app with zigbee2mqtt. To do that I was looking for JSON scheme, so I can use some tool to create POJO and use deserializer, like GSON. Unfortunately I couldn't find one (scheme, not deserializer). Is there such a thing?
Eventually, I've used MQTT topics and message documentation, but I am not sure if it covers whole scheme. Besides, there are some obvious mistakes, documentation says:
"exposes":{"type":"light","features":["state","brightness","color_xy"]}
while in fact, reported message contains array:
"exposes":[{"type":"light","features":["state","brightness","color_xy"]}]
Beta Was this translation helpful? Give feedback.
All reactions