MadMonkey87 / HomeyCONZ

deCONZ app for Athom Homey smart home controller
3 stars 14 forks source link

Manual configuration is automatically replaced (by discovery?) #34

Closed rdvanbuuren closed 3 years ago

rdvanbuuren commented 3 years ago

Describe the bug: Homey deCONZ app suddenly alters ip address. After that I can't connect to any of my devices. I'm runnig deCONZ in a docker container and what I see is that, after some time, the ip address gets altered to the internal one of the docker container.

How to reproduce: Steps to reproduce the behaviour:

  1. Install deCONZ into Docker https://hub.docker.com/r/marthoc/deconz
  2. Connect to deCONZ with Homey app
  3. Enter ip address and ports. In my case this is 192.168.0.x or raspberrypi.local
  4. Test connection validity and save
  5. After a while, open Homey deCONZ app again and go to configuration
  6. Ip address is altered to internal Docker ip (172.17.0.3 in my case)

How it should work: Just keep the manual ip address / domain name that I've entered in the configuration.

Additional context: It looks like this has something to do with the autodiscover function?

richie80 commented 3 years ago

I have the same problem. My deconz is on a raspberry pi with home-assistant and deconz as an add on.

MadMonkey87 commented 3 years ago

I think I know what is going on here. The app now features an "auto-repair connection" feature which will automatically attempt to repair the connection if it fails. This is targeted at dynamic ip's, for example your router might assign a different ip address to your deconz instance. I assume you have not setup your docker image with --net=host? This by default prevents that the discovery works correct! As already mentioned in the homey community this is not something that can be fixed in either the docker image or the app, by not setting this param you intentionally break the autodiscovery.

To solve this there are two possible options:

richie80 commented 3 years ago

Unfortunately I don't see this option in Homey. There are only two possibilities: automatic config and manual config.

MadMonkey87 commented 3 years ago

You are at the wrong place: Screenshot_20201229-205831_Homey

richie80 commented 3 years ago

in only see this, there is no top menu

8335DC9C-F92D-4D17-A4D5-D9EE5E612D1B