Tapo Bulb L530 set to cool white makes it unavailable. When the slider is set to the coolest setting (153), the bulb becomes unavailable. Sometimes it will be back after a few minutes or after a restart.
2021-04-19 12:10:11 ERROR (MainThread) [custom_components.tapo] Unexpected exception from <bound method DataUpdateCoordinator.async_refresh of <custom_components.tapo.TapoUpdateCoordinator object at 0x7f8a6ba7f0>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 104, in _handle_timer_finish
await task
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 161, in async_refresh
await self._async_refresh(log_failures=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 235, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 295, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 310, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 334, in _async_write_ha_state
sstate = self.state
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 704, in state
return STATE_ON if self.is_on else STATE_OFF
File "/config/custom_components/tapo/light.py", line 47, in is_on
return self._tapo_coordinator.data.device_on
AttributeError: 'NoneType' object has no attribute 'device_on'
2021-04-19 12:10:30 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall light.turn_on (c:7f0fd406fc21bf4e5461af02bc809402): entity_id=['light.tapo_bulb_l530'], params=color_temp=153>
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 118, in set_color_temperature
return await self.set_device_info(LightParams(color_temperature=color_temperature))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 106, in _set_device_info
self.__validate_response(decrypted_inner_response)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 228, in __validate_response
raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1008
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1496, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 206, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 649, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 692, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 322, in async_handle_light_on_service
await light.async_turn_on(**params)
File "/config/custom_components/tapo/light.py", line 94, in async_turn_on
await self._change_color_temp(color_temp)
File "/config/custom_components/tapo/light.py", line 115, in _change_color_temp
await self._execute_with_fallback(
File "/config/custom_components/tapo/tapo_entity.py", line 34, in _execute_with_fallback
return await self._execute_with_fallback(function, False)
File "/config/custom_components/tapo/tapo_entity.py", line 34, in _execute_with_fallback
return await self._execute_with_fallback(function, False)
File "/config/custom_components/tapo/tapo_entity.py", line 34, in _execute_with_fallback
return await self._execute_with_fallback(function, False)
[Previous line repeated 17 more times]
File "/config/custom_components/tapo/tapo_entity.py", line 33, in _execute_with_fallback
await self.coordinator.api.login()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 69, in login
await self._handshake()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 146, in _handshake
self.tp_link_cipher = self.encryption.decode_handshake_key(resp_dict['result']['key'], self.key_pair)
File "/usr/local/lib/python3.8/site-packages/plugp100/core/encryption.py", line 40, in decode_handshake_key
raise ValueError("Decryption failed!")
ValueError: Decryption failed!