Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Adding uvfive.s_lamp.slmap2 #2

Open
AlexeyTorch opened this issue Jan 25, 2023 · 0 comments
Open

Error Adding uvfive.s_lamp.slmap2 #2

AlexeyTorch opened this issue Jan 25, 2023 · 0 comments

Comments

@AlexeyTorch
Copy link

AlexeyTorch commented Jan 25, 2023

Home Assistant 2023.1.7
Supervisor 2022.12.1
Frontend 20230110.0 - latest

Added device.
IP and token are correct.
in the setting --> Devises and Sensors section, the card appeared, but there is nothing in the Devises, enities tab.
In the log:

2023-01-25 12:26:46.107 DEBUG (MainThread) [custom_components.uvfive.switch] Got the Five Sterilization Lamp new state: [{'did': '242446474', 'siid': 2, 'piid': 1, 'code': 0, 'value': 0}, {'did': '242446474', 'siid': 2, 'piid': 2, 'code': 0, 'value': False}, {'did': '242446474', 'siid': 2, 'piid': 3, 'code': 0, 'value': 1}, {'did': '242446474', 'siid': 2, 'piid': 6, 'code': 0, 'value': 30}, {'did': '242446474', 'siid': 2, 'piid': 7, 'code': 0, 'value': 0}, {'did': '242446474', 'siid': 4, 'piid': 1, 'code': 0, 'value': False}, {'did': '242446474', 'siid': 5, 'piid': 1, 'code': -4004}]
2023-01-25 12:26:46.108 ERROR (MainThread) [homeassistant.components.switch] uvfive: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 503, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 729, in async_device_update
    await task
  File "/config/custom_components/uvfive/switch.py", line 354, in async_update
    self._state_attrs[ATTR_SLAMP_DISABLE_RADAR] = state[6]['value']
KeyError: 'value'

Screenshot 2023-01-25 123501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant