Unable to connect Raspbee II to Pi 3b+

Hi,

Long story short:
My Pi 3b+ cannot see the mounted Raspbee II when using the image “Raspbian Buster Desktop” from phoscon. The deCONZ just shows not connected, the Raspbee II device is selected but nothing happens when I press connect. I have a HA installation that can see the Raspbee II, so the hardware seems to work just fine.

Long story:
I have a broken Home Assistant on a Raspberry Pi 3 b+ with Raspbee II, that I would like to start over with a fresh install. However, every attempt to make a new SD card with Home Assistant has been unable to contact the Raspbee II. I have download the Raspbian Buster Desktop from phoscon.de, but that cannot connect to the Raspbee II either. I have tried to update the firmware of the Raspbee II using this guide Update deCONZ manually · dresden-elektronik/deconz-rest-plugin Wiki · GitHub, but without luck either.
My (now) broken Home Assistant has been working fine in over a year, but the SD card is dying. However it does start up and is capable of seeing the Raspbee II so the hardware seem to work fine. I have tried to restore that HA from a backup, but without luck. I have tried to unplug and plug it back in.

By now I am out of ideas, so any input on what I could try is welcome!

Hi, can you share some logs from the system that’s not working? You can find an topic here : #deconz

This is what a section of the log looks like, with levels from How to get logs?.

