Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't get local mode working for yeelink.light.mono5 #1388

Open
Programmierus opened this issue Nov 10, 2023 · 3 comments
Open

Can't get local mode working for yeelink.light.mono5 #1388

Programmierus opened this issue Nov 10, 2023 · 3 comments

Comments

@Programmierus
Copy link

Programmierus commented Nov 10, 2023

Device model / 设备型号

yeelink.light.mono5

Component version / 插件版本

0.7.13

HA core version / HA版本

2023.10.3

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

Struggling to get this light to work on local mode. Doesn't matter what I try and configure - properties are unavailable. Works fine through the cloud though. Any idea? Thanks!

Entity attributes / 实体属性

Irrelevant

Home Assistant Logs / 系统日志

Irrelevant

@lihk11
Copy link

lihk11 commented Nov 13, 2023

same for me. It always takes longer than 10 seconds.

@al-one
Copy link
Owner

al-one commented Nov 16, 2023

Any logs ?

@Programmierus
Copy link
Author

Logs were showing this:

2024-12-09 00:30:06.408 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.yeelink.light.mono5] Got MiioException while fetching the state: Unable to recover failed command, mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 2}}, max_properties: 2/2

Similar to this I added to miio2miot_specs.py:

    'yeelink.light.mono5': {
        'miio_specs': {
            'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},
            'prop.2.2': {'prop': 'bright', 'setter': True},
        },
    },

And it works :)

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

No branches or pull requests

3 participants