-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Docker? #1757
Comments
Re-pairing isn't necessary. Basically you just need to transfer the zll.db file to the Docker environment. The easiest way is to create a backup file in the Phoscon App with your current setup and reload this configuration in the Phoscon App of your new Docker setup. If something doesn't work right away please don't reset anything. |
Thanks. I'm uploading the backup through the web UI but it's been stuck on the "Loading backup - This can take a moment..." for quite a few minutes already. The process is running (2% CPU, 1% RAM) What's the proper way to interrupt the process to try again? |
Hmm that's odd, I'll forward it to the developer of the backup page. |
I have no idea, I haven't tried to use it yet, I don't want to pair stuff manually ever again 😅 |
I mean is your Zigbee network working, are devices connected? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Oh my bad just seeing the issue is about import (on the new machine I guess) not export. Have you configured the serial interface as described in the installation instructions? |
This comment has been minimized.
This comment has been minimized.
I don't know about DietPi but the serial port should not be used for any system logging, as Raspbian does it per default. Does DietPi even provide the /dev/ttyAMA0 interface? |
As a side note on Raspbian when the serial interface is configured properly |
This comment has been minimized.
This comment has been minimized.
Not if the interface is still shared with the login shell, but I don't know if it is the case here. On Raspbian it needs to be explicitly disabled. What is the output of |
This comment has been minimized.
This comment has been minimized.
That's interesting :) You need to place your user into the tty group and give the
Reboot afterwards. Still if the device is shared with the login shell it won't work. |
This comment has been minimized.
This comment has been minimized.
How do you start the container? Docker doesn't require to be run as root.
I guess so, following looks interesting: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It seems that the serial communication doesn't work. My guess is the above mentioned issue.
Perhaps try to use |
This comment has been minimized.
This comment has been minimized.
https://linux.die.net/man/8/hciattach
I think it will work on DietPi but the setup requires extra steps which need to be figured out. |
This comment has been minimized.
This comment has been minimized.
Bluetooth can be enabled, but it needs to be configured to use another serial interface. |
This comment has been minimized.
This comment has been minimized.
Note you need to run |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Oh dammit, I figured out I had a typo in the volume... It should have been:
Now it shows the firmware correctly, but still I can't restore the backup with that 503 error I reported above... |
Don't ask me how, but the configuration now appeared in the web app... 🤷♂️ |
I restarted Docker and I lost all the configuration 🙄 I don't yet know if it's my fault, but the backup import is now again not working properly. edit: I don't think it's my fault, because the |
How do you see all configuration is lost, are there no devices shown anymore? Are you sure that the volume configuration is correct? deconz:
image: marthoc/deconz
container_name: deconz
restart: unless-stopped
network_mode: host
environment:
- DECONZ_WEB_PORT=8080
- TZ=Europe/Budapest
- DECONZ_UPNP=0
devices:
- /dev/ttyAMA0
volumes:
- ./services/deconz/data/config:/root/.local/share/dresden-elektronic/deCONZ Shouldn't that be |
No, the volumes directive is correct, in fact I see files being written in the folder (I use the same format for all my containers). I haven't restarted again, once I'll do so I'll see if it gets reset again. Anyways, I'd keep this issue focused on the backup import feature which doesn't seem to work reliably. Is that okay to you? |
I restarted the container and the config didn't get lost. So the only issue is the import backup feature. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
My RPi 4 (4GB) is finally arrived and I'm getting ready to migrate my old Home Assistant + DeCONZ setup to it.
I want to use Docker, since right now everything is installed on the host system and it's a hot mess.
I was wondering what's the procedure to migrate my DeCONZ config to my new RPI, considering I'm going to use Docker this time? I would really like not to have to re-pair all my devices again.
The text was updated successfully, but these errors were encountered: