Connection issues after restarting Home Assistant
See original GitHub issueDescribe the bug
Actually idk why this happened but after this error appeared none of the lights are responding anymore by Hue Entertainment Area.
Steps to Reproduce
I have no Idea? Maybe some Sort of not closing a connection properly?
Expected behavior
Logs
2021-01-22 00:54:44,322 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612715' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,363 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612717' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,404 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612719' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,445 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612721' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,487 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612723' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,529 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612725' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,550 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612726' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,613 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612729' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,655 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612731' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,676 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612732' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,738 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612735' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
2021-01-22 00:54:44,759 ERROR asyncio -- Task exception was never retrieved
future: <Task finished name='Task-2612736' coro=<EntertainmentAPI.__async_process_light_packet() done, defined at /app/emulated_hue/entertainment.py:106> exception=TypeError("'NoneType' object is not callable")>
Traceback (most recent call last):
File "/app/emulated_hue/entertainment.py", line 144, in __async_process_light_packet
await self.hass.async_call_service("light", "turn_on", svc_data)
File "/usr/local/lib/python3.8/site-packages/hass_client/__init__.py", line 204, in async_call_service
return await self.__async_send_ws(msg)
TypeError: 'NoneType' object is not callable
Hardware Info:
- Architecture (Ex: x86, ARM):
- Addon version (Ex: stable or dev): stable
- Value of “tag_commit_or_branch” if using dev:
- OS (Ex: Windows 10, Ubuntu Buster): HyperV Environment on Windows10
- Hardware (Ex: PC, Raspberry Pi 1/2/3/Zero): PC
Additional context
I closed Razer Synapse a few times for testing maybe there got something messed up with the connection and its not closed properly?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
After shutdown / reboot no longer connects to network
I've been using HA for a few years now and 3 months ago I accidentally unplugged my RPi4 running Hassio. For the life...
Read more >"Unable to connect to Home Assistant" after restart
Hi, I just restarted my Raspi 4 with Home Assistant OS and I can no longer access the Web Interface. It only shows...
Read more >Home Assistant OS doesn't reconnect after connection loss
Hi guys, my Home Assistant OS (RaspberryPi4) doesn't reconnect automatically after losing connection (wired). After a router reboot for ...
Read more >Home Assistant VM won't reconnect after Network Reset or ...
I've had an ongoing issue with Home Assistant where I have to do a full restart on the host machine after any type...
Read more >Hassio won't reconnect after restart. (It has been working the ...
Issue : After “automation → call service: homeassistant.restart” Can NOT access the dashboard ... and also my HA app, in iOS, won't connect....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into this myself couple of days ago. I’ll fix the issue in the hass-client lib within a few days. Thanks for the reminder 😉
Great! This appears to be an actual bug with
hass-client
. Logs show it getting stuck connecting to hassioWill need to implement a timeout and retry attempt during connection. @marcelveldt Can you look into adding a timeout/backoff mechanism to connections in
hass-client
?In the meantime, this is a rather harmless and low priority issue to fix as it’s resolved simply by a restart of the addon.
@DavidFFerreira Your issue seems to be unrelated to this issue. Please create a discussion/issue and be sure to include as much detail as possible.