LGSTrayBattery
LGSTrayBattery copied to clipboard
Battery Percentage Zero When Disconnected
I have two G-Hub devices, a 915 TKL keyboard and a G502 Lightspeed mouse. I use them on both my personal mini-PC (where this app is installed) and on my work laptop. I have some code running on my Hubitat home automation hub that polls the app on my PC to get the XML for device battery percentages and records the value in Hubitat.
I updated the app in the last few months after a long period of running older code from probably 2-3 years ago (I expect). My memory of how this behaved in the older app version when I connected my devices to my work laptop, was that the battery continued to read the same value from the last time they were connected to my PC. Under the more recent app version the battery is reading as zero when I do not have them connected to my PC.
This may also be a similar issue to others reported, so happy to close it if it is a duplicate.
I had just recently rewrote https://github.com/andyvorld/LGSTrayBattery/releases/tag/v3.0.0-rc.2
Have a go at it, it should have been fixed.
Sorry, I keep meaning to come back and post a comment on this. I suspect it is working as I need it to now, but will check more closely in the next day or two. Thanks for updating the app.