Scripting battery level warnings?
Richard Leonard
rnaleonard at icloud.com
Thu Aug 5 14:31:57 EDT 2021
What, there’s a squirrel! Where?!?!
Hope it helps
Rich
> On Aug 5, 2021, at 2:25 PM, Jerry — MacSolutions <jerry at stlmacguy.com> wrote:
>
> Rich,
>
> I’m VERY late in thanking you for sharing this. I seem to be one of those people whose concentration leaves…. SQUIRREL!!! …. Like a dog.
>
> I will look at and use what you’ve kindly shared.
>
> Thank You!
>
> —Jerry
>
>> On Jul 30, 2021, at 9:42 AM, Richard Leonard <rnaleonard at icloud.com> wrote:
>>
>> Hi Jerry,
>>
>> Here is my battery check. I think the battery level is not continuously updated via the Vera Plus so I recycle the interface to make sure it is current. You may want to tweak the levels depending on how fast the batteries run down before things stop working.
>>
>> HTH,
>> Rich
>>
>>
>> recycle interface "Vera"
>> do later "batCheck" in 10000
>>
>> on batCheck()
>>
>> set allTherms to all of list "Thermostats"
>> repeat with x from 1 to count of allTherms
>> set nm to item x of allTherms
>> set lvl to xtBatteryLevel of xUnit nm
>> write log "Battery Check: " & lvl & " " & nm
>> if lvl is less than 40 then
>> --put your actions here
>> end if
>> end repeat
>>
>> set allS to all of list "Smoke Sensors"
>> repeat with x from 1 to count of allS
>> set nm to item x of allS
>> set lvl to xtBatteryLevel of xUnit nm
>> write log "Battery Check: " & lvl & " " & nm
>> if lvl is less than 80 then
>> --put your actions here
>> end if
>> end repeat
>>
>> end batCheck
>>
>>> On Jul 29, 2021, at 3:49 PM, Jerry — MacSolutions <jerry at stlmacguy.com> wrote:
>>>
>>> I know this is possible but have never seen a script. I’d like to get the battery level on both Schlage door locks and my house thermostat and once it’s below a s=designated level, announce the battery level each day as a reminder to change them.
>>>
>>> Anyone doing this who I might cheat from?
>>>
>>> TY!
>>>
>>> —Jerry
>>>
>>> _______________________________________________
>>> XTensionList mailing list
>>> XTensionList at machomeautomation.com
>>> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
>>
>> _______________________________________________
>> XTensionList mailing list
>> XTensionList at machomeautomation.com
>> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
>
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20210805/f55edb1a/attachment.html>
More information about the XTensionList
mailing list