Catching errors and displaying them in Lovelace

What about displaying that something is not closed? I know it’s not ideal, but should work if you have only one mode/set of sensors…

I would prefer it the other way, but I could put the Alarm Panel on a Conditional
card. If required sensors were closed show the Alarm Panel and if not show the sensors not being closed.

Kind of, yeah… as I said, it’s not ideal. To get the idea hot to intercept button press, you’ll probably need to read custom alarm card’s code

Thank you for this cool script!

It did not work for me at first, since the template condition would always return false.

I had to change the condition to

value_template: '{{ "Error on set_alarm" in trigger.event.data.message.0 }}'

notice the 0, to access the first entry of the list.

Now it works like a charm!

1 Like