Consolidated Notification Content

So I’m drowning in notifications. This is of my own doing and I would love to find a solution.

I use email as my notification method but this would apply to any such as slack etc.

I have my automations setup so that whenever an important event happens (side door open / motion detected living room) and we are not home I get a notification. I would like to be able to have one notification with event information over the last 60 seconds (configurable).

Example email I would like to receive


4/24/2020 16 : 00 : 00
Side door opened

4/24/2020 16 : 00 : 04 (+ 4 sec)
Motion detected garage

4/24/2020 16 : 00 : 10 (+ 6 sec)
Motion detected living room

4/24/2020 16 : 00 : 50 (+ 40 sec)
Security system disabled with correct code


When something important happens I would like to put that text into a stack / hopper somewhere. New events / text are added to the stack.

If there is no additional activity on the stack for say 60 seconds I would like to send that stack as a notification. That gives me one notification for the larger “event” of someone coming home or whatever.

I’m not sure how to accomplish this.

Thanks!!

Possibly with the file notification service.

Write your notifications to a file. Trigger a automation every minute (time pattern) if the file exists (condition) send it as an email attachment. Then delete the the file (it will be recreated next time you use the file notification service).

The sensor for the file existing and the command for deleting the file would be the tricky bits. No idea how to do that.