# How is a battery check flow made?

**URL:** https://community.homey.app/t/how-is-a-battery-check-flow-made/118131
**Category:** Questions & Help
**Tags:** flow, homey-pro, advancedflow
**Created:** [October 14, 2024, 3:37pm UTC](https://community.homey.app/t/how-is-a-battery-check-flow-made/118131 "2024-10-14T15:37:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Henrik\_Bendtsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_bendtsen/32/84220_2.png) [@Henrik\_Bendtsen](https://community.homey.app/u/Henrik_Bendtsen)
#### Post date: [October 14, 2024, 3:37pm UTC](https://community.homey.app/t/how-is-a-battery-check-flow-made/118131/1 "2024-10-14T15:37:56Z")

</div>

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

 ![batteri](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/8/089eb181b62ebbcce046aac30557f7eabf8ef731.jpeg)

---

<div class="post-metadata">

### Author: ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)
#### Post date: [October 14, 2024, 4:33pm UTC](https://community.homey.app/t/how-is-a-battery-check-flow-made/118131/2 "2024-10-14T16:33:40Z")

</div>

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’).

 ![Batterijflow 1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/ba611559c25865a4dfb76016362cd067da6c7f22.png)

 ![Batterijflow 2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/be98e0e06b4035536f86fdd1997313952146c2e5.png)

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:

 ![Batterijflow 3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35bcaac30281977b60063ab8e3a195e6d3729fbe.png)

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.

---

<div class="post-metadata">

### Author: ![Henrik\_Bendtsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_bendtsen/32/84220_2.png) [@Henrik\_Bendtsen](https://community.homey.app/u/Henrik_Bendtsen)
#### Post date: [October 14, 2024, 7:53pm UTC](https://community.homey.app/t/how-is-a-battery-check-flow-made/118131/3 "2024-10-14T19:53:24Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![Andy\_Henderson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andy_henderson/32/80642_2.png) [@Andy\_Henderson](https://community.homey.app/u/Andy_Henderson)
#### Post date: [October 15, 2024, 7:58am UTC](https://community.homey.app/t/how-is-a-battery-check-flow-made/118131/4 "2024-10-15T07:58:19Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Henrik\_Bendtsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_bendtsen/32/84220_2.png) [@Henrik\_Bendtsen](https://community.homey.app/u/Henrik_Bendtsen)
#### Post date: [October 15, 2024, 2:13pm UTC](https://community.homey.app/t/how-is-a-battery-check-flow-made/118131/5 "2024-10-15T14:13:43Z")

</div>

Hi Andy,  
That was actually a good idea too. Thanks
