deconz-community / deconz-docker

MIT License
375 stars 34 forks source link

No devices detected by update script #239

Closed filip-van-hoeckel closed 4 months ago

filip-van-hoeckel commented 8 months ago

When running the update script on an Rpi3/Raspbee there are no devices detected - even when including it.

docker run -it --rm --entrypoint "/firmware-update.sh" --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -v /sys:/sys deconzcommunity/deconz

When force feeding it the device and hard pointing it to the online firmware it even claims it cannot find the firmware, neither local nor online. Where would I start troubleshooting this?

phdelodder commented 8 months ago

Can you share the output?

filip-van-hoeckel commented 8 months ago

Terminal-–-Home-Assistant this me forcing device and firmware; if left blank it will not find anything.

phdelodder commented 8 months ago

I have just tried to reproduce it on my environments and I do get a list of devices. So either the device isn't attached to docker or it's not recognized. For the "available firmware", it checks the /tmp folder if any is present.

filip-van-hoeckel commented 8 months ago

The device _is connected otherwise I couldn't use it when not trying to perform the update. Should deconz be off or on when executing the commands?

phdelodder commented 8 months ago

I suggest deconz to be off and only running the docker with firmware.

filip-van-hoeckel commented 8 months ago

Deconz was off in my demo.

senilio commented 8 months ago

I don't think any of us owns a Raspbee and therefore it's hard to to know why the script doesn't detect the device.

For now I think it would be best to try to build GCFFlasher4 on your docker host, and try to flash from there. If you can wait a bit, I will attempt to build the binaries for RPi

senilio commented 8 months ago

Download the flasher for your arch here: https://github.com/dresden-elektronik/gcfflasher/releases/tag/v4.3.0-beta Stop deCONZ and try flashing on your docker host.

filip-van-hoeckel commented 8 months ago

I appreciate the effort, but what arch do I select for a Rpi?

senilio commented 8 months ago

arm64 for 64 bit raspberry pi OS armhf for 32 bit raspberry pi OS

This flasher binary have built in support for Raspbee, which will hopefully solve your issue

filip-van-hoeckel commented 8 months ago

OK, thanks, will try. This would mean powering down HassIO, buying a new card, installing Raspbian, getting this binary on it, then flashing. Correct? (I do wonder why updating firmware thru the UI was cancelled, considering the amount of work and risk involved.)

senilio commented 8 months ago

Something like that. By using the Raspbee, a lot of flexibility is sacrificed. Both in terms of firmware upgrades and ability to mitigate interference.

filip-van-hoeckel commented 8 months ago

Well, updating used to be two clicks (backup, update). Now it's about a weekend's work. I'm not sure this feels like progress.

senilio commented 8 months ago

I agree. Feel free to bring this up in the Phoscon forum and/or with the developers of Phoscon. Note that the goal of this docker repo is to run deCONZ as-is.

filip-van-hoeckel commented 4 months ago

Sold the Raspbee and uninstalled Phoscon. Bought a HA zigbee stick instead. HUGE difference. Will never look back.