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

Support for optional capabilities #213

Merged

Conversation

lucaponzanelli
Copy link
Contributor

Add support for optional capabilities in capabilityMap

  • A service can declare a minimum set of capabilities needed to work and an optional set which can be added without preventing the match of the service.
  • If an optional capability is matched, it is removed from the set to be matched as it was a capability required by a service

Support Air conditioners with minimal capabilities set

  • treat fanOscillationMode, relativeHumidityMeasurement, custom.airConditionerOptionalMode as optional capabilitites
  • switches for fan oscillation and optional mode are added by AirConditionerService only when supported by device's optional capabilities

- switches for fan oscillation and optional mode are added only if supported in device's capabilitie
@iklein99 iklein99 merged commit 46cf2c9 into iklein99:master Sep 20, 2023
2 checks 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.

2 participants