@pav and @teachingbirds, thanks so much for your feedback.
I just released Alert2 v1.3.2 and the companion Alert UI v1.1.1. Combined change list and comments:
-
Fix UI bugs related to old Alert-1 alerts. The issue of multiple more-info popups, and also listing extra old-style alerts in the overview card. @teachingbirds, let me know if this doesn’t address the bugs you saw.
Old Alert-1 alerts don’t have enough information to distinguish between an alert being active recently and HA restarting recently. So I made it so that the overview card will show recently active Alert2 alerts, but will only show Alert-1 alerts while they are firing. Just to avoid a flood of Alert-1 alerts showing up when HA restarts. I’m open to a better approach to handling this.
-
Add config support for
data
,title
andtrigger
parameters. They are passed to the notifier. -
Add support for
done_message
-
Add support for
friendly_name
- this shows up in the overview card. -
Add support for
annotate_messages
. This is a boolean, defaulting to true, whether Alert2 will add extra information to notifications when an alert starts or stops firing. Does not affect reminder notifications. -
Update README documenting the new options
To followup on your comments:
Posting either here or in an issue is fine with me. Here is good for open discussion, but may get confusing if too many threads are going on in parallel.
@teachingbirds, In your suggestion to include notifiers in the more-info dialog, do you mean just showing for reference purposes which notifier the alert is configured to use?
I distinguish between notifications of an alert starting or stopping to fire, and reminder notifications. I found it handy for reminder notifications to include extra info like “Alert x on for 1hr” and not just repeat the original notification text from when the alert first fired. You can view the original message text when the alert first fired in the more-info dialog. I could document more what kinds of extra info is added. Any thoughts?
@pav, thanks for your comments on reset_when_fires
. I realized that what I really wanted was a way to limit notifications and prevent a flood when an alert spasms and turns on&off rapidly (before I can snooze the alert). I’ll look into creating a fall-back parameter limiting max notification rate or something simpler than the reset_when_fires
that I had proposed.
NOTE - the currently notification frequency logic does not reset between multiple firings of a single alert. This is I think more complex than it needs to be. I’ll clean it up and simplify to just affect a single alert firing.
I’m considering changing the name of notification_frequency_mins
to reminder_frequency_mins
, since it really controls reminders specifically. Any reason not to?
Next I’ll work on making notification_frequency_mins
take a list, and probably rethink the frequency logic.
-Josh