Save and release/dispatch notifications later?

Hi,

I would like to allow notifications only from certain flows during night time (important ones), while disallowing notifications from unimportant ones. I have already accomplished this by creating a boolean, indicating whether or not “unimportant” notifications shall be sent; this boolean is set to False when I go to bed, and True about the time I wake up, and then checked by all “unimportant” flows before sending notifications.

The downside of this approach is I miss out on all the “unimportant” notifications that were never sent during the night - ideally, I’d like to receive them in the morning (reflection: I guess this means they are not THAT unimportant after all…). I do already publish these messages on the timeline, but it would simply be more convenient to receive them as push notifications (as well).

Now, my question is, where/how would I most conveniently store the notifications (i.e. the message strings), and how would I go about looping over and “releasing” them when I want to receive them? I was thinking of utilizing a text variable and appending notifications to it (separated by e.g. semicolon, CSV style) and then parse that variable using a Homey script and sending the push notifications, but I have a feeling there may be more straightforward ways of accomplishing this. Any ideas?

Thank you!

For the “unimportant” notifications I use Simple Log log cards.
It even provides for a script, to add log cards to all, or selected flows.
Pro: the data is 100% saved locally to Homey’s storage.
Con: it’s not endless, the logs rotate, to prevent running out of storage, unless you send the logs to a syslog server.

I made a howto, to display the logs on Homey dashboard.

For “need to know” notifications I use Signal/Telegram, part of the CallMeBot app.
Con: Those are 3rd party online services, to trust your information to.
Pro: This offers a (neverending) history, and it’s searchable with search tools.
Somehow this is not offered by native timeline & push notifications.

2 Likes