csowada / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
6 stars 2 forks source link

Sometimes ``AcceptedItemType`` is null after binding restart #2

Open csowada opened 4 years ago

csowada commented 4 years ago

Expected Behavior

After a restart of the binding all channels should be available again.

Current Behavior

From time to time the AcceptedItemType from the channel is null. In that case only a openHAB restart helps.

Source code

It happens here: https://github.com/csowada/openhab2-addons/blob/4997475187b82bc55fd9674a193afdde9acd16bc/bundles/org.openhab.binding.ebus/src/main/java/org/openhab/binding/ebus/internal/handler/EBusHandler.java#L104

and here it is defined: https://github.com/csowada/openhab2-addons/blob/4997475187b82bc55fd9674a193afdde9acd16bc/bundles/org.openhab.binding.ebus/src/main/java/org/openhab/binding/ebus/internal/things/EBusTypeProviderImpl.java#L194

Possible Solution

Restart your openHAB server

Your Environment

archlinux on Sun Java 8, ARMv7 O-Droid MC1 openHAB 2.4