23:40:24:852 dev /dev/ttyS0 (/dev/ttyS0)
23:40:28:849 dev /dev/ttyS0 (/dev/ttyS0)
23:40:29:735 Daylight now: nadir, status: 100, daylight: 0, dark: 1
23:40:29:737 networkState: CC_ReconnectNetwork
23:40:29:738 start reconnect to network
23:40:30:234 UPNP error Unknown error
23:40:30:277 Serial com connected
23:40:30:358 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:30:359 device state timeout ignored in state 2
23:40:30:522 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:30:524 device state timeout ignored in state 2
23:40:30:683 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:30:684 device state timeout ignored in state 2
23:40:30:842 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:30:843 device state timeout ignored in state 2
23:40:31:002 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:003 device state timeout ignored in state 2
23:40:31:163 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:164 device state timeout ignored in state 2
23:40:31:234 UPNP error Unknown error
23:40:31:322 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:323 device state timeout ignored in state 2
23:40:31:483 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:484 device state timeout ignored in state 2
23:40:31:642 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:643 device state timeout ignored in state 2
23:40:31:802 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:803 device state timeout ignored in state 2
23:40:31:962 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:31:963 device state timeout ignored in state 2
23:40:32:122 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:32:123 device state timeout (handled)
23:40:32:124 Serial com disconnected, reason: 1
23:40:32:126 device disconnected reason: 1, device index: 0
23:40:32:202 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
23:40:32:204 device state timeout ignored in state 1
23:40:32:234 UPNP error Unknown error
23:40:32:736 wait reconnect 15 seconds
23:40:33:234 UPNP error Unknown error
23:40:33:734 wait reconnect 14 seconds
23:40:34:234 UPNP error Unknown error
23:40:34:734 failed to reconnect to network try=1
23:40:34:736 wait reconnect 13 seconds
23:40:34:851 COM: /dev/ttyAMA0 :  (0x0000/0x0000)
23:40:34:854 COM: /dev/ttyS0 :  (0x0000/0x0000)
23:40:34:855 dev /dev/ttyS0 (/dev/ttyS0)
23:40:34:856 GW firmware update select /dev/ttyS0 device
23:40:34:936 GW update firmware not found: 
23:40:35:234 UPNP error Unknown error
23:40:35:734 wait reconnect 12 seconds
23:40:36:234 UPNP error Unknown error
23:40:36:735 wait reconnect 11 seconds
23:40:37:234 UPNP error Unknown error
23:40:37:735 wait reconnect 10 seconds
23:40:38:235 UPNP error Unknown error
23:40:38:735 wait reconnect 9 seconds
23:40:39:235 UPNP error Unknown error
23:40:39:736 Daylight now: nadir, status: 100, daylight: 0, dark: 1
23:40:39:738 No valid ethernet interface found
23:40:39:740 failed to reconnect to network try=2
23:40:39:741 wait reconnect 8 seconds
23:40:40:234 UPNP error Unknown error
23:40:40:735 wait reconnect 7 seconds
23:40:41:234 UPNP error Unknown error
23:40:41:735 wait reconnect 6 seconds
23:40:42:234 UPNP error Unknown error
23:40:42:735 wait reconnect 5 seconds
23:40:43:235 UPNP error Unknown error
23:40:43:734 wait reconnect 4 seconds
23:40:44:234 UPNP error Unknown error
23:40:44:734 failed to reconnect to network try=3
23:40:44:736 wait reconnect 3 seconds
23:40:44:856 COM: /dev/ttyAMA0 :  (0x0000/0x0000)
23:40:44:858 COM: /dev/ttyS0 :  (0x0000/0x0000)
23:40:44:860 dev /dev/ttyS0 (/dev/ttyS0)
23:40:44:861 GW firmware update select /dev/ttyS0 device
23:40:44:886 GW update firmware not found: 
23:40:45:234 UPNP error Unknown error
23:40:45:734 wait reconnect 2 seconds
23:40:46:234 UPNP error Unknown error
23:40:46:735 wait reconnect 1 seconds
23:40:46:846 COM: /dev/ttyAMA0 :  (0x0000/0x0000)
23:40:46:848 COM: /dev/ttyS0 :  (0x0000/0x0000)
23:40:46:850 dev /dev/ttyS0 (/dev/ttyS0)
23:40:46:852 auto connect com /dev/ttyS0
23:40:47:235 UPNP error Unknown error
23:40:48:234 UPNP error Unknown error
23:40:48:277 Serial com connected
23:40:48:366 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:48:367 device state timeout ignored in state 2
23:40:48:530 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:48:532 device state timeout ignored in state 2
23:40:48:690 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:48:691 device state timeout ignored in state 2
23:40:48:850 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:48:852 device state timeout ignored in state 2
23:40:49:010 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:012 device state timeout ignored in state 2
23:40:49:170 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:172 device state timeout ignored in state 2
23:40:49:235 UPNP error Unknown error
23:40:49:331 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:333 device state timeout ignored in state 2
23:40:49:490 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:492 device state timeout ignored in state 2
23:40:49:650 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:652 device state timeout ignored in state 2
23:40:49:737 Daylight now: nadir, status: 100, daylight: 0, dark: 1
23:40:49:739 No valid ethernet interface found
23:40:49:740 try to reconnect to network try=4
23:40:49:811 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:812 device state timeout ignored in state 2
23:40:49:970 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:49:972 device state timeout ignored in state 2
23:40:50:130 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:40:50:131 device state timeout (handled)
23:40:50:132 MASTER kill cmd 0x08 (ERROR)
23:40:50:133 Serial com disconnected, reason: 1
23:40:50:136 device disconnected reason: 1, device index: 0
23:40:50:210 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
23:40:50:212 device state timeout ignored in state 1
23:40:50:234 UPNP error Unknown error
23:40:50:735 wait reconnect 15 seconds
23:40:51:234 UPNP error Unknown error
23:40:51:734 wait reconnect 14 seconds
23:40:52:234 UPNP error Unknown error
23:40:52:735 wait reconnect 13 seconds
23:40:53:234 UPNP error Unknown error
23:40:53:734 wait reconnect 12 seconds
23:40:54:234 UPNP error Unknown error
23:40:54:734 failed to reconnect to network try=5
23:40:54:736 wait reconnect 11 seconds
23:40:54:866 COM: /dev/ttyAMA0 :  (0x0000/0x0000)
23:40:54:868 COM: /dev/ttyS0 :  (0x0000/0x0000)
23:40:54:869 dev /dev/ttyS0 (/dev/ttyS0)
23:40:54:871 GW firmware update select /dev/ttyS0 device
23:40:54:898 GW update firmware not found: 
23:40:55:234 UPNP error Unknown error
23:40:55:734 wait reconnect 10 seconds
23:40:56:234 UPNP error Unknown error
23:40:56:735 wait reconnect 9 seconds
23:40:57:235 UPNP error Unknown error
23:40:57:735 wait reconnect 8 seconds
23:40:58:235 UPNP error Unknown error
23:40:58:735 wait reconnect 7 seconds
23:40:59:237 UPNP error Unknown error
23:40:59:734 Daylight now: nadir, status: 100, daylight: 0, dark: 1
23:40:59:736 No valid ethernet interface found
23:40:59:738 failed to reconnect to network try=6
23:40:59:739 wait reconnect 6 seconds
23:41:00:235 UPNP error Unknown error
23:41:00:734 wait reconnect 5 seconds
23:41:01:234 UPNP error Unknown error
23:41:01:438 void MainWindow::devConnectClicked() choose com /dev/ttyS0
23:41:01:734 wait reconnect 4 seconds
23:41:02:234 UPNP error Unknown error
23:41:02:736 wait reconnect 3 seconds
23:41:02:864 Serial com connected
23:41:02:955 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:02:957 device state timeout ignored in state 2
23:41:03:115 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:03:116 device state timeout ignored in state 2
23:41:03:234 UPNP error Unknown error
23:41:03:274 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:03:276 device state timeout ignored in state 2
23:41:03:434 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:03:436 device state timeout ignored in state 2
23:41:03:594 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:03:596 device state timeout ignored in state 2
23:41:03:734 wait reconnect 2 seconds
23:41:03:755 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:03:757 device state timeout ignored in state 2
23:41:03:914 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:03:915 device state timeout ignored in state 2
23:41:04:074 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:04:076 device state timeout ignored in state 2
23:41:04:235 UPNP error Unknown error
23:41:04:236 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:04:237 device state timeout ignored in state 2
23:41:04:394 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:04:396 device state timeout ignored in state 2
23:41:04:554 void zmMaster::handleStateStatus(zmMaster::MasterEvent) EVENT_TIMEOUT
23:41:04:556 device state timeout (handled)
23:41:04:557 Serial com disconnected, reason: 1
23:41:04:560 device disconnected reason: 1, device index: 1
23:41:04:639 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
23:41:04:641 device state timeout ignored in state 1
23:41:04:734 failed to reconnect to network try=7
23:41:04:735 wait reconnect 15 seconds
23:41:04:860 COM: /dev/ttyAMA0 :  (0x0000/0x0000)
23:41:04:863 COM: /dev/ttyS0 :  (0x0000/0x0000)
23:41:04:864 dev /dev/ttyS0 (/dev/ttyS0)
23:41:04:866 GW firmware update select /dev/ttyS0 device
23:41:04:890 GW update firmware not found: 
23:41:05:235 UPNP error Unknown error
23:41:05:734 wait reconnect 14 seconds
23:41:06:235 UPNP error Unknown error
23:41:06:734 wait reconnect 13 seconds
23:41:07:235 UPNP error Unknown error
23:41:07:734 wait reconnect 12 seconds
23:41:08:235 UPNP error Unknown error
23:41:08:734 wait reconnect 11 seconds
23:41:09:234 UPNP error Unknown error
23:41:09:735 DB save zll database items 0x00000080
23:41:09:737 DB sql exec REPLACE INTO sensors (sid, name, type, modelid, manufacturername, uniqueid, swversion, state, config, fingerprint, deletedState, mode, lastseen, lastannounced) VALUES ('1', 'Daylight', 'Daylight', 'PHDL00', 'Philips', '00:00:00:00:00:00:00:00-01', '1.0', '{"dark":true,"daylight":false,"lastupdated":"2022-01-24T23:40:09.423","status":100,"sunrise":"2022-01-25T07:19:19","sunset":"2022-01-25T15:31:05"}', '{"configured":true,"lat":"55.7123","long":"12.0564","on":true,"sunriseoffset":30,"sunsetoffset":-30}', '', 'normal', '1', '', '')
23:41:09:790 DB saved in 54 ms
23:41:09:792 Daylight now: nadir, status: 100, daylight: 0, dark: 1
23:41:09:795 No valid ethernet interface found
23:41:09:796 failed to reconnect to network try=8
23:41:09:798 wait reconnect 10 seconds
23:41:10:234 UPNP error Unknown error
23:41:10:734 Skip idle timer callback, too early: elapsed 936 msec
23:41:10:736 wait reconnect 9 seconds
23:41:11:234 UPNP error Unknown error
23:41:11:743 wait reconnect 8 seconds