Digital Loggers component with new "pro" switch

Is anyone using the digitalloggers component with the new Pro switch model? I get this in my log:

2018-05-23 10:26:30 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform digitalloggers
Traceback (most recent call last):
  File "/home/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/lib/python3.6/site-packages/homeassistant/components/switch/digitalloggers.py", line 69, in setup_platform
    for outlet in power_switch[0:]
  File "/home/homeassistant/lib/python3.6/site-packages/dlipower/dlipower.py", line 298, in __getitem__
    status = self.statuslist()[index.start:index.stop]
TypeError: 'NoneType' object is not subscriptable

I’m guessing something in the API must be different enough that the dlipower library doesn’t support it.

1 Like

I’ve logged an issue against the dlipower library. This doesn’t seem to be a problem with HASS.

Thank you for posting this. It’s the first hit on google and saved me hours of troubleshooting.

Fix is to use the Digital Loggers web interface for the power strip. Go to Setup, and enable legacy plain text login: