Closed sgofferj closed 5 years ago
Please update it. Wiki is open for community to edit.
@sgofferj,
Hold 'dem horses!
The openHAB2 version of the MQTT binding has just been released and is still somewhat in its infancy (understatement). As such, there are a few hiccups still showing up and also a few features not yet fully fleshed out.
The MQTT v1 binding is still available. It has just been moved to "legacy" status. It can coexist (i.e., be installed) alongside the v2 binding. There are still many users (i.e., 99.99999%) still on the original binding. In fact, there are some use cases that currently can only still be accomplished with the v1 binding. In some cases there are workarounds which require additional scripting in openHAB. In some cases, there is no equivalent capability. Thus, getting rid of the TASMOTA openHAB wiki is premature!
At most, one might argue for a note in the wiki to make users of TASMOTA with openHAB aware of the new openHAB2 binding. Then, one might make the case to retain the v1 as a "if you are still using MQTT v1...". Finally, the wiki ought to have an equivalent section to what is currently present in the wiki ADDED to the page but adjusted to reflect the necessary syntax when using MQTT v2.
Respectfully,
Mike
P.S. I have not yet taken the plunge to migrate to the new binding even though I've been monitoring its development for several weeks. Its stability and the amount of effort to migrate just isn't worth the effort at this point. I say this because if someone suggests that I write the wiki, it would not go far because I have not implemented the new binding and have no first hand experience with it.
@meingraham Thanks for the clarification. I spent about an hour literally sitting in a cold and dark apartment after an automatic update moved my installation to v2 and disabled v1 :D. A quick forum search found David Graeff saying 5 days ago
It will “replace” (as in: make it obsolete) the mqttv1 binding within the next couple days, which stops all support for the old binding.
here, which triggered a little panic mode :D. I got it back working with some reading and some help from the openhab forum. Just wanted to spare other users the same experience, hence I opened that issue here.
@ascillato I do appreciate developers being busy but not everybody reporting an issue has the time or the skill to do something about it. In this case, I for example don't know anything about the MQTTv2 binding except that it's coming.
@ascillato - I realize that this is not the openHAB forum... but if anyone runs across this issue, I wanted to ensure completeness to my earlier post.
The openHAB MQTTv1 and MQTTv2 fortunately have different component IDs. Therefore they can both be installed concurrently. This will allow users to update openHAB and migrate to the v2 binding over a period of time (i.e., not overnight!).
Since the openHAB2 MQTT binding is now officially released, the v1 binding has been marked as legacy. This means it will not be updated. However, it still runs perfectly under openHAB 2, at least as of 2.4. In order to install it, edit the addons.cfg in the services folder and make sure there is a line that reads "legacy = true" and that it is not commented (i.e., prepended by #). This allows legacy bindings to be installed from the openHAB "legacy" repository online.
It's probably a good idea to start migrating now while both bindings are viable concurrently. It's likely that the v1 binding will cease working sometime in the (hopefully distant) future.
Mike
@meingraham Totally agree with you.
Added note to wiki page
The MQTTv1 binding in OpenHAB has been deprecated and disabled recently. Therefore, the documentation under https://github.com/arendst/Sonoff-Tasmota/wiki/openHAB is obsolete. Updating the documentation might be good because the item examples don't work any more.