HomeGenie Forum

General Category => General Discussion => Topic started by: Maximo on January 26, 2016, 01:51:56 PM

Title: Battery devices
Post by: Maximo on January 26, 2016, 01:51:56 PM
Is there a way of getting a notification of when the battery level is low? I'd prefer something that covers all devices rather than create a script of each individual device.

Thanks,

Garry
Title: Re: Battery devices
Post by: dani on January 26, 2016, 02:29:36 PM
Widget of each device has a battery shows the level of battery at its bottom.
If you want an automatic report you have to write a C# script.
Title: Re: Battery devices
Post by: bkenobi on January 26, 2016, 09:03:52 PM
In C#, run a script every x minutes that checks each sensor widget (or whatever uses a battery and reports its status. If low/0.0, build an email to notify which modules need attention.  Probably best to also have a timeout such that you don't get informed every x minutes when you can't get to it right away.
Title: Re: Battery devices
Post by: Maximo on January 26, 2016, 11:47:55 PM
Thanks for the replies, I was hoping someone would have the code already. But I guess we can't have everything can we. Time to learn a little C#.

Regards,

Garry
Title: Re: Battery devices
Post by: bkenobi on January 27, 2016, 04:21:33 AM
Code repositories exist based on user contributions.  If you figure the C# code out and submit it here, it will exist for the next person.   8)