Hello,
First of all thanks for a great forum.
However, I cannot immediately find an answer to my question.
I have searched and found a solution for a battery check (see picture).
It works!
I receive a notification when a battery is below 20 percent.
But unfortunately I receive very, very many notifications during the day.
Until the battery in the device has been replaced.
What have you others done?
A solution could be that it only checks once a day?
But how do I do it?
So I only counter one message on a daily basis at least.
Or what have you others done?
Kind regards
Henrik Bendtsen
I am using a flow per device to check the battery level of that device only. In addition, I have a yes/no variable per device that indicates whether a notification has been sent that day. Every night this variable is reset. By using this combination I limit the notifications to one per device per day.
Further I use one generic variable that defines the threshold (battery percentage) that is used for this check for all devices.
This is an example for a Netatmo weather module:
- The trigger is a change in battery level;
- Next it checks whether the current battery level (‘Accuniveau’) is at or below the threshold (‘Batterijniveau Melding’, e.g. 20%);
- If so, it checks whether a notification has already been sent today for the low battery level (based on the variable ‘Netatmo KT Batterij Gemeld’);
- The flow stops if a notification has already been sent today. Otherwise it sets this variable to Yes and creates a notification message (‘Melding Batterij’), which includes the current battery level ‘(Accuniveau’);
- Finally it sends a push notification, creates a timeline notification and makes a log entry with the same message (‘Melding Batterij’).
At midnight the variable that keeps track of whether a notification has been sent (‘Netatmo KT Batterij Gemeld’) is reset (set to No) and a log entry is made of this action:
The downside is ofcourse that you need to create a seperate flow per device. The upside is that you have maximum flexibility in how to receive such notifications.
Thanks for sharing your ideas and flows, it actually gave me great ideas. I can see the possibilities behind your flows. However, it requires maintenance. Thanks
For an alternative approach check out the Chronograph app. When you raise an alert you can set a timer for, say, 24 hours and suppress notifications until it expires.
Hi Andy,
That was actually a good idea too. Thanks