Why are alerts not available in the ui and easier to set up?

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

1 Like

This would make it easy to say publish an alert to my WebOS TV when an alert is triggered

1 Like

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.

1 Like

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.

1 Like

Yes to more visiblilty for the alert entity. It is amazing, but really hard to find unless you are really digging into the docs.

1 Like

Frenck discussed this with someone on Twitter a while back

2 Likes

Yeah, that would be me :joy: And that’s where this wth comes from! @frenck

2 Likes

You are correct.

1 Like

<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!

3 Likes

WTH are votes not auto cast for your own submission? :upside_down_face:

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.

3 Likes

Agreed.

It’s a Discourse “feature” I guess, or bug.

1 Like

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 a Template 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
1 Like