eufy_security icon indicating copy to clipboard operation
eufy_security copied to clipboard

Add configuration option to adjust host and port for websocket server

Open hackeresq opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. I am running the bropat/eufy-security-ws docker container. The docker network IP addresses are not static and are prone to change when the container or host are rebooted. When the IP address changes, there is currently no way to update the host IP config (other than manually adjusting the core.config_entities file).

Describe the solution you'd like There should be an option in the integration config to adjust the host IP.

Describe alternatives you've considered Manually update the host IP config in the core.config_entities file. This is not user friendly or obvious to most users.

Additional context Can add this option to the top of the existing configuration options:

image

hackeresq avatar Jan 26 '23 17:01 hackeresq

Why don't you set a static ip or name to container?

fuatakgun avatar Jan 26 '23 17:01 fuatakgun

Fair. If we can't add a config option on the front end, maybe a note in the docs to use a static IP?

hackeresq avatar Jan 26 '23 18:01 hackeresq

This is actually much bigger problem exists in home assistant world, i just want to unblock you but i am not against this request.

Until this is done, at least you have a solution in your hands, right?

fuatakgun avatar Jan 26 '23 18:01 fuatakgun

One more thing, why don't you use host.docker.internal if all containers are running on the same machine, this should work for you given that port 3000 is accessible over host system

fuatakgun avatar Jan 26 '23 18:01 fuatakgun

Still a docker newbie 😛

But that didn't work unfortunately. The integration wasn't able to connect to the websocket container.

image

hackeresq avatar Jan 27 '23 01:01 hackeresq