I have a homebrew monitoring system and would like to use HA to display the services which are currently failing.
My current solution was to programatically rewrite ui-lovelace.yaml
to add entities which failed to a card. This works but is very artisanal and I would like to avoid manipulating the config file.
The right solution would be to
- update the state of an entity in HA, specifically to provide a dict of my monitoring endpoints with their status:
{
"light1" : {
"ok": True,
"when": "<an iso date>",
},
(...)
- have a card which would iterate over this dict and conditionally display the ones which have a
False
status.
Ideally (but this is really a nice to have), it would be great if the condition could be switched in the card (that is have a switch whihc would show all the entries, or only the failed ones). But this is only a nice to have.
Alternatively a card which would list all the netrie would be OK as well (the state would hold only failed issues). Or even a card whihc would just display a list (that would be a list of the failed entities, without fancy dicts).