Hi!
New to home automation and I was thinking about buying a Philips Hue light for my bedroom to begin with and I am going to invest in a “Conbee II” zigbee-stick from Dresden Electronics to control it (and other zigbee devices) with.
Instead of buying and using a RPi I was thinking about using my NAS (Asustor AS5004T) and run “docker-ce” and “portainer”.
My current steps:
- Install “portainer” which also will download “docker-ce” if not already installed
(did not enable port forwarding) - Opened a private browsing window (got a cache issue with “No response” otherwise) and browsed to:
my_nas_ip:9000 - Created default user
- Connected to my “Local” Docker environment / Clicked “Local” (in the portainer setup wizard)
- Selected “Endpoints” > “local” and under “Public IP” entered “my_nas_ip” > “Update endpoint”
- “Home” > “local” > “Images” > under “Image” entered “homeassistant/home-assistant” w. “Registry” set to “DockerHub” > “Pull the image”
(took a while to pull) - “Containers” > “Add container” >
under “Name” entered “home-assistant”
under “Image” entered “home-assistant” and selected the image from the list
“Publish all exposed ports” = TOGGLE
“Deploy the container” - Clicked the “console”-icon next to the container and then “Connect” (using “root”)
- When connected to the container;
“python3 -m pip install homeassistant”
Relevant output:
Installing collected packages: homeassistant
Successfully installed homeassistant-0.92.2
hass --open-ui
Relevant output:
[homeassistant.components.device_tracker] Unable to load /root/.homeassistant/known_devices.yaml: Config file not found: /root/.homeassistant/known_devices.yaml
[homeassistant.components.http] Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address (‘0.0.0.0’, 8123): address already in use
[homeassistant.components.discovery] Unknown service discovered: home_assistant {‘host’: ‘my_container_ip’, ‘port’: 8123, ‘hostname’: ‘Home._home-assistant._tcp.local.’, ‘properties’: {‘version’: ‘0.92.2’, ‘base_url’: my_container_ip:8123’, ‘requires_api_password’: True}}
///
Unable to access Home Assistant through my_nas_ip:8123
Disconnected from the shell
Connected again >
“top” > “hass” is running
“netstat -plant” > python is using port 8123
cd /config/
cat configuration.yaml
apt-get update
apt-get install nano
uncommented “http”
added:
server_port: 8124
Still get the same error:
2019-05-09 18:31:29 ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address (‘0.0.0.0’, 8123): address already in use
2019-05-09 18:31:42 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: home_assistant {‘host’: ‘my_container_ip’, ‘port’: 8123, ‘hostname’: ‘Home._home-assistant._tcp.local.’, ‘properties’: {‘version’: ‘0.92.2’, ‘base_url’: ‘my_container_ip:8123’, ‘requires_api_password’: True}}
Restarted the container, same issue
Am I missing something?
python seems to have been bound to 8123 which hass is trying to use and therefore I get an empty response when trying to connect to my_nas_ip:8123
Thanks for your time / TheSwede86