arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.96k stars 4.77k forks source link

OpenHAB documentation obsolete #4675

Closed sgofferj closed 5 years ago

sgofferj commented 5 years ago

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.

ascillato commented 5 years ago

Please update it. Wiki is open for community to edit.

meingraham commented 5 years ago

@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.

sgofferj commented 5 years ago

@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.

meingraham commented 5 years ago

@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

ascillato commented 5 years ago

@meingraham Totally agree with you.

meingraham commented 5 years ago

Added note to wiki page