Because the Zigbee Binding isn’t working with all Xiaomi Aqara devices, I decided to setup all my configuration through zigbee2mqtt and the mqtt binding.
Before I start with my problem, is there a way to use a normal, understandable syntax for the configuration? Like xml, json or yaml?
Okay back to my problem:
Currently my item looks like this: Number THSensor "Temperature [%.2f °C]" {mqtt="<[broker:zigbee2mqtt/0x00158e12345065dd:state:JSONPATH($.temperature)]"}
But I found a syntax like this too and I’m confused, but nothing works: Number THSensor "Temperature [%.2f °C]" {channel="mqtt:topic:broker:zigbee2mqtt/0x00158d00045065dd"}
Then I tried to set it up through PaperUI, that worked without problems. What do I wrong?
I also have a bit different question, maybe off-topic:
is it possible to create variables inside the items file?
is it possible to create things/items/channels (don’t know which I’m meaning) at once like the simple mode in PaperUI?