Low Battery Notification going wild


(Bobby) #1

Has anyone else noticed the Low Battery Notification polling the levels on SmartSense multi sensors every 2 & 1/2 min? This is killing the batteries and could slow down a system, isn’t it?


#2

That’s bizarre. Report it to support.


(Bobby) #3

I did, just wanted to see if others are seeing the same. It is specifically related to SmartSense Multi Sensor. All others are polled less frequently…


(sidjohn1) #4

Yeah i’m not using the ST app for battery monitoring at all, its an oldie, but a goodie :smile:


(Bobby) #5

You have no control over it, or do you? It’s the system app that sends you notification if the battery is low. That’s why is concerning. The polling should be done maybe once a day, or less…Now that I think, maybe if I turn the notifications off would stop…


(sidjohn1) #6

Yes you do have control over it, or did (cause this may of changed) but i know i turned off the system notifying me of low battery state because it drove me crazy getting daily reports of my roomba battery being low.


(Bobby) #7

Not in v2 era :frowning: …We cannot turn off the hub offline or the battery notification; but there is a “hack” to get it done. I just turned the push notification off to see if that stops the polling.

Update: …and that didn’t stop the polling…, so I guess if you have a multi, yours is polling too, even though you don’t get the notifications, as you see below, I turned mine off…


(sidjohn1) #8

I’m hub v2 as well and i remember i killed the system reporting, but i don’t remember how. I’m also one of the few hub v2 users who have a working dashboard so… so i may just be “special”. Sadly i can’t confirm it in live logging cause i accidentally killed the internet at my home :frowning: cause sometimes my “special” is of the short bus variety. If i figure it out i’ll post it here.


(Dawn Fairbro) #9

Bobby,

that is the way mine has always looked. I never thought anything was wrong with it…


(Ash (www.smart-dots.com) / Ashutosh Jaiswal) #10

I use this simple app that monitors battery status of all my devices and sends me a notification on 1st and 15th of every months at 10 am, if the battery of any device is below 25%.

/**

  • Battery Check
  • Copyright 2015 Ashutosh Jaiswal
  • Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at:
  •  http://www.apache.org/licenses/LICENSE-2.0
    
  • Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
  • on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
  • for the specific language governing permissions and limitations under the License.

*/
definition(
name: “Battery Check”,
namespace: “”,
author: “Ashutosh Jaiswal”,
description: “App to check battery”,
category: “My Apps”,
iconUrl: “http://www.iconpng.com/png/symbolize/battery.png”,
iconX2Url: “http://www.iconpng.com/png/symbolize/battery.png”,
iconX3Url: “http://www.iconpng.com/png/symbolize/battery.png”)

preferences {
section(“Monitor battery level on…”) {
input “batteryDevices”, “capability.battery”, title: “Which?”, multiple: true
}
}

def installed() {
log.debug "Installed with settings: ${settings}"
subscribe (batteryDevices, “battDevs”, batteryThings)
initialize()
}

def updated() {
log.debug "Updated with settings: ${settings}"
unsubscribe()
subscribe (batteryDevices, “battDevs”, batteryThings)
initialize()
}

def initialize() {

//Schedule a check of the battery at 10am on the 1st and 15th days of the month
schedule("0 0 10am 1,15 * ?", checkBattery)

}

def checkBattery() {

//Gets the current battery level

log.debug "checking batteries"
def battery = batteryDevices.currentValue("battery")      
def whichDevice
def x=0
def y=0

while (x < 50) {
	if (battery[x] < 25) {
    
    	whichDevice = batteryDevices[x]
        if (whichDevice != null) {
            y=y+1
            log.debug ("Value of y is $y")
        	log.debug "The $whichDevice battery is low"
            sendPush("Battery Check Day: The $whichDevice battery is below 25%.")
            }
                              
        }
        
     x=x+1
  
} 
if(y==0) {
        log.debug "Send Push That Battery is good"
       sendPush ("Battery Check Day: All devices have battery level over 25%")
       }

}

def batteryDevices (evt) { }


(Bobby) #11

Cool, thanks for sharing, but how do we kill the official one from polling every 2 min?


(Andy Rawson) #12

The built in one doesn’t poll, it just subscribes to a special location event that triggers any time a device reports battery level. I think you have something else happening to trigger the fast reporting of the battery level. You don’t have pollster or anything like it setup at all do you?

subscribe(location, "battery", batteryHandler)

(Bobby) #13

Thanks. Good to know, and no, I don’t have anything that could be polling them. I guess the official device type is set up to do that. That was my first thought, but I didn’t check. Because it only happens with the multi sensor from what I can tell.


(Bobby) #14

What do you know!!! Magically “solved” without customer interaction…(but battery level continues to be updated every two minutes) :imp:


Is the SmartThings website broken for everyone, or just me?
(Bobby) #15

Bump, bump, bump…Hey Tim @slagle …this is still going on, no change since December. I have had couple of tickets that were closed without anyone even reaching out.

Can you take a look at this? Is really killing the batteries on the multi sensors. Looks like it might be because the temp is set to poll every 2 min. I don’t want to change the handler, because I want to keep my multi sensors running local. Any suggestions would be greatly appreciated.


(Tim Slagle) #16

The multi is set to wake up poll every 4 hours i believe. It is set to report any new change in temp though. I think them might just be fluctuating.

Might try un-paring and re-pairing to send proper configs.


(Bobby) #17

Thanks Tim, I’ll try that…


(Bobby) #18

Hey Tim, I think the 4 hours is applicable to the new multipurpose sensors (SmartSense Multi Sensor)…but not for the older generation, which uses SmartSense Multi handler. I tries to use the new handlers, but couldn’t make them work. Here is a comparison on the two handlers:

(New) SmartSense Multi Sensor

(Old) SmartSense Multi


Smartsense Open/Close increase temp report frequency
(Robert Vandervoort) #19

@SBDOBRESCU did you ever get a resolution? I’m seeing low battery notification int he live logging on a motion sensor code I’m working on and the batt is reporting 100%…

5:06:21 PM: debug lowBatteryHandler: zooZ Motion Sensor battery is 100%

Here’s the code…


(Bobby) #20

You should be seeing all of your battery operated devices showing up in live logging for low battery app, whenever there are changes in the temp or the device polled. My problem with multi sensor old handler is that is polling the temperature every 5 minutes, when it should be polling them less often