Java Runtime Environment: which java platform is used and what version
openHAB version: 2.5.0-1
Issue of the topic: How do I add items / things for zigbee2mqtt
I’m starting on my HomeHab journey, but before i get too far I wanted to get the Xiaomi devices working, as I ahve a few of them. Hence I have been playing with zigbee2mqtt
Following the the beginners instructions in the first link it mentions looking at the Mosquito log using the command: mosquitto_sub -d -t zigbee2mqtt/# however this does not work, I am assuming it is because this relates to the version installed via openhabian-config and not via Paper UI as I have done?
I have managed to pair a device as this appears in the zigbee2mqtt log as follows:
I recommend using mosquitto borker as the embedded broker Moquette lacks support. You can use the openhabian-config tool to install mosquitto.
Yes, you are correct.
Can’t help with the embedded broker but I can give several examples using mosquitto.
Just let me know about the examples and I will post them. FYI, most recommend using PaperUI to create the Thing and files for items. I’m hardheaded and use files for everything…
EDIT:
It’s Christmas, what the heck here is an example of one of my zigbee2mqtt things and items file.
You will likely need a transformation service installed such as JSONPATH (installed via PaperUI > addons > tranformations). You can see how this is used in example above.
Thank you for your prompt reply and Christmas present
I have created the thing file and the item as below and linked the channel to the item in the Paper UI. I’ve the also installed the JSONPATH transformation.
I’ve moved on but still not working, do I need to config the JSON somewhere?
What is your device, a motion sensor? You will need to use whatever the payload of mqtt is. Do you have anything reporting from the device? Check the logs for error messages.
Thanks for your prompt replies and support, I’ve been doing some research and I think the config should be as follows, based on the log, although still not working: