To make this easier, I would recommend to add:
experimental:
output: attribute
to your zigbee2mqtt configuration.yaml
.
This means you’d only need to send 100
(or any number) to zigbee2mqtt/L_Desk/set/brightness
(note the change in command topic; your state topic remains the same).
I’ve been using zigbee2mqtt for quite some time, for details look here:
and here:
Recently I discovered a new option of zigbee2mqtt: attribute output. This option, in company with the mqtt2 binding, provides a nice solution.
This option simply gets rid of the json-formatted output and transmits all attributes separately.
You enable it via configuration.yaml.
experimental:
output: attribute
The benefits are:
no more json-encoded output => no jsonpath-transformation
no more missing …
1 Like