Closed sineverba closed 4 years ago
Hey there @rytilahti, @zewelor, mind taking a look at this issue as its been labeled with a integration (yeelight
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
Also experiencing this problem, automatic or manual, no error logs as I've not added the lights previously.
Hi I don't know if this is a new change but it could help others with the same problem. It got it working for me.
yeelight: devices: 192.168.x.xxx: name: My Light model: color1
Yes. I got re-working re-adding via IP.
But before 0.110 they worked.
See my previous post and workaround.
Il ven 29 mag 2020, 11:22 BrenTeck notifications@github.com ha scritto:
Hi I don't know if this is a new change but it could help others with the same problem. It got it working for me.
- Go to the Yeelight app.
- Go to menu
- Go to LAN control and make are each device has LAN Control allowed.
- Go to HA configuration.yaml and use code
yeelight
yeelight: devices: 192.168.x.xxx: name: My Light model: color1
end yeelight
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/35862#issuecomment-635870814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDIWWREMQGW7LU2I4CFXDRT55FRANCNFSM4NGFWIJA .
Got this issue as well. Model is ceiling1
if that matters.
Is it really 0.110 version ? Latest stable ? If yes there was no yeelight specific changes afaik. There are some changes in 0.111 but its in dev now.
Is it really 0.110 version ? Latest stable ? If yes there was no yeelight specific changes afaik.
Yes.
But also: Before switching to 1.110 I updated the firmware on the three yeelight devices I have. That might have something to do with it. What about the others?
It is really 0.110.x version. And not, I did not update the Yeelight firmware, before or after HA update.
Discovery from within the yeelight library does still work:
<Enter HA Docker container>
# python
>>> import yeelight
>>> yeelight.discover_bulbs()
[{'ip': '192.168.178.29', 'port': 55443, 'capabilities': {'id': '0x0000000004a1____', 'model': 'ceiling1', 'fw_ver': '192', 'support': 'get_prop set_default set_power toggle set_bright set_scene cron_add cron_get cron_del start_cf stop_cf set_ct_abx set_name set_adjust adjust_bright adjust_ct', 'power': 'on', 'bright': '2', 'color_mode': '2', 'ct': '2767', 'rgb': '0', 'hue': '0', 'sat': '0', 'name': ''}}]
After a bit of research this problem might very well be caused by the firmware update. As of now, the lights are discovered via MDNS. However, the official supported method is SSDP. Support for MDNS might supposedly be removed by firmware updates and is generally not supported by newer HomeKit-compatible devices.
Some references: #32493, #26574 and #35448
My yeelights are outdated from... 1 year? I.e. in my smartphone I did not have the APP... Bought them, setup LAN control 2years ago and "forgot it".
So, I don't think issues is firmware update. I have them requesting update.
So I started a second instance of HA core in the previously known good version 1.109.6. My light is not getting discovered either. Furthermore: I ran some custom MDNS discovery tool on my network, that was also not able to discover the light. Other MDNS-capable devices were getting detected. Therefore I'm still leaning towards the firmware upgrade in my case.
It might be possible, that my problem is different to OPs. @sineverba are you (1) able to test the discovery with HA core 1.109.6.? And (2) could you test discovery with SSDP as I described in my previous post?
The mdns functionality got removed on newer firemwares of homekit-supporting(?) devices at some point by yeelight due for maintenance reasons, so that would explain why you are not seeing mdns responses. There is an issue on github somewhere discussing the details what needs to be done to fix the issue for good.
@cybe I tried with a docker container with 0.109.6 (followed your instructions) and found 0 bulbs from python ( []
)
@cybe I tried with a docker container with 0.109.6 (followed your instructions) and found 0 bulbs from python (
[]
)
You might misunderstood me: I was aiming to test two separate things to narrow down the issue:
--net=host
for SSDP to work. I think it is also necessary for MDNS.Oh, you are right. A docker container with 0.109.6 and net=host can find (from python library) the yeelights, but not the frontend.
I cannot revert my installation to 0.109.6 'cause it is the only one I have at the moment, in "production" in my house.
But I can assure that Yeelights worked on version < 0.110.0.
I cannot revert my installation to 0.109.6 'cause it is the only one I have at the moment, in "production" in my house.
But I can assure that Yeelights worked on version < 0.110.0.
Same for me on both ;)
Could you print the output of yeelight.discover_bulbs()
here? You may want to obfuscate the id
. I'm particularly interested in the firmware version.
Yes...
[{
'ip': '192.168.1.122',
'port': 55443,
'capabilities': {
'id': '',
'model': 'ct_bulb',
'fw_ver': '16',
'support': 'get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_adjust adjust_bright adjust_ct set_music set_name',
'power': 'off',
'bright': '100',
'color_mode': '2',
'ct': '4584',
'rgb': '0',
'hue': '0',
'sat': '0',
'name': ''
}
}, {
'ip': '192.168.1.120',
'port': 55443,
'capabilities': {
'id': '',
'model': 'color',
'fw_ver': '70',
'support': 'get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name',
'power': 'off',
'bright': '100',
'color_mode': '2',
'ct': '4098',
'rgb': '16711680',
'hue': '359',
'sat': '100',
'name': ''
}
}]
Hm, no idea in your case.
Another issue... Now with 0.111.1
Cannot determine device type for 192.168.1.122, Ingresso. Falling back to white only
@sineverba It should be fixed via https://github.com/home-assistant/core/pull/36658 . In meantime you can try to set model: color1 . I hope fix will be in 0.111.2, then you can remove model.
The problem
Upgraded from 0.109.6 to 0.110.0. Yeelights are not discovered anymore. In Frontend, yeelights are not found (yellow line). They worked also on 0.109.6 (and previous)
Environment
Problem-relevant
configuration.yaml
configuration.yml
Traceback/Error logs
Additional information
Workaround
In
configuration.yml