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

Adjust Fan to use supportsFanSpeedPercent option #514

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

michikrug
Copy link
Collaborator

@michikrug michikrug commented Sep 11, 2023

As stated in https://developers.home.google.com/cloud-to-cloud/traits/fanspeed#device-attributes there is now a new option called supportsFanSpeedPercent that should be set to true if no speeds are defined.

This PR adds this option in case the devices is coming from a Dimmer item and does not provide a speeds config.

To actually set the speed in percent, the new command SetFanSpeed with the parameter fanSpeedPercent is added.

This is also reflected in the state reporting that now either reports the percentage or settings value.

@michikrug michikrug merged commit 7113457 into openhab:main Oct 10, 2023
6 checks passed
@michikrug michikrug deleted the fan-percent branch October 10, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant