You can create your Things and items in files to verify everything works as expected. Below is an example of a few Tasmota Things/Items created via files. The file location is etc/openhab2/things
and etc/openhab2/items
you can name the file whatever you want.
Thing file:
Bridge mqtt:broker:pibroker "pibroker" [ host="10.0.1.15", port=1883, secure=false, username="xxxxx", password="xxxxxxx" ]
{
Sonoffs
Thing topic sonoff11 "Living Room Light" @ "Living Room" {
Channels:
Type switch : power "Power" [ stateTopic="stat/sonoff11/POWER", commandTopic="cmnd/sonoff11/POWER" ]
Type number : temperature "Temperature" [ stateTopic="tele/sonoff11/SENSOR", transformationPattern="JSONPATH:$.SI7021.Temperature" ]
Type number : humidity "Humidity" [ stateTopic="tele/sonoff11/SENSOR", transformationPattern="JSONPATH:$.SI7021.Humidity" ]
}
Thing topic sonoff2 "Couch Light" @ "Couch Light" {
Channels:
Type switch : power "Power" [ stateTopic="stat/sonoff2/POWER", commandTopic="cmnd/sonoff2/POWER" ]
}
Thing topic sonoff55 "Office Light" @ "Office" {
Channels:
Type switch : power "Power" [ stateTopic="stat/sonoff55/POWER", commandTopic="cmnd/sonoff55/POWER" ]
}
}
Items file:
Switch LivingRoom_Light "Living Room Light" <light> ["Lighting"] { channel="mqtt:topic:pibroker:sonoff11:power" }
Number LivingRoom_Light_Temp "Temperature [%.1f °F]" <temp> { channel="mqtt:topic:pibroker:sonoff11:temperature" }
Number LivingRoom_Light_Humidity "Humidity [%.1f %%]" <humidity> { channel="mqtt:topic:pibroker:sonoff11:humidity" }
Switch CouchLight "Couch Light" <light> ["Lighting"] { channel="mqtt:topic:pibroker:sonoff2:power" }
Switch OfficeLight "Office Light" <light> ["Lighting"] { channel="mqtt:topic:pibroker:sonoff55:power", expire="180m,command=OFF" }
Afterward, you can move your Things from files to PaperUI and leave the items in files. See this post for migrating from text files to PaperUI: