I need to develop an addon similar to OH1 MQTT but i have no idea how to extract the multiple item binding configurations similar to Item myItem {mqtt=“direction[broker:topic:type:transformer:regex_filter], direction[broker:topic:type:transformation], …”}
Can someone give me some ideas and flows how to do this on OH2? Basically, I plan to copy some of the codes from OH1. Thanks
Looking at your other posts, I assume that you already answered this question yourself as well, right?
In general, you define Things with multiple channels, where each channel in the end can map to one item.
Speaking about your suggestion of .thing structure on your above link, could it be better if we define the subtopic and direction in the .xml as tags of the in .Thing file? Or what is the benefit of having it (channel) manually defined it in .thing file?