I can’t get the Emulated Hue Component to pair with the Hue app. I think that I might have used the wrong python binary when I used setcap to open up port 80…
I don’t really know what I’m doing. I try to follow what I read and reflash when I screw things up too badly. (Which is often)
I entered this in the linux terminal as root
setcap “cap_net_bind_service=+ep” /usr/bin/python3.5
my config file entry is
emulated_hue:
type: google_home
host_ip: 192.168.1.245
listen_port: 80
I get the following error
17-02-20 03:07:19 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template HarmonyActivity, the state is unknown.
17-02-20 04:22:12 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 582, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out
17-02-20 07:23:14 WARNING (Thread-14) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-02-20 07:23:17 ERROR (Thread-14) [pychromecast.socket_client] Failed to connect, retrying in 5.000000s
Traceback (most recent call last):
File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 246, in initialize_connection
self.socket.connect((self.host, self.port))
File “/usr/lib/python3.4/ssl.py”, line 840, in connect
self._real_connect(addr, False)
File “/usr/lib/python3.4/ssl.py”, line 827, in _real_connect
socket.connect(self, addr)
ConnectionRefusedError: [Errno 111] Connection refused
17-02-20 07:44:33 WARNING (Thread-16) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-02-20 07:44:33 ERROR (Thread-16) [pychromecast.socket_client] Failed to connect, retrying in 5.000000s
Traceback (most recent call last):
File “/home/homeassistant/.homeassistant/deps/pychromecast/socket_client.py”, line 246, in initialize_connection
self.socket.connect((self.host, self.port))
File “/usr/lib/python3.4/ssl.py”, line 840, in connect
self._real_connect(addr, False)
File “/usr/lib/python3.4/ssl.py”, line 827, in _real_connect
socket.connect(self, addr)
ConnectionRefusedError: [Errno 111] Connection refused
17-02-20 09:04:11 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-02-20 15:08:26 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 582, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out