# Migrate OpenHAB 2.5.12 to OpenHAB3 MQTT 1x Items Help

**URL:** <https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826>\
**Category:** Off-Topic\
**Created:** [May 3, 2021, 5:49pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826 "2021-05-03T17:49:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fals3illusion](https://community.openhab.org/user_avatar/community.openhab.org/fals3illusion/32/18884_2.png) [@fals3illusion](https://community.openhab.org/u/fals3illusion)\
**Post date:** [May 3, 2021, 5:49pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/1 "2021-05-03T17:49:55Z")

</div>

So I am in the process of trying to migrate to OH3. I am having some confusion how to configure my items file in order to use the new MQTT binding with OH3

I have MANY (50+) tasmota devices in my home. This is how they are currently set up…

```csv

Switch	Kettle_Power "Kettle [%s]" <kettle> (gSonoff_OnOff)	["Switchable"]	{mqtt=">[mosquitto:Kettle/cmnd/POWER:command:*:default],
																														<[mosquitto:Kettle/stat/POWER:state:default]"}
Number Kettle_RSSI "Kettle RSSI [%d %%]" <wifi> (gRSSI_Group) {mqtt="<[mosquitto:Kettle/tele/STATE:state:JSONPATH($.Wifi.RSSI)]"}
Switch Kettle_Unreach "Kettle unreachable [%s]" <siren> (gUnreach_Group) {mqtt="<[mosquitto:Kettle/tele/LWT:state:MAP(unreach.map)]"}
String Kettle_FW "Kettle FW [v%s]" <sonoff> (gFirmware) {mqtt="<[mosquitto:Kettle/stat/STATUS2:state:JSONPATH($.StatusFWR.Version)]"}
String Kettle_IP "Kettle IP [%s]" <kettle> (gSonoff_IP) {mqtt="<[mosquitto:Kettle/stat/STATUS5:state:JSONPATH($.StatusNET.IPAddress)]"}

```

How do i properly configure this part for the new MQTT binding.

```csv
{mqtt=">[mosquitto:Kettle/cmnd/POWER:command:*:default], <[mosquitto:Kettle/stat/POWER:state:default]"}

```

The documentation I have seen is not very descriptive from this article

> **[MQTT - Bindings](https://www.openhab.org/addons/bindings/mqtt/)**
>
> \> MQTT is a machine-to-machine (M2M)/'Internet of Things' connectivity protocol.

versus the old documentation

> **[MQTT - Bindings](https://v2.openhab.org/addons/bindings/mqtt1/)**
>
> This binding allows openHAB to act as an MQTT client, so that openHAB items

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![opus](https://community.openhab.org/user_avatar/community.openhab.org/opus/32/55801_2.png) [@opus](https://community.openhab.org/u/opus)\
**Post date:** [May 3, 2021, 6:00pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/2 "2021-05-03T18:00:28Z")

</div>

Read [This](https://community.openhab.org/t/control-tasmota-flashed-devices-via-mqtt/104099)

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [May 3, 2021, 6:07pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/3 "2021-05-03T18:07:10Z")

</div>

For one Tasmota supports the Home Assistant standard. Enable that and openHAB will automatically discover your devices and create all the Things for you. That would probably be the least amount of work.

Beyond that, Jürgen posted a good link for how to create the Things using text based .things files. If you want to manage Things through the UI, see [Migrating MQTT1 items to MQTT2.4 items](https://community.openhab.org/t/migrating-mqtt1-items-to-mqtt2-4-items/60502). For a generic MQTT 2 tutorial see the first half of [Marketplace MQTT Event Bus](https://community.openhab.org/t/mqtt-2-5-event-bus/76938).

Because you have a lot of devices, if you want to use the UI but don’t want to use automatic discovery, my recommendation is to:

1. Create the MQTT Bridge Thing which connects to the MQTT Broker
2. Create an example Generic MQTT Thing and test that it works
3. From the REST API Docs query for that Generic MQTT Thing; copy the JSON that is returned
4. Paste that JSON into the Thing Creation REST endpoint and edit the stuff that needs to be different (topics subscribed to, Thing ID, Thing name, etc.) and submit.

Repeat step 4 for each remaining Thing that needs to be created.

---

<div class="post-metadata">

**Author:** ![hafniumzinc](https://community.openhab.org/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hafniumzinc](https://community.openhab.org/u/hafniumzinc)\
**Post date:** [May 3, 2021, 6:15pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/4 "2021-05-03T18:15:13Z")

</div>

And read this:

[https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.mqtt.generic/xtend\_examples.md#converting-an-mqtt1-installation](https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.mqtt.generic/xtend_examples.md#converting-an-mqtt1-installation)

---

<div class="post-metadata">

**Author:** ![fals3illusion](https://community.openhab.org/user_avatar/community.openhab.org/fals3illusion/32/18884_2.png) [@fals3illusion](https://community.openhab.org/u/fals3illusion)\
**Post date:** [May 3, 2021, 6:31pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/5 "2021-05-03T18:31:54Z")

</div>

Thanks Guys,

I had a feeling this is going to be ALOT of work I am not ready for 😵

Thing is I did an apt-get update, cleared cache of my OH2.5 and now I cannot get any of the the ui to work or startup ( paper, basic, ui-dashboard) so its been a cluster F of a day…

```php

Failed installing 'openhab-ui-basic, openhab-ui-paper': Error:

	Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.paper/[2.5.0,2.6)

```

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [May 3, 2021, 6:52pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/6 "2021-05-03T18:52:42Z")

</div>

Bintray, the place where all the addons is stored that allows openHAB to download them on demand is no more. There was an announcement and several threads. Unfortunately, bintray didn’t give us much time before the service was cut on May 1st.

For OH 2.5 you’ll have to dowload the openhab-addons kar file (see [Download openHAB | openHAB](https://www.openhab.org/download/)) and drop that into the addons folder. OH 2.5.12 is the last release for OH 2.x and moving the artifacts for it to jfrog (the new repo) didn’t happen because of the time and effort involved.

But in general, you should only ever clear the cache when there has been an update to openHAB itself, in which case the clearing of the cache is done for you, or if you are experiencing problems that specifically have to do with the installation of bindings. It should never be “just something I do.”

---

<div class="post-metadata">

**Author:** ![fals3illusion](https://community.openhab.org/user_avatar/community.openhab.org/fals3illusion/32/18884_2.png) [@fals3illusion](https://community.openhab.org/u/fals3illusion)\
**Post date:** [May 4, 2021, 2:36am UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/7 "2021-05-04T02:36:01Z")

</div>

Oh this is a life saver, I did not know that. At least I have a working OpenHAB until I slowly convert all this MQTT stuff.

Thanks!!

---

<div class="post-metadata">

**Author:** ![system](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/6/6a52f2ac5d00e4c7b50471a354b3a9221188be90.png) [@system](https://community.openhab.org/u/system)\
**Post date:** [June 14, 2021, 6:36pm UTC](https://community.openhab.org/t/migrate-openhab-2-5-12-to-openhab3-mqtt-1x-items-help/121826/8 "2021-06-14T18:36:33Z")

</div>

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.
