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

Show error in card when vacuum gets stuck or runs into error #776

Closed
carefulcomputer opened this issue Nov 26, 2024 · 7 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@carefulcomputer
Copy link

Description

Currently when vacuum gets stuck , the card doesn't show any error. So it is hard to know that it got stuck.

Solution

It will be nice for card to show the error and last known position prominently. That will allow for quick rescue of the bot.

Alternatives

No response

Context

No response

@sca075
Copy link

sca075 commented Nov 26, 2024

@carefulcomputer this looks to be a good point I could add an event to notify the card (this also can be used with a script to create a notification to the mobile), and whenever the vacuum is in "error" condition create a repair notification in HA.

@PiotrMachowski I think probably this can be handled by my integration, anyhow I will post here if you want to add this to the card too the event name.

@PiotrMachowski
Copy link
Owner

For Xiaomi Miio as far as I remember vacuum entity has a possible error state. In such situation an additional error attribute is also available - it should contain a description of an error.

I think that approach with an entity (either a state of vacuum entity or a dedicated one) would be more useful. A repair can also be created additionally.

@carefulcomputer which integration do you use?

@carefulcomputer
Copy link
Author

@PiotrMachowski , I use valetudo .

@PiotrMachowski
Copy link
Owner

Does any entity report error status?

@sca075
Copy link

sca075 commented Nov 26, 2024

Does any entity report error status?

Piotr Valetudo does send error stat but and the camera detects the error stats too, I can also implement an event valetudo_error so that the card or the user can trigger an action.

event_type: valetudo_error
data:
  entity_id: mqtt_vacuum.silenttepidstinkbug
  error: "{error}"
origin: LOCAL
time_fired: "2024-11-26T18:32:39.959478+00:00"
context:
  id: 01JDMVYE8QJE9RHAMXDPWN4Z5J
  parent_id: null
  user_id: null

@carefulcomputer the camera also create a snapshot when the vacuum is idle, error or docked automatically on www.
I think with this event you can get the desiderate scope. Create an automation that listen for the event and grab the snapshot for a notification. Is that okay for you?

@carefulcomputer
Copy link
Author

that will be great. few suggestions to make it even better (not sure what all is possible)-

  1. Provide a slight red tint to whole image (which would indicate the error)
  2. If possible draw a circle or replace robot icon (or enlarge, different color etc) to make location of robot more prominent.

@sca075
Copy link

sca075 commented Nov 27, 2024

@PiotrMachowski I think you can close this I will open a future request on my project with the comment that @carefulcomputer made. Thanks to you guys for the hints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants