X10 Community Forum

📱🖥️PiX10Hub ( Always Evolving Open Source) => 🏥Help and Trouble Shooting => Topic started by: LostDog88 on December 17, 2019, 12:14:10 PM

Title: Battery levels of sensors
Post by: LostDog88 on December 17, 2019, 12:14:10 PM
I know there was talk on this forum about reporting battery levels to HG.

I cannot find it anywhere. I also suck at search strings.

Is there a way to report to HG battery levels of each sensor?
Title: Re: Battery levels of sensors
Post by: bkenobi on December 17, 2019, 02:14:18 PM
There is a string you can set when you update a sensor that will store the battery charge.  I don't remember off hand, but it's something like:

module.BatteryLevel

The value is either 0-1 or 0-100 which I also don't recall at the moment.  Either one of the other HG users who have worked with sensors can answer or you could check my signature scripts where I'm sure I set the value.  It's really easy and once you do that, the widget will automatically display it.