I’m using the Power HAT Python API to get all the parameters from the device, but it only works intermittently.
For example, in one run just now, of the 13 parameters I read, 6 returned results and the others threw the exception
'NoneType' object is not subscriptable at, for example https://github.com/sixfab/sixfab-power-python-api/blob/master/power_api/power_api.py#L102
Which calls work and which do not appears to be random.
In addition, I’m getting a confusing response to
get_battery_charge(). At this moment it’s returning
16 while the Power software (website) shows the battery is at 97%. What’s going on there?