Configs, Migrate MQTT 1.xx to 2.xx Feb 7, 2019 21:12:04 GMT
Post by papa on Feb 7, 2019 21:12:04 GMT
Migrating from MQTT Binding 1.xx to 2.xx
From what I read & experience, (as the primary option) OpenHAB will keep moving away from (what has been) text file configuration & toward UI configuration. Also apparently about 2 years from now, the 1.xx bindings will be phased out. If we have been using a 1.xx binding & if we are fortunate, a 2.xx version will be available.
rikoshak, knowledgeable OpenHAB Foundation Member: "No one is saying that text files are going away. But because of issues, text files will have to become radically different from their current form. ... PaperUI will be rewritten to make editing of everything possible in a more text file like manner."
My previous approach of using all text config files was agonizing & did not work very well (although my struggles to define the broker & things & channels in text files likely caused some of my problems.) Using PaperUI can be tedious clicking & entering text in several fields, but it worked. Once we convert existing nodes & items for MQTT 2.xx, we won't need the PaperUI config until we add new nodes. Also we can hope for that better PaperUI in the future.
So my thinking, which I followed & documented in this thread, is ... install OpenHAB 2.5.0.M1 or later AND migrate from Mosquitto MQTT message broker to the OpenHAB embedded MQTT broker AND migrate from MQTT Binding 1.xx to MQTT Binding 2.xx. There I used PaperUI for all except using text files for items, sitemaps, & rules.
In the above mentioned thread, I give examples of configuring Things & channels for our DIY Home Automation MQTT nodes. Below I will document & color-code the translation from MQTT 1.xx to MQTT 2.xx so we might see how to convert our configurations.