ZigBee thing config not considered during startup

Dear all,

I am new in the active part of the forum as - so far - I could find all answers, thank you for the great SW and community!

No I am running into a issue I do not understand and can not solve even reading the existing posts.
I have a CC2531 which I use as ZigBee gateway for my Aqara temperature / humidity sensor without the aqara gateway itself. So far it worked great and reliable even for months. The only drawback has been that I had to push the connect button in case I restart the openhabian. So far, so good (even though I would like to change this!).

Yesterday after restarting the openhabian the device was not connecting anymore and I tried out a lot. The aqara thing is added via paper ui (unfortunately as I could not find proper thing configs as a beginner) while the zigbee coordinator is configured via thing config file as follows:

Thing zigbee:coordinator_cc2531:stick1 "Zigbee USB Stick" [zigbee_port="/dev/ttyACM0", zigbee_baud="115200"]

As I tried out a lot today, I changed to a (hopefully better) config

Thing zigbee:coordinator_cc2531:stick1 "Zigbee USB Stick" [zigbee_port="/dev/ttyACM0", zigbee_baud="115200", zigbee_panid=30483, zigbee_extendedpanid="8BBD0C11495B91C4",zigbee_networkkey="95 38 D7 64 55 E3 6A 54 A2 D3 B6 DA 57 EF A8 80"]

The very interesting fact now is, that if I check the parameters such as panid, extendedpanid and networkkey after reboot, they are different than those I have configured. If I change the file in the editor (blank line, not config) to make openhab reload the module, the values change to the numbers as specified. For me this is not the behavior I expect.

In addition I can only connect the aqara device BEFORE I make openhab to reload the module. In case the module is reloaded by any reason, the values of the aqara are not updated anymore. In addition I can only pair the new aqara in case the module has NOT been changed in the editor (even though the log, see below, stats it has been reloaded).

Log after rebooting openhabian and not changing the zigbee coordinator config file but the aqara config file:


2019-07-29 20:36:17.872 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_cc2531:stick1' has been updated.

2019-07-29 20:36:17.874 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_cc2531:stick1' changed from UNKNOWN to ONLINE

2019-07-29 20:36:18.136 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_cc2531:stick1' has been updated.

2019-07-29 20:36:50.437 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 00158D0002F820AA: Starting ZigBee device discovery

2019-07-29 20:36:50.451 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zigbee:device:stick1:00158d0002f820aa' to inbox.

2019-07-29 20:36:50.454 [home.event.InboxAddedEvent] - Discovery Result with UID 'zigbee:device:stick1:00158d0002f820aa' has been added.

2019-07-29 20:36:50.510 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 00158D0002F820AA: Starting ZigBee device discovery

com.zsmartsystems.zigbee.dongle.cc2531.network.packet.ZToolParseException: Packet checksum failed

	at com.zsmartsystems.zigbee.dongle.cc2531.network.packet.ZToolPacketStream.parsePacket(ZToolPacketStream.java:140) [271:com.zsmartsystems.zigbee.dongle.cc2531:1.1.6]

	at com.zsmartsystems.zigbee.dongle.cc2531.network.packet.ZToolPacketParser.run(ZToolPacketParser.java:107) [271:com.zsmartsystems.zigbee.dongle.cc2531:1.1.6]

com.zsmartsystems.zigbee.dongle.cc2531.network.packet.ZToolParseException: Packet checksum failed

	at com.zsmartsystems.zigbee.dongle.cc2531.network.packet.ZToolPacketStream.parsePacket(ZToolPacketStream.java:140) [271:com.zsmartsystems.zigbee.dongle.cc2531:1.1.6]

	at com.zsmartsystems.zigbee.dongle.cc2531.network.packet.ZToolPacketParser.run(ZToolPacketParser.java:107) [271:com.zsmartsystems.zigbee.dongle.cc2531:1.1.6]

2019-07-29 20:37:28.776 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_cc2531:stick1' has been updated.

2019-07-29 20:37:31.768 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 00158D0002F820AA: Starting ZigBee device discovery

2019-07-29 20:38:03.849 [me.event.InboxRemovedEvent] - Discovery Result with UID 'zigbee:device:stick1:00158d0002f820aa' has been removed.

2019-07-29 20:38:03.894 [hingStatusInfoChangedEvent] - 'zigbee:device:stick1:00158d0002f820aa' changed from UNINITIALIZED to INITIALIZING

2019-07-29 20:38:03.914 [hingStatusInfoChangedEvent] - 'zigbee:device:stick1:00158d0002f820aa' changed from INITIALIZING to UNKNOWN

2019-07-29 20:38:04.093 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:stick1:00158d0002f820aa' has been updated.

2019-07-29 20:38:04.200 [nt.FirmwareStatusInfoEvent] - Firmware status of thing zigbee:device:stick1:00158d0002f820aa changed to UNKNOWN.

2019-07-29 20:38:52.664 [hingStatusInfoChangedEvent] - 'zigbee:device:stick1:00158d0002f820aa' changed from UNKNOWN to ONLINE

2019-07-29 20:39:35.113 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_cc2531:stick1' has been updated.

2019-07-29 20:40:08.219 [.ItemChannelLinkAddedEvent] - Link 'Balkon_Aqara_Temperature-zigbee:device:stick1:00158d0002f820aa:00158D0002F820AA_1_temperature' has been added.

2019-07-29 20:40:08.225 [.ItemChannelLinkAddedEvent] - Link 'Balkon_Aqara_Humidity-zigbee:device:stick1:00158d0002f820aa:00158D0002F820AA_1_humidity' has been added.

2019-07-29 20:40:08.230 [.ItemChannelLinkAddedEvent] - Link 'Balkon_Aqara_Pressure-zigbee:device:stick1:00158d0002f820aa:00158D0002F820AA_1_pressure' has been added.

So obviously there is something wrong and I hope for support.

My setup: openhabian 2.4 on a raspberry 3B+.

Thank you and best
Matthias