PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.13k stars 122 forks source link

Add "sleeping" as a state for the camera updates to stop #437

Closed brhahlen closed 1 year ago

brhahlen commented 1 year ago

Description

I'm using the recommended blueprint (https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/blob/master/blueprints/automation/update_map_extractor.yaml) to stop the updates of the camera, to ensure that I not get rate limited.

However, when my vacuum gets stuck somewhere, it will go into a "sleeping" state, which will still cause regular updates, and casuse me to be rate limited.

Solution

Add a "sleeping" state to the Update Map Extractor blueprint, that will stop updates when the vacuum goes into a sleeping state.

Alternatives

No response

Context

No response

PiotrMachowski commented 1 year ago

Good idea, done!

brhahlen commented 1 year ago

Holy crap, that was fast! Thanks!