home-assistant-vacuum-styj02ym
home-assistant-vacuum-styj02ym copied to clipboard
[Idea] Vaccum runs with unrecognized map
Hi Krzysztof
Thanks for maintaining this component.
I've been wondering if you're aware of potential ways to detect when the vaccum runs and doesn't recognize the current map. Every now and then, my Xiaomi does that and results in it going where it should now.
I'd like to recognize that and cancel the job by telling it to go back to the dock automatically.
Thanks Mateusz
This might be able to be implemented via your HA automation(s) without making it part of the integration itself. The vacuum should have two attributes that may indicate a map problem;
...
has_map: 1
has_newmap: 0
...
If you use template entities to map these attributes to sensors or binary sensors (I'm not sure of the value options, they may have possible values of more than just 0|1 values?) then you can easily track the history and see whether these change during the fault conditions.
I have the same issue on occasion, but by moving my furniture slightly it has not happened in quite a while.
@jeremysherriff could you please elaborate more on the solution?
In what way?
- Make template sensors using device attributes as sources
- Look at history and states of sensors when fault occurs
- Use sensors to create conditions on automations, or new automations, to handle the states appropriately