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

Fix moonlight mode detection #119

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Fix moonlight mode detection #119

merged 1 commit into from
Dec 15, 2023

Conversation

vieira
Copy link
Owner

@vieira vieira commented Nov 26, 2023

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 moonlight feature accordingly.

Fixes #118.

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.
@vieira vieira merged commit 5a1c97f into master Dec 15, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

Moonlight detection doesn't work for ceiling lamp
1 participant