I have a switch type channel defined on a MQTT thing. I have both stateTopic and commandTopic defined. When I use an MQTT client (MQTT.fx) to post a message on the state topic, the item bound to the channel on the thing reacts appropriately. When I post a message to the command topic it does not react at all.
Ok, so if I understand you correctly, only state updates are communicated TO the MQTT server and only command updates are read FROM the MQTT server?
If this is that case, how do I link two instances of OH via MQTT if I wish to be able to command a remote item when the local item is commanded?
Actually, then this means that it is not possible to link two instances using MQTT at all since the source will only publish to the state topic and the consumer will only listen to the command topic…
I should have asked this question a few days earlier before I got so deep into it but thanks for letting me know.
Any rough ETA? I would really like to dump the v1 binding and go all on you new binding.
I’m a bit busy with the new Paper UI design study (https://davidgraeff.github.io/paperui-ng/) and all related missing core features. On my personal agenda it has a very low priority so ETA is about half a year to a year. Maybe someone else jumps in in the mean time.
This is at the moment only rendered by Paper UI, but there is an open Issue on the website/docs repository to automatically generate available Things / Channel descriptions via those xml files. A developer has to repeat himself 3 times right now and often the documentation is not in sync with the xml files or the java code.
I understand the problem. However, I’ve proposed a small change on the doc page for the time being.
I’d also like to see some of the details there that have posted in the forum and are very helpful (like those from this thread). Does it make sense to add them to the docs page? I must admit, I sometimes feel a bit lost in the docs, not finding infos in the binding docs, then later discovering that they are somewhere else.
That’s also part of the discussion on the mentioned Issue (https://github.com/openhab/website/issues/152). The question is how much should be added to individual binding docs, because many people only ever go the binding docs and not the general ones.
Rule of thumb: If you feel that the information is mostly relevant for MQTT, then please go ahead and create a PR. Consider this note though: People complained that the MQTT doc doesn’t provide enough information. The MQTT Generic doc has now dozen of examples, migration sections etc pp and is about 10 printed pages long. People now complain that it is not concise enough. Keeping this balance is really hard.