Tapo Bulb L530 set to cool white makes it unavailable
See original GitHub issueVersion of the custom_component
v1.0
Describe the bug
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.
Debug log
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!
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to reset the Tapo smart bulb
1. Turn the light switch controlling the smart bulb to the on position first.
Read more >Bulb Is not working properly - Smart Home Community
Just bought and installed a Tapo L530 color change bulb. I can control the bulb with the app, but when I select "turn...
Read more >How to Setup Tapo Smart Wi-Fi Light Bulb L510E L530E
Learn how to setup Tapo Smart Wi-Fi Light Bulb for the holiday season to brighten your house.Join our Facebook Group for more ...
Read more >Tapo Smart Wi-Fi Light Bulb Multicolor L530B review - YouTube
Tapo Smart Wi-Fi Light Bulb Multicolor L530B hands on reviewSee more - https://wp.me/p2uV4R-hjDGet featured - email ...
Read more >Tapo L530E Smart, Multicolor Wi-Fi Light Bulb Review
We replaced the conventional LED bulbs in two of our lamps with Tapo L530 multicolour, smart Wi-Fi light bulbs. These 60-watt equivalent ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes it works!
Thank you 😃
ps: do you have any idea for #23 ?
Try to update the integration from hacs, the fix should work 😃