Dear all,
I’m going crazy getting my zigbee devices to work through the zigbee2mqtt binding.
While turning them on and off works fine the state does not get updated on external changes - like switching them on or off manually or updates to the link quality.
I’ve tried various combinations of using JSONPATH transformation on the channel or the item without any luck. At this point I don’t have any idea what else to try. I’ve set everything via the UI. Below is a sample of my channel configuration:
Please help me find what I’m missing here.
Thanks. Do you have other devices which use the MQTT Binding, and you’re successfully receiving updates from them? Or is this the first time that you’re using this binding?
You are definitely missing the transformation pattern to receive the state, make sure to have json transformation installed and maybe the quotes on your on/off state are too much.
Also I would recommend to add individual things for each physical device. Even technically it does not matter, it’s maybe helpful to have a better overview and do not mix-up things
Unfortunately the behavior is still the same. This should rule out incorrect thing/channel settings, though, so I guess the error comes from somewhere else. Below is the code from my MQTT broker, just to make sure
Probably time to start looking into the openHAB logs.
Do you have the JSONPATH Transformation Service installed?
And double check your new configuration. It’s not exactly the mirror of @Matze0211 - there’s at least a trailing slash in there, as well as a not-needed postCommand parameter…