I’d like to automate turning off lights except when Chromecast is playing something.
Problem is, even when I turn off the Chromecast completely (it’s powered by the tv and I turn that off), HASS still thinks it’s playing, so the lights stay on.
I tested this but unfortunately HASS still thinks Chromecast is on.
I’d say, when HASS notices this:
16-10-01 16:00:15 pychromecast.socket_client: Failed to connect, retrying in 5.000000s
Traceback (most recent call last):
File "/home/hass/deps/pychromecast/socket_client.py", line 233, 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)
OSError: [Errno 113] No route to host
It should put the state of the Chromecast in HASS on OFF.
I have seen the same behavior. When HASS loses connection to the Chromecast, it just stays in whatever state it was previously. Would be nice if it switched it’s state to Off when it lost connection.
Same here - I turn my TVs off which then kills the Chromecast, Home Assistant thinks the Chromecast is still online/playing and doesn’t time-out or update the status until I restart Home Assistant.