Author Topic: Script last BatteryDate, check all devices  (Read 447 times)

Offline michelhamelin

  • Full Member
  • ***
  • Posts: 150
  • Karma: +2/-0
Script last BatteryDate, check all devices
« on: April 23, 2017, 02:04:44 pm »
I want to create a scene every time i turn on my kitchen light, check last BatteryDate and if its greather then PollSettings play an annoucement on my sonos which device did not report.

The purpose of that script is to check if the battery are dead (or still powered).

I just need help for the script.
Probably a lot of peoples will use also that script for checking if devices are still powered.

Thanks for your help

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1218
  • Karma: +31/-32
Re: Script last BatteryDate, check all devices
« Reply #1 on: April 23, 2017, 07:01:38 pm »
I have set up scenes that notify me when a device has 5% battery.  Gives me time to get replacement batteries until the battery level gets to 1%. Even 1% give me a couple of days notice.
Vera 3, 1.7.1030, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, Weatherunderground, LB60Z-1 bulb