-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Fix operational state and vacuum state for matter vacuum #147466
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
Conversation
Fixed test that was failing |
Hey there @home-assistant/matter, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Nice work! I finally got myself a (working) matter vacuum cleaner so I was planning to look at this myself but you've beaten me to it. Highly appreciated! I will quickly test the PR and then lets focus on getting it merged asap. |
Found one more small bug which caused the state to not be automaticically updated, corrected it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @ocrease !
This PR fixes at least the state reporting but seems that starting the vacuum is still not always working. E.g. it works for a Matter 1.3 vacuum but doesn't for a 1.2 vacuum - needs more thought but can be fixed in another PR |
Ah great. I wondered why the main vacuum state didn't update immediately. Works much better now!
I'm using a Eufy E25 which is matter 1.3 and start cleaning doesn't work for me. Pausing and resuming once the vacuum is running does work. I wanted to keep this PR focused on the state reporting. Maybe one needs to send a command on the RvcRunMode cluster instead? I haven't had a chance to investigate. Either way, it will need to be a new PR |
Yeah, I'm working on it now - I'll prepare a PR within an hour or so with a fix. For example the Matter 1.2 vacuums out there (e.g. Switchbot) do not have the OperationalState cluster while the 1.3 vacuums do. Anyways, I'll sort something out. Thanks for your efforts in fixing the state! |
Once you have a PR I'm happy to review and/or try it out. I also thought about adding error information from the (Rvc)OperationalState cluster, but wasn't sure if it should be a separate sensor or an extra attribute of the |
Proposed change
Fixing the issue described in #145884. There are three main fixes:
InteractionModelError: UnsupportedCluster (0xc3)
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: