core: Niko Home Control : TypeError: string indices must be integers

Hi, i wanted to try and setup the new platform “Niko Home Control” but i receive the error below whan i start HA

any idea whats wrong?

2018-12-13 14:30:08 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform niko_home_control
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/niko_home_control.py", line 44, in setup_platform
    [NikoHomeControlLight(light, hub) for light in hub.list_actions()],
  File "/usr/local/lib/python3.6/site-packages/nikohomecontrol/_init_.py", line 35, in list_actions
    return [Action(action, self) for action in self.list_actions_raw()]
  File "/usr/local/lib/python3.6/site-packages/nikohomecontrol/_init_.py", line 35, in <listcomp>
    return [Action(action, self) for action in self.list_actions_raw()]
  File "/usr/local/lib/python3.6/site-packages/nikohomecontrol/_init.py", line 86, in __init_
    self._id = action['id']
TypeError: string indices must be integers

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 52 (5 by maintainers)

Most upvoted comments

All, I know there are some issues with the NHC platform. Next week I will be able to spend 3 full days on improving the functionalities.

I will provide additional documentation on setting up NHC with Hass.

In the integration that has been released, theres no active connection to NHC, which makes it kind of useless. Based upon the feedback I received over the weeks, I will be able to fix the majority of the issues by the end of next week.