TP Link dimmers :: HS220 :: HA 0.108.1

Hi!

Since last update from 0.108.0 to 0.108.1 I lost my two TPLink dimmers HS220.
My other switch HS200 is still working fine.

I tried to restart Home Assistant but still no connection with the dimmers.

Am I the only one in this situation ?

Thanks in advance,

Éric Senterre

Dimmers are indeed broken. Base on the changelog, this could be related to the tplink speedup changes. Revering to 0.108.0 fixes the issue.

File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 254, in update
    self._light_state = self._get_light_state_retry()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 314, in _get_light_state_retry
    return self._get_light_state()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 360, in _get_light_state
    return self._light_state_from_params(self.smartbulb.get_light_state())
AttributeError: 'SmartPlug' object has no attribute 'get_light_state'
2020-04-09 15:09:31 ERROR (MainThread) [homeassistant.components.light] tplink: Error on device update!
Traceback (most recent call last):
  File "/usr/lib64/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/lib64/python3.8/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/lib64/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 254, in update
    self._light_state = self._get_light_state_retry()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 314, in _get_light_state_retry
    return self._get_light_state()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 360, in _get_light_state
    return self._light_state_from_params(self.smartbulb.get_light_state())
AttributeError: 'SmartPlug' object has no attribute 'get_light_state'
2020-04-09 15:09:31 ERROR (MainThread) [homeassistant.components.light] tplink: Error on device update!
Traceback (most recent call last):
  File "/usr/lib64/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/lib64/python3.8/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/lib64/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 254, in update
    self._light_state = self._get_light_state_retry()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 314, in _get_light_state_retry
    return self._get_light_state()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 360, in _get_light_state
    return self._light_state_from_params(self.smartbulb.get_light_state())
AttributeError: 'SmartPlug' object has no attribute 'get_light_state'
2020-04-09 15:09:32 ERROR (MainThread) [homeassistant.components.light] tplink: Error on device update!
Traceback (most recent call last):
  File "/usr/lib64/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/lib64/python3.8/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/lib64/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 254, in update
    self._light_state = self._get_light_state_retry()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 314, in _get_light_state_retry
    return self._get_light_state()
  File "/usr/lib64/python3.8/site-packages/homeassistant/components/tplink/light.py", line 360, in _get_light_state
    return self._light_state_from_params(self.smartbulb.get_light_state())
AttributeError: 'SmartPlug' object has no attribute 'get_light_state'
2020-04-09 15:09:32 ERROR (MainThread) [homeassistant.components.light] tplink: Error on device update!
Traceback (most recent call last):

Issue already submitted.