Conflict between `alert_once` and `group` options for notifications
See original GitHub issueHome Assistant Android version: 2021.9.0
Android version: 11
Phone model: Pixel 5
Home Assistant version: 2021.10.0
Description of problem: The alert_once
option for notifications does not work properly if a group
is also specified.
Additional information:
Easily repeatable using developer tools to call the service:
service: notify.mobile_app_pixel_5
data:
message: aoeu {{range(1,99)|random}}
data:
# group: "aoeu"
tag: blah
alert_once: true
When uncommenting the group
line, a sound will be played every time the notification is sent. When it’s commented out, alert_once
works properly and only plays a sound if the notification isn’t already visible.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Use notifications on your iPhone or iPad
iPhone showing how to manage notifications. Swipe left over an alert or group of alerts. Tap Options, then select from these options:.
Read more >How do I set up moderation alerts for my Facebook group?
Tap in the top right of your group, then tap See all tools, then Moderation alerts, then settings in the top right. To...
Read more >Sign up for Alerts & Notifications | Mobile Banking
Set up alerts and notifications to get account updates sent directly to your mobile device or email account. Customize alerts to keep track...
Read more >Alert notifications flow | Opsgenie
This doc will bring you through the flow of an Alert once created, based on the ... Other Integration rules and settings can...
Read more >Enable Task Notifications
Let users receive notifications and reminders for tasks. ... Get Help Setting Up Lightning Sync · How Salesforce Manages Sync Conflicts Between Products ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah ha I found the issue as to why it did not work earlier, for groups we have an additional
notify
call to post the notification in order to group them and what happened was the group data that I tested with was not there.For this we need to set
GROUP_ALERT_CHILDREN
as the group alert behavior because the first notification posted to the group is the group summary. Will get a PR ready to fix 😃Man, that’s disappointing. Perhaps a bug in android itself then. Really I see no reason or documentation that the onlyAlertOnce shouldn’t work in groups. I was hoping the groupAlert behavior could fix that deficiency, but 🤷♂️