-
Notifications
You must be signed in to change notification settings - Fork 28
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
Moonlight detection doesn't work for ceiling lamp #118
Comments
Hello @darenegade, I don't have a device with moonlight to test, can you please send me the search response for that device? You should be able to get it by running something like (tested on a mac):
Example output:
|
Thank you for your help. I was able to execute the command and got the following response from my ceiling light:
As suspected, the support flag for |
Same problem here on my ceiling lights, I can also help with testing if needed. |
Unfortunately I don't see anything in the response that could be used to detect support for the moonlight mode. I will explore some other ideas and release a beta version for you to test. |
As reported in #118 there is no value in the `support` array or attribute in the initial advertisement that allows for dynamically detecting if a device supports moonlight mode. To work around this limitation we try to proactively send a `get_prop` request for `active_mode` and will initialize the feature accordingly. Fixes #118.
Hello @darenegade, @Mimomaj, I (tried) to fix the issue in #119 and published a new beta version 3.0.1-beta.0 to npm. Let me know if it fixes the issue for you. Also let me know if you find any other new issues with this release. Thanks! |
Hi @vieir, issue is fixed, thank you for your work. I'll let you know in case I found any other issues. |
@vieira I just tested the beta and the issue is fixed for me too. |
@vieira beta works great |
As reported in #118 there is no value in the `support` array or attribute in the initial advertisement that allows for dynamically detecting if a device supports moonlight mode. To work around this limitation we try to proactively send a `get_prop` request for `active_mode` and will initialize the feature accordingly. Fixes #118.
Thanks for taking the time to test! Published 3.0.1 with the fix. |
First of all: thanks for the great plugin. It works pretty well overall and I really like it.
But unfortunately since version 3.0 the moonlight detection doesn't work anymore for my ceiling lamp (Yeelight JIAOYUE YLXD05YL).
I searched the log for some evidence why it's not working anymore and found a difference in the lamp initialization.
On 2.4 I get:
On 3.0 the moonlight is missing:
I guess the
active_mode
is missing somehow on the Support Field of the search response, as the feature init was changed in version 3.0 to identify the moonlight ability. But I can't verify this as the multicast udp response is hard to recreate without coding. (Do you know a way to get that response from the lamp without coding?)If this is the case the init may not use that for feature detection. But I didn't found an other simple way from the documentation to get that information.
One solution could be to override feature detection via config for specific devices.
What do you think?
The text was updated successfully, but these errors were encountered: