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

Offline michelhamelin

  • Full Member
  • ***
  • Posts: 126
  • 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: 945
  • Karma: +20/-18
    • Worthington Engineering, Inc.
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, UI7 1.7.947, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs door sensor, Insteon garage control, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual & Multi Switch, Weather, Sys. Mon.