Ikea Tradfri, groups showing but not lights

Hi, I had my Tradfri lights in home assistant for a while but after upgrading to 0.67.1 I seems to have ‘lost’ my lights, ie in the ‘States’ viewer I can see my Tradlos light group ‘light.stue_lys’ but the bulbs themself are not there.

So, digging through my log file I find the Ikea gateway reponds with something that seems ok to me, I find all my bulbs with entries like:

018-04-19 10:32:41 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"TRADFRI bulb E27 CWS opal 600lm","9002":1524123694,"9020":1524123703,"9054":0,"9003":65552,"5750":2,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI bulb E27 CWS opal 600lm","2":"","6":1,"3":"1.3.002"},"3311":[{"5850":1,"5851":254,"5707":5129,"5708":40781,"5706":"f2eccf","5709":29713,"5710":26431,"9003":0}]}

so I’m guessing the communication with the gateway is ok. But what could possibly result in all the bulbs being excluded from the state list?

-f

Hmm, i keep getting errors in log:

2018-04-19 10:32:43 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"TRADFRI bulb GU10 W 400lm > 3","9002":1512479917,"9020":1524081303,"9054":0,"9003":65542,"5750":2,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI bulb GU10 W 400lm","2":"","6":1,"3":"1.2.214"},"3311":[{"5850":0,"5851":170,"9003":0}]}
2018-04-19 10:32:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 258, in _async_add_entity
    await entity.async_added_to_hass()
  File "/usr/src/app/homeassistant/components/sensor/tradfri.py", line 52, in async_added_to_hass
    self._async_start_observe()
  File "/usr/src/app/homeassistant/components/sensor/tradfri.py", line 92, in _async_start_observe
    from pytradfri.error import PytradfriError
ImportError: cannot import name 'PytradfriError'

Is this a mismatch between the Tradfri component and the pytradfri library?

-f

And answering my own thread, removed 'config/deps/lib/python3.6/site-packages/pytradfri*", reloaded Home Assistant and the bulbs showed up again.

-f

2 Likes