"Error doing job: Task exception was never retrieved"

Hello everyone, I don’t understand where this error comes from, could someone please help me.

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:96
First occurred: 15:55:55 (4 occurrences)
Last logged: 16:01:26

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/asyncio_dgram/aio.py", line 155, in send
    await super()._send(data)
  File "/usr/local/lib/python3.9/site-packages/asyncio_dgram/aio.py", line 109, in _send
    _ = self.exception
  File "/usr/local/lib/python3.9/site-packages/asyncio_dgram/aio.py", line 62, in exception
    raise exc
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1019, in _read_ready
    data, addr = self._sock.recvfrom(self.max_size)
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 273, in _async_state_change_dispatcher
    hass.async_run_hass_job(job, event)
  File "/usr/src/homeassistant/homeassistant/core.py", line 526, in async_run_hass_job
    cast(Callable[..., _R], hassjob.target)(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1085, in _refresh
    self.hass.async_run_hass_job(self._job, event, updates)
  File "/usr/src/homeassistant/homeassistant/core.py", line 526, in async_run_hass_job
    cast(Callable[..., _R], hassjob.target)(*args)
  File "/usr/src/homeassistant/homeassistant/components/template/template_entity.py", line 362, in _handle_results
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in _async_write_ha_state
    self.hass.states.async_set(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1357, in async_set
    state = State(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1045, in __init__
    raise InvalidStateError(

Please help… :thinking:

I have the exact same error all of a sudden. Very annoying.

Do you have the WIZ light bulb extension installed? I have it installed through HACKS and when I reloaded it, it seems to have helped solve the issue.