# Add a LOW BATTERIES DEVICES LIST with a (too low battries Threshold sensor) with dayly/weekly pushmessage/alert about their battery state

**URL:** <https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829>\
**Category:** Ideas & Suggestions\
**Created:** [April 3, 2023, 3:42pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829 "2023-04-03T15:42:13Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoctorBazinga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doctorbazinga/32/39686_2.png) [@DoctorBazinga](https://community.homey.app/u/DoctorBazinga)\
**Post date:** [April 3, 2023, 3:42pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/1 "2023-04-03T15:42:13Z")

</div>

Can you please add an (too) Low Batteries list and a sensor with own set % value of the batteries an thsi list would be send to you by e-mail and /or push message daily or weekly (at a certain time or at noon).

Just like this : [https://www.youtube.com/watch?v=VgV\_ExVeSfE](https://www.youtube.com/watch?v=VgV_ExVeSfE)

It shouldn’t be that complicated because You already have the list of all battery devices. At least a applying a filter (a a certain battery % left) to this list should be quick. (I use always 21% of battery to have still some time until I have to run to the shop for new batteries).

Thank YOU.

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [April 3, 2023, 3:47pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/2 "2023-04-03T15:47:32Z")

</div>

Create that with a Flow or a Homey Script

```auto
let batteryThreshold = 100;
let lowBattery = [];
await Homey.devices.getDevices()
  .then(result => {
    Object.keys(result).forEach(function(key) {
      let d = result[key];
      if(d.capabilities.includes("measure_battery") && d.capabilitiesObj["measure_battery"].value <= batteryThreshold){
        lowBattery.push(d.name + "has " + d.capabilitiesObj["measure_battery"].value + "% Battery left");
      }
    });
  });
  return lowBattery.join(", ");

```

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [April 3, 2023, 4:04pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/3 "2023-04-03T16:04:21Z")

</div>

Or you can use the “any device’s battery value has changed” “when” card and do with it as you wish?

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [April 3, 2023, 5:40pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/4 "2023-04-03T17:40:16Z")

</div>

And otherwise:  
This is not the place for such a request, as Athom is not actively monitoring this community.  
Requests can be made by filling out the support form at:  
[http://support.homey.app](http://support.homey.app)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 3, 2023, 6:11pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/5 "2023-04-03T18:11:01Z")

</div>

As far as I know Homey sends alerts automatically, when a battery reports a level below 20%. It includes battery, zone name and the level.

Offtopic, can you please stop using words in capitals, when there’s no emergency? 🤗

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [April 3, 2023, 6:16pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/6 "2023-04-03T18:16:11Z")

</div>

![IMG_9114](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/d/edc069a1bad9b486a2037d5fd7df0891375261a3.jpeg)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [April 3, 2023, 6:56pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/8 "2023-04-03T18:56:27Z")

</div>

Yeah, just got this in the timeline (automatic).  
You only need to set this in timeline settings for category “energy” to get pushmessages in addition.

 ![Screenshot_20230403_205347_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cd1c6880b2ed6e9f5ae07251b7fd411e7bf28514.jpeg)

 ![Screenshot_20230403_205406_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/8354eaa2490853c7c6dcf36e597c682f6c1a48cd.jpeg)

---

<div class="post-metadata">

**Author:** ![Thunder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thunder/32/31836_2.png) [@Thunder](https://community.homey.app/u/Thunder)\
**Post date:** [April 4, 2023, 10:45am UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/9 "2023-04-04T10:45:51Z")

</div>

In the new (beta)app there is a separate page with all batteries and their statuses. A little bit patience, I think.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [April 4, 2023, 11:51am UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/10 "2023-04-04T11:51:26Z")

</div>

The battery page is also in the old app.  
Energy page, tven battery icon in right upper corner.

---

<div class="post-metadata">

**Author:** ![DoctorBazinga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doctorbazinga/32/39686_2.png) [@DoctorBazinga](https://community.homey.app/u/DoctorBazinga)\
**Post date:** [April 4, 2023, 2:40pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/11 "2023-04-04T14:40:12Z")

</div>

Ok.  
I know.  
But this is a SMART home and so it shouldn’t be necessary to take a look yourself every now and then if still all batteries are fine/enough.  
Yoy should get a warning at/beneath a certain Battery % level So you cann act/replace the battery in time.  
I use a percentage level of 21% so I mostly I would have still several days to get/purchase a new battery and replace is on my sensor/device.  
A Nice time of such a warning is when I wake up or at noon (12PM) daily with the list on near future to be replaced batteries on devices.

Red Iphonitis rigorosa : level 11

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [April 4, 2023, 3:22pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/12 "2023-04-04T15:22:28Z")

</div>

Everyone will have it’s own opinion on how they want this presented, so Athom did the SMART thing, they provided Homeyscript and flows so anyone can build it to their own needs.

---

<div class="post-metadata">

**Author:** ![Arne\_Holvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arne_holvik/32/12817_2.png) [@Arne\_Holvik](https://community.homey.app/u/Arne_Holvik)\
**Post date:** [April 4, 2023, 6:06pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/13 "2023-04-04T18:06:30Z")

</div>

I agree that this is not what is required, and that querying for low battery status is easy. What is hard is when devices quietly stops reporting. Is there a way to list devices by how long time since they reported any activity at all?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 4, 2023, 8:09pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/14 "2023-04-04T20:09:29Z")

</div>

> [@Arne\_Holvik](#):
>
> when devices quietly stops reporting

You can import this flow for that

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/13):
>
> Sensor (or any device) Connection Check. Sometimes, you’ll discover a sensor or other device doesn’t report it’s status or value anymore, but it does NOT notify you of being offline… Well, this flow checks the, most recent update time of your sensors. You can run the flow every day, twice a day, just add or remove a time triggercard. The ‘inactive time’ can be edited as well (24hrs as default) and you can choose to not send notifications when all sensors did report inside the ‘inactive time…

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [April 9, 2023, 12:41am UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/15 "2023-04-09T00:41:09Z")

</div>

Create a group and add all battery devices - then you can do what ever you want with it.

you can alarm when any of the batteries are low, show the average, highest, low Estes, mode etc.

---

<div class="post-metadata">

**Author:** ![fsw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fsw/32/5831_2.png) [@fsw](https://community.homey.app/u/fsw)\
**Post date:** [April 11, 2023, 7:59pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/16 "2023-04-11T19:59:11Z")

</div>

just make a flow:

when: A sensors value has changed (its directly under Thuis/Home). (select sensor type: battery level)  
And: value is below 21  
Then: do what ever you want, just use the tags to determine the sensor name and its battery value.

ps. for neo coolcam sensors youre pretty late with 21%, their already dead at that level but oh wait youll never notice that either if you dont run Peters script haha 😉

---

<div class="post-metadata">

**Author:** ![John\_Lesage](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_lesage/32/16576_2.png) [@John\_Lesage](https://community.homey.app/u/John_Lesage)\
**Post date:** [April 25, 2023, 7:58am UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/17 "2023-04-25T07:58:27Z")

</div>

Thanks a lot this is very helpful. I have an extra question though. When I run this script I miss the battery values of my alarms. My alarm system is SmartAlarm and I use also the app.

kind regards,

John

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 25, 2023, 12:47pm UTC](https://community.homey.app/t/add-a-low-batteries-devices-list-with-a-too-low-battries-threshold-sensor-with-dayly-weekly-pushmessage-alert-about-their-battery-state/78829/18 "2023-04-25T12:47:21Z")

</div>

It seems the developer has no battery capability added to the base station looking at the default flowcards:

> ![Screenshot_20230425-144040_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/c/3c778be6a75a273707f39799a74b049196ca79df.jpeg)

When it is supported by the Homey system, b/c it is mains powered and not battery powered only,  
you can request the battery capability to be added to the base station device @ the app developer (look for the support part @ app store app page)
