Why are alerts not available to make from the ui, and why are they differentiated from automations at all? Could they not be switched out to a special kind of automation trigger and action instead?
Also would make it easier to have actionable notification alerts!
You forgot to vote for your own entry
This would make it easy to say publish an alert to my WebOS TV when an alert is triggered
Yeah it seems like there needs to be alert and subscriber like model.
So you create your alerts and then devices are subscribed to the alert.
Then you donât have to go and configure options multiple times in multiple locations.
That might make it a lot easier to include conditional logic instead of having to rely on a hack that could be âfixedâ at any time.
Just to clarify, this is asking for the ability to configure an alert entity in the UI right? Like make the already existing alert integration UI configurable?
Thatâs how I read it but the comments above seem to be asking for something else entirely. I can make a new WTH if itâs not about that.
Yes to more visiblilty for the alert entity. It is amazing, but really hard to find unless you are really digging into the docs.
You are correct.
<soapbox> Iâm surprised the idea of a persistent (repeated/nagging) alert that can be acknowledged or temporarily paused for protecting oneâs property doesnât come up more often.
Functionality that can potentially help avert some sort of loss has a lot more actual value for home automation then many nice to have little automation routines.
It terms of âstreamliningâ things, it should be easy to set these up even for relatively new users. This means they should be first class objects in Home Assistant.
It also shouldnât be that the great is an enemy of the good.
The ultimate in flexibility isnât the primary goal. If I canât easily explain to a friend how to set one up, without sharing code, it is too complicated.
</soapbox>
Iâm just hearing about this integration for the first time and Iâve been using HA for a long time. So I definitely agree itâs hidden. Looks very useful!
WTH are votes not auto cast for your own submission?
But yes, I second a lot of the ideas in here. The cross over with automations is apparent and them being tied to only notifications is also a bit annoying.
Agreed.
Itâs a Discourse âfeatureâ I guess, or bug.
I started making the PR for going to the UI here.
This should be expandable in next steps as with the ideas above.
This is an amazing PR! I think this integration has quite a lot of potential.
The only things left would be to allow for alerts based on an entire device_class (IE: alert if any device_class moisture IS wet) or alerts based on logic so you donât need to create a template entity as a workaround.
Thatâs not really a workaround. It has had this complex alert criteria section in the docs for as long as I can remember that says this:
By design, the
alert
integration only handles very simple criteria for firing. That is, it only checks if a single entityâs state is equal to a value. At some point, it may be desirable to have an alert with a more complex criteria. Possibly, when a battery percentage falls below a threshold. Maybe you want to disable the alert on certain days. Maybe the alert firing should depend on more than one input. For all of these situations, it is best to use the alert in conjunction with aTemplate Binary Sensor
.
That is literally how it was designed to work.
If you donât like it that is understandable but I would suggest making another WTH rather then adding a separate feature request to this one
The functionality to use more than one sensor in an alert is also missing. Making alerts more cumbersome to maintain compared to notifications. Now you have to make an alert for every smoke sensor.
Lets hope the HA-team does some work on Alerts getting this functionality more useful.
This will not work for alert:
smoke_detected:
name: Smoke alarm
entity_id:
- sensor.smoke1_detected
- sensor.smoke2_detected
- sensor.smoke3_detected
- sensor.smoke4_detected
state: "on"
repeat:
- 1
can_acknowledge: true
title: "HA - ALARM!"
message: Fire in {{ area_name(trigger.entity_id) }}!
data:
push:
sound: mixkit-classic-alarm-995-classic.wav
critical: 1
volume: 1
notifiers:
- me