dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 500 forks source link

device state timeout ignored in state 2, device disconnected reason: 1, index: 0 #3974

Closed SuperSpe closed 3 years ago

SuperSpe commented 3 years ago

Describe the question or issue you are having

I have installed raspbee for about two weeks and everything worked correctly, i had 3 sensors. one day out of the blue i can't connect to deconz or phoscon app anymore. I try everything, even fresh HASSIO install...nothing change. I think the Raspbee is broken. I try /dev/ttyAMA0 and /dev/ttyS0. same.

Screenshots

Environment

deCONZ Logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] firmware.sh: executing... [00:02:46] INFO: GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh Path | Vendor | Product | Serial | Type -----------------+--------+---------+------------+------- /dev/ttyAMA0 | 0x0000 | 0x0000 | | RaspBee [cont-init.d] firmware.sh: exited 0. [cont-init.d] nginx.sh: executing... [cont-init.d] nginx.sh: exited 0. [cont-init.d] novnc.sh: executing... [cont-init.d] novnc.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [00:02:47] INFO: Starting udevd... [00:02:47] INFO: Running the deCONZ OTA updater... [00:02:47] INFO: Running the IKEA OTA updater... [00:02:47] INFO: Websockify waiting for VNC to start [00:02:47] INFO: Running the OSRAM LEdvance OTA updater... [00:02:47] INFO: Starting VNC server (local/yes)... [00:02:48] INFO: Starting websockify... WebSocket server settings:

Mimiix commented 3 years ago

Hi :)

Did you click "firmware update" in the addon?

SuperSpe commented 3 years ago

Do you mean in the phoscon app? Cause I can reach it, when I connect it says "no network found"

Mimiix commented 3 years ago

Yes, did you click that button prior having this issue?

Also, i suggest using a USB Extension cable. Just to rule out interference.

SuperSpe commented 3 years ago

I am using a Raspbee II, so no USB is directly attached to the GPIO. Since there was no update button when it was working, I updated the firmware manually to HYPER WORM, but after that all worked flawless. I did another test, using another raspberry but the result is the same. thanks

SuperSpe commented 3 years ago

so I manually downgrade to deCONZ_RaspBeeII_0x26660700.bin.GCF (was deCONZ_RaspBeeII_0x26690700.bin.GCF before) and now is working, what is going on?

PhilippBaumgarten commented 3 years ago

Had the same issue ("device state timeout ignored in state 2") on Raspberry 4B and a RaspBee2 device for Home-Assistant and deCONZ add-on, Since i manually disabled WiFi and Bluetooth on Raspberry, i found out that following dtoverlay fixed the issue for me:

dtoverlay=disable_bt
dtoverlay=disable_wifi
dtoverlay=miniuart-bt <- this is the fix

With "dtoverlay=miniuart-bt" i added a new device under system ("/dev/ttyS0") and when sticking to "/dev/ttyAMA0" in deCONZ add-on, it found my RaspBee2 and worked flawlessly. In addition: i setup RaspbianOS in parallel to update the RaspBee2 firmware to latest (deCONZ_RaspBeeII_0x26690700.bin.GCF )

github-actions[bot] commented 3 years ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.