Skip to content

Found an unsupported model 'yeelink.light.lamp4' for class 'Yeelight' #2012

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

Open
DITSHOOT opened this issue Feb 22, 2025 · 1 comment
Open

Comments

@DITSHOOT
Copy link

Before submitting a new request, use the search to see if there is an existing issue for the device.

If your device is rather new, it is likely supported already by the genericmiot integration. This is currently available only on the git version (until version 0.6.0 is released), so please give it a try before opening a new issue.

Device information:

Use miiocli device --ip <ip address> --token <token> info.

  • Model: yeelink.light.lamp4
  • Hardware version: esp32
  • Firmware version: 2.1.7_0020

Additional context
If you know already about potential commands or any other useful information to add support for the device, please add that information here.

homeassistant.config_entries.OperationNotAllowed: The config entry 'yeelink.light.lamp4' (xiaomi_miio) with entry_id '01JMQB577S43C0AQ5BE2JWX7FE' cannot be unloaded because it is in the non recoverable state ConfigEntryState.FAILED_UNLOAD
2025-02-22 18:29:02.208 WARNING (SyncWorker_0) [miio.device] Found an unsupported model 'yeelink.light.lamp4' for class 'PhilipsEyecare'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2025-02-22 18:29:02.215 WARNING (SyncWorker_2) [miio.device] Found an unsupported model 'yeelink.light.lamp4' for class 'PhilipsEyecare'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2025-02-22 18:29:02.224 ERROR (MainThread) [homeassistant.components.light] xiaomi_miio: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 738, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py", line 804, in async_update
    self._brightness = ceil((255 / 100.0) * state.ambient_brightness)
                            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can't multiply sequence by non-int of type 'float'
2025-02-22 18:29:02.227 ERROR (MainThread) [homeassistant.components.light] xiaomi_miio: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 738, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py", line 661, in async_update
    self._brightness = ceil((255 / 100.0) * state.brightness)
                            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
TypeError: can't multiply sequence by non-int of type 'float'
2025-02-22 18:29:27.987 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Lampe de bureau for xiaomi_miio
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 849, in async_unload
    result = await component.async_unload_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 498, in async_unload_entry
    hass.data[DOMAIN].pop(config_entry.entry_id)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '01JMQB95YJZ46QA4TGFA4JCY33'
@lgbth808
Copy link

O que informar no issue?
• Modelo: dreame.vacuum.r2211o
• Erro recebido: “Found an unsupported model ‘dreame.vacuum.r2211o’ for class ‘DreameVacuum’”
• Versão do firmware: 4.3.9_1406
• O fato de que o aspirador funciona com comandos básicos, mas não tem suporte oficial.

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

No branches or pull requests

2 participants