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(camera): disable camera when vacuum docked #472

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dahlmo
Copy link

@dahlmo dahlmo commented Oct 5, 2023

Closes #468.

Blueprint doesn't take the idle state into account, so you get rate limited by Xiaomi because of too frequent map fetching.

@dahlmo
Copy link
Author

dahlmo commented Nov 13, 2023

I saw that you wrote that you were a bit busy in the other open PR @PiotrMachowski, but is there someone else that could take a quick look at this one then? For me it's no rush but I think this would be a low hanging fruit that would prevent a lot of rate limiting for a lot of users that doesn't write their own automations.

@dahlmo
Copy link
Author

dahlmo commented Apr 23, 2024

A friendly reminder @PiotrMachowski. We're probably a lot of users that get rate limited every time the vacuum gets stuck (since it keeps polling) and this should fix it.

Copy link

@mival mival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more idle states

@@ -30,7 +30,7 @@ action:
- condition: trigger
id: 0
- service: |
{% if trigger.to_state.state in ["unavailable", "unknown", "docked"] %}
{% if trigger.to_state.state in ["unavailable", "unknown", "docked", "idle", "paused"] %}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my case "idle" state is charging
image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mival what do you mean by that? I think that's expected, e.g. the vacuum is idle but it may be charging (or it may not). I think the camera should be disabled when in that state anyhow.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dahlmo in my case (Roborock S5) when vacuum cleaner is docked the state is charging. So in my case I also need disable camera while state is charging

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I updated the PR accordingly now.

@dahlmo
Copy link
Author

dahlmo commented Oct 7, 2024

I've been trying to get some eyes on this for quite a while now, anyone knows who I should @?

@dahlmo
Copy link
Author

dahlmo commented Nov 12, 2024

@PiotrMachowski I have had this PR open for over a year now, since it's a one-liner (and in my opinion low risk, high reward) I hope you or one of the other maintainers can take a quick look.

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.

Blueprint disable_vacuum_camera_update_when_docked.yaml - add "Idle" + "Pause"
3 participants