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

Create a persistent notification when manually auth is requried #440

Open ihaettypo opened 1 year ago

ihaettypo commented 1 year ago

Description

Every once in a while the muanlly authentication is needed for Xiaom account. Which requires us to dig into the log and find the right URL to follow:

Additional authentication required. Open following URL using device that has the same public IP, as your Home Assistant instance:

And sometimes its hard to find out the map needs attention until we open the page and need to the vaccum right away. And this must be dealt with before we can use the map.

Solution

Why not just create a persistent notification to notify the user to deal with this right away, and present the URL in the notification so the user does not have to locate it in the logs anymore.

Alternatives

No response

Context

No response

PiotrMachowski commented 1 year ago

I plan to create an attribute with appropriate info, so it will be possible to create an automation that will send a notification

ihaettypo commented 1 year ago

I plan to create an attribute with appropriate info, so it will be possible to create an automation that will send a notification

Yes it'll work too.

I tried listeing the logs with automation but failed.