Battery low warning!

time
piston_state
variables

#1

This piston checks the battery level every day and also if any level changes. Change the low level threshold in the variable.


Schedule time events aren't executing entire piston
#2

I have my phone setup as a presence sensor, built that doesn’t give me a battery option so I can monitor it. Is there a way to add a smartphone to smartthings so I can monitor the battery device in webcore as I do other devices(I have no issue with those).?


#4

Great piston…but how do I setup “contacts”?


#5

Search the ST forum for “is my contacts back”. I’m on mobile right now but will get a post up on doing this here.


#6

Thank you for writing up this WebCoRe piston. I changed the notification to leverage SMS text as apparently the contacts doesn’t work anymore. BUT I am quite happy with getting a notification when my batteries are low through a txt message. :slight_smile:


#7

FYI contacts still work just fine. What is the issue you’re having?


#8

I contacted ST about contacts and they stated due to it being deprecated they couldn’t help me get it activated in my account. So if you are a newer user such as myself you do not get this feature in your Samsung account.


#9

I’m not sure if this still works but you can try this.


#10

Nope nothing


#11

That is a bummer, what about the instructions in this post specifically?


#12

WhooHoo!!!

Need to put your Chrome browser into inCognito and it WORKS!!! Thank YOU!!


#13

Piston works great for me, but when something is below the threshold instead of getting a text a day, I get a text a minute.

I literally did not change the piston at all, here it is…


#14

Did you ever figure it out? I get three messages rapidly instead of one and I get it once an hour instead of once a day.


#15

Hi all, this is my 1st post here.
I’ve been using this piston for a few weeks and it has worked well with one or two problems I’m unable to solve. I modified the piston’s execution time to “once a day” at “12:00” rather than “Every 24 hours” at “:00 past the hour” and set the lower battery threshold to “10%”. This seemed to make more sense. My problems are twofold.

  1. One of my sensor batterys suddenly showed as 1% and this generated the necessary push notification but also generated dozens of emails. I believe the sensor is faulty but I only need to be told once. :grinning:
  2. The piston is generating hundreds of entries in the log, even with the logging set to “none”. I cleared the log and the log file immediately began filling again even though the piston wasn’t due to run until mid-day.

Any help would be gratefully received.

Capture02


#16

A little more information that might be relevant.

The emails that were generated started at 00:16 hrs last evening. There were nine of them, all identical. Then at 01:16 there were 9 more and at 16 minutes past each hour there were 9 more. All identical, this happened every hour until 07:16 . It was at that point I paused the piston.


#17

The clue is you have exactly 9 devices listed… It sounds like all of your devices are sending updates to the hub every hour.

I think that if you remove these 3 lines, it will only run once a day:

temp


#18

Thank you so much. That has fixed the problem of multiple emails and the multiple entries in the log.

image