Alarm.com groups notifications together. I'm trying to get Tasker to announce the latest notification and what camera it came from.
What's happening now is if there's only one notification, the correct camera is announced. If there are multiple notifications, the task will announce only "backyard" over and over again regardless of what camera triggered the notification.
Here is the profile:
Profile: Alarm.com Notification Event: Notification [ Owner Application:Alarm.com Title:* Text:* Subtext:* Messages:* Other Text:* Cat:* New Only:Off ]
Enter Task: Alarm.com
A1: AutoNotification Query [ Configuration: Persistency Type: Non-Persistent Only Notification Apps: Alarm.com Timeout (Seconds): 20 Structure Output (JSON, etc): On ]
A2: Stop [ ] If [ %anwhentime() < %Latest_time | %anwhentime() eq %Latest_time | %ansummarytext1() Set ]
A3: Variable Set [ Name: %Latest_time To: %anwhentime() Structure Output (JSON, etc): On ]
A4: Wait [ MS: 500 Seconds: 1 Minutes: 0 Hours: 0 Days: 0 ]
A5: If [ %INTERRUPT eq all ]
A6: Notification Volume [ Level: 7 ]
A7: Perform Task [ Name: Edge Notification Priority: %priority Structure Output (JSON, etc): On ]
A8: If [ %antitle() ~R Back Yard ]
A9: Music Play [ File: Tasker/ElevenLabs mp3s/Back Yard.mp3 Start: 0 Stream: 5 Continue Task Immediately: On ]
A10: Else If [ %antitle() ~R Driveway ]
A11: Music Play [ File: Tasker/ElevenLabs mp3s/Driveway.mp3 Start: 0 Stream: 5 Continue Task Immediately: On ]
A12: Else If [ %antitle() ~R Side Yard ]
A13: Music Play [ File: Tasker/ElevenLabs mp3s/Side Yard.mp3 Start: 0 Stream: 5 Continue Task Immediately: On ]
A14: Else If [ %antitle() ~R Pending Alarm ]
A15: Music Play [ File: Tasker/ElevenLabs mp3s/Alarm Pending.mp3 Start: 0 Stream: 5 Continue Task Immediately: On ]
A16: End If
A17: End If