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

Add VacuumDeviceStatus and VacuumState #1560

Merged
merged 3 commits into from
Oct 25, 2022
Merged

Conversation

rytilahti
Copy link
Owner

This provides a common, vendor agnostic API for obtaining vacuum state information,
to be used by downstreams like homeassistant.
This also converts roborock vacuum to use these common facilities.

Added common API:

  • VacuumDeviceStatus is an interface extending DeviceStatus to enforce common API for devices implementing VacuumInterface.
  • VacuumState provides a generic interface to map different vacuum statuses.

These interfaces are bound to change and are introduced to make it simpler to make other vacuum integrations available to downstream users. This is related to #1495.

This provides a common, vendor agnostic API for obtaining vacuum state information,
to be used by downstreams like homeassistant.
@rytilahti rytilahti merged commit 369b5fb into master Oct 25, 2022
@rytilahti rytilahti deleted the feat/extend_vacuuminterface branch October 25, 2022 00:31
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