maxbec / hassio-diyHue

Fully configurable diyHue add-on for home-assistant.
30 stars 17 forks source link

Need to pass Deconz Port and IP #1

Closed clutwo closed 3 years ago

clutwo commented 3 years ago

Thanks for the addon! Unfortunately I cannot get it to work with my setup since I need to be able to pass in DECONZ IP address as well as the port. Maybe it is already possible and I have not seen it?

maxbec commented 3 years ago

Hey @clutwo ,

you can enable deconz and enter the deconz port in the config.json. In hassio it is under /config/diyhue/config.json.

        "deconz": {
            "enabled": false,
            "lights": {},
            "port": 8080,
            "sensors": {}
        },
clutwo commented 3 years ago

Thanks @MaxBec , will do!

maxbec commented 3 years ago

Looking forward to hear from you if it is working!

clutwo commented 3 years ago

Sadly, it is not! I'm not able to enter the IP address, it always says 127.0.0.1 in the logs. Now, I'm using deconz as a HassIO addon as well, but I'm guessing that 127.0.0.1 refers to the docker container's ip address, which isnt't the same as the deconz ip address.

I tried entering the IP into deconz config as "ip" and "ipaddress". In deconz, I enabled "Authenticate app", so I can rule this out as an error source. I tried the deconz api as well as websocket port, both don't seem to work (probably because of the IP address).

Log just says "2020-12-06 12:54:38,248 - protocols.deconz.deconz - INFO - registration fail, is the link button pressed?" .

maxbec commented 3 years ago

Please test the newest version and enter deconz ip in config before starting.

clutwo commented 3 years ago

Thank you, that worked! I still needed to enter the port number manually into the config file (as that file assumes 8080), so that would probably be another good convenience option for the addon configuration file in the future.

maxbec commented 3 years ago

Will try to implement that. Thank you for the input!