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

Blueprint disable_vacuum_camera_update_when_docked.yaml - add "Idle" + "Pause" #468

Open c11umw opened 10 months ago

c11umw commented 10 months ago

Checklist

The problem

The blueprint to disable the camera (to prevent rate limiting) has 3 states.

image

Request to add the following to further reduce the chance of rate limiting (idle + paused)): image

Reasoning: 1) Pause: Some people have automations to pause the vacuum when they enter the same room/space it's currently cleaning and resume when vacant. 2) Idle: I have my Roborock on a charging cycle rather than leave it powered on all the time. When it's on it's on a discharge cycle it eventually goes to "sleep" and shows as idle, not docked.

Blueprint location: /config/blueprints/automation/PiotrMachowski/disable_vacuum_camera_update_when_docked.yaml

My install:

Home Assistant 2023.9.2
Supervisor 2023.09.2
Operating System 10.5
Frontend 20230911.0 - latest

What version of an integration has described problem?

v2.2.1

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

roborock.vacuum.s4

What version of Home Assistant do you use?

2023.9.2

What type of installation are you running?

Home Assistant Supervised

Camera's configuration

camera:
  - platform: xiaomi_cloud_map_extractor
    host: !secret xiaomi_vacuum_host
    token: !secret xiaomi_vacuum_token
    username: !secret xiaomi_cloud_username
    password: !secret xiaomi_cloud_password
    country: de
    scan_interval: 30
    auto_update: false
    draw: ["all"]
    attributes:
      - calibration_points

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

dahlmo commented 10 months ago

I've created a PR that I think fixes this @c11umw (#472).

c11umw commented 10 months ago

I've created a PR that I think fixes this @c11umw (#472).

I saw that :) It covers the "Idle" state, but doesn't mention "Pause"

dahlmo commented 10 months ago

It does cover "paused" @c11umw (screenshot from the PR diff below)

Screenshot 2023-10-23 at 10 48 45
Davst commented 9 months ago

I second this, I have a automation that picks up when the robot is done cleaning and sends it over to the dust-bin to be emptied before it returns to the dock.