When the reported value goes below a set value (20% in my case) it sends me a pushover notification.
I've tested it, and it works.
Today however, I noticed something odd.
I have door sensor that has dropped it's battery value from 25% to 0%.
I know this is normal for zwave devices and that the reported value is not very accurate, but what is strange, is that my python script does not seem to pick up the batteryLevel at all when it is at 0
- Code: Select all
batteryMessage = (u'%s battery level: %s' % (dev.name, dev.batteryLevel))
indigo.server.log(batteryMessage)
The above does not work when this device has a reported batteryLevel of zero.
It did work perfectly when there was some battery left, but apparantly not when the level is 0.
It looks like the batteryLevel property does not exist when it is 0
I have a second identical device with still some juice left, and the above command does report a batteryLevel.
Is there another command in python I should use to catch the devices that have a reported batteryLevel of 0 ?