Upgrading Openhab1 to Openhab2b4

Hello everybody :slight_smile:
I´m currently use openhab1. Now i want upgrade to version 2b4. I want to configure all my items etc in textfiles like openhab1.

I create the textfile homematic.things

Bridge homematic:bridge:ccu [ gatewayAddress="192.168.1.XXX" ] {
	Thing	HG-HM-Sec-SC2	MEQ1XXXX5	"Test1"	@	"Location"
	Thing	HG-HM-Sec-SC2	MEQ1XXXX5	"Test2"	@	"Location"
	Thing	HG-HM-Sec-SC2	MEQ1XXXX5	"Test3"	@	"Location"
	Thing	HG-HM-CC-RT-DN	MEQ0XXXX5	"Test4"	@	"Location"
	Thing	HG-HM-CC-RT-DN	MEQ0XXXX5	"Test5"	@	"Location"
	Thing	HG-HM-CC-RT-DN	MEQ0XXXX5	"Test6"	@	"Location"
}

After that i create my homematic.items like

Number	gDG_Wohnzimmer_Fenster_Status		"Wohnzimmer - Fenster-Status [MAP(HM-SEC-SC-2.map):%d]"			<"rollershutter-0">		(gDG_Wohnzimmer)			{ channel="homematic:HG-HM-Sec-SC-2:ccu:MEQ1XXXX5:1#STATE" }
Number	gDG_Wohnzimmer_Fenster_Batterie		"Wohnzimmer - Fenster-Batterie [MAP(HM-SEC-SC-2_BAT.map):%d]"	<"rollershutter-0">		(gDG_Wohnzimmer)			{ channel="homematic:HG-HM-Sec-SC-2:ccu:MEQ1XXXX5:1#LOWBAT" }
Number	gDG_Wohnzimmer_Fenster_Fehler		"Wohnzimmer - Fenster-Fehler [MAP(HM-SEC-SC-2_ERROR.map):%d]"	<"rollershutter-0">		(gDG_Wohnzimmer)			{ channel="homematic:HG-HM-Sec-SC-2:ccu:MEQ1XXXX5:1#ERROR" }
.....

But i get this error on Log:

17:17:00.713 [ERROR] [ematic.handler.HomematicThingHandler] - Could not update t
hing homematic:HG-HM-CC-RT-DN:ccu:MEQ1XXXX5. Most likely because it is read-onl
y.
java.lang.IllegalStateException: Could not update thing homematic:HG-HM-CC-RT-DN
:ccu:MEQ0802575. Most likely because it is read-only.
        at org.eclipse.smarthome.core.thing.internal.ThingManager$1.thingUpdated
(ThingManager.java:237)[105:org.eclipse.smarthome.core.thing:0.9.0.201610220816]

        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateConfi
guration(BaseThingHandler.java:469)[105:org.eclipse.smarthome.core.thing:0.9.0.2
01610220816]
        at org.openhab.binding.homematic.handler.HomematicThingHandler.initializ
e(HomematicThingHandler.java:101)[196:org.openhab.binding.homematic:2.0.0.201610
221219]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.thingUpdate
d(BaseThingHandler.java:183)[105:org.eclipse.smarthome.core.thing:0.9.0.20161022
0816]
        at org.openhab.binding.homematic.handler.HomematicBridgeHandler.updateTh
ing(HomematicBridgeHandler.java:213)[196:org.openhab.binding.homematic:2.0.0.201
610221219]
        at org.openhab.binding.homematic.handler.HomematicBridgeHandler.reloadDe
viceValues(HomematicBridgeHandler.java:291)[196:org.openhab.binding.homematic:2.
0.0.201610221219]
        at org.openhab.binding.homematic.internal.communicator.AbstractHomematic
Gateway.triggerDeviceValuesReload(AbstractHomematicGateway.java:463)[196:org.ope
nhab.binding.homematic:2.0.0.201610221219]
        at org.openhab.binding.homematic.handler.HomematicBridgeHandler.reloadAl
lDeviceValues(HomematicBridgeHandler.java:302)[196:org.openhab.binding.homematic
:2.0.0.201610221219]
        at org.openhab.binding.homematic.handler.HomematicBridgeHandler.onServer
Restart(HomematicBridgeHandler.java:252)[196:org.openhab.binding.homematic:2.0.0
.201610221219]
        at org.openhab.binding.homematic.internal.communicator.AbstractHomematic
Gateway$EventTrackerThread.run(AbstractHomematicGateway.java:739)[196:org.openha
b.binding.homematic:2.0.0.201610221219]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:
1.8.0_92]
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)[:1.8.0_92
]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)[:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)[:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.
8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1
.8.0_92]
        at java.lang.Thread.run(Unknown Source)[:1.8.0_92]

What´s wrong :expressionless: ?

Did you wait a few more minutes? I saw this error before but my items got updated a few minutes later.

Hello :slight_smile:
yes - 30 minutes. The error displayed every minute, but the HM-CC-RT-DN got updated.

But ist get no Update on my HG-HM-Sec-SC2. All datapoints are only " - " =(

Maybe a simple configuration error? Can you again check all details? For reference, here you can find my setup.

Hi,

since I configured the Homematic binding I also get the same error every few minutes, although everything works as expected. I use the latest snapshot release.

Don’t know what I did wrong, I used the configuration files from ThomDietrich as a template. So I don’t think it’s a configuration issue, but of course I can’t be sure…

Any help would be appreciated.

Regards,
Viktor

Do you see this error for one device or for random ones? Could as well just be a connectivity problem, causing the appropriate error!?

Hi Thom,

right now I have only two types of devices: optical window sensors and a switch for lights (“hutschiene”).
The error appears for both device tyles, and actually for each device.
My setup is:
RPi 3 with OH 2 snapshot
YAHM, running on the same RPi with an instance of the latest CCU2.

Cheers