You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
It would be great to have notifications (errors, task completion, etc). They could be informative and also be the basis for automations.
Describe alternatives you've considered
I've used a rest sensor for alerts but it often gives errors as the api returns empty json if there are none. I know that the api exposes notification dismissal too, but not sure how that would be implemented.
Additional context
The text was updated successfully, but these errors were encountered:
The main alert endpoint is /api/v2.0/alert/list (GET). To dismiss an alert the endpoint is /api/v2.0/alert/dismiss (POST).
The rest sensor I had is below. As I said this gives errors in HA because if there are no alerts the json returned is []. I don't know if this is expected. The conditional tries to catch the exception, but I wasn't able to find a way to make the attribute loading conditional, which I guess is what fails because the Indexes don't exist if it's empty.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
It would be great to have notifications (errors, task completion, etc). They could be informative and also be the basis for automations.
Describe alternatives you've considered
I've used a rest sensor for alerts but it often gives errors as the api returns empty json if there are none. I know that the api exposes notification dismissal too, but not sure how that would be implemented.
Additional context
The text was updated successfully, but these errors were encountered: