Beginner here.
Got two smoke alarms (Heiman Smart Smoke Sensor (HEIEHS1SA)) which now are part of the family.
I also got a Aqara Water Leak Sensor since before.
What I am trying to do:
I would like to have a card that shows events like a triggered smoke alarm which doesn’t go away until someone has acknowledged it (by clicking on the event in the card?).
If this is to be a simple warning signal, you could create an input boolean and then add an action input_boolean.turn_on to your existing smoke detection automation. Afterwards you create a new lovelace button card and the input boolean entity.
If the alarm shall be stopped you let your button call a service.
@valvex Love your card. I’m wondering if you just use it for the smoke alarm? I have 25+ sensors around the house and would hate to do this config for each and everyone one of them. HAve you templatised it by any chance and do you think it is possible? (I am by no means a templating guru).
Idea is in the automation list multiple entities and then depending on which one triggers set that specific boolean.
In the card depending on the sensor that triggered adjust the name and icon
Take notice that we now do not specify individual entities, but we include any entity that has “smoke” on its entity_id and is of the input_boolean domain.
Also on the check action, we specify “entity_id: this.entity_id”.
That worked like a charm. Do you know where the text from the actual notification comes from? It looks like it is the name of the boolean. Is there a way to template that and use a friendly name or the name of the triggering device?
This is really useful. What I am wondering, looking at the code (sorry, I am travelling and cannot test it out myself ):
If there are multiple entities reporting smoke, will this then not confirm all at once rather than give you the possibility to check them one by one? Would just using auto-entities without the multiple-entity-row card not create multiple cards that can be individually confirmed?
Is the button then empty, when no smoke alarm is triggered? Maybe I am reading it wrongly.
I would like to piggy-back of this and am thinking if it is possible to simply create multiple buttons in a horizontal stack without tap_action when state is ‘off’ and a tap_action when state is ‘on’.
Would this then not also remove the need for input booleans and automations?
That way you can see all alarms (has the advantage that I know that they are in fact reporting and not e.g. out off battery).
@AleXSR7001
The configuration that I posted above will only create entity rows for the active smoke alarms (ie the input_booleans that are turned on).
For each entity row, there will be a button to dismiss only the desired one (as long as you have correctly configured “this.entity_id” in the tap_action).