I’m new to HASS and while being able to control my Hue lights i keep having errors :
17-01-04 11:56:30 homeassistant.core: Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 233, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 386, in _update_entity_states
yield from update_coro
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 216, in async_update_ha_state
yield from self.hass.loop.run_in_executor(None, self.update)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py”, line 397, in update
self.update_lights(no_throttle=True)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/init.py”, line 296, in wrapper
result = method(*args, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/init.py”, line 296, in wrapper
result = method(*args, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py”, line 207, in update_lights
lightgroups[lightgroup_id].schedule_update_ha_state()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 290, in schedule_update_ha_state
self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: ‘NoneType’ object has no attribute ‘add_job’
Typically when you see this type of error, you have mis-spelled something when referencing the object, or you are using an attribute path that doesn’t exist in the object. Is this failing in an automation or are these just error messages you see in the log and are wondering about?
I stripped it down to the minimum possible (i think ?).
I do not have any automation set yet as i do not want to invest time in something who produces errors for no apparent reason ?
Besides having errors in logs i also see a lag between the button activation (on webUI) and the black notification (bottom left).
Most are pretty good about monitoring the site. There is a bug reporting process on github I think. But I haven’t done that yet. One other thing you could try would be to post a link to this discussion on the developers group.
The only other thing I can think of is to rename the phue.conf file and comment default_view (if you’re using it) so you can see the configurator and try to create a new phue.conf just in case something got hosed there.