Hi, I have Waveshare UPS HAT (D) and I have installed the latest version of this integration (downloaded from the master branch) in HA.
Using the INA219.py script from Waveshare, I'm getting proper values for the UPS. However, with this integration, values for Current and Power have inverted value - when the device is charging, the Current value is below zero, and when it is running on battery, the Current is positive number.
And probably because of this inversion, I am also getting inverted state for the "charging" entity. And "Remaining Capacity" is always reported as 0. Value of Voltage is on the other hands reliable.
Hi, I have Waveshare UPS HAT (D) and I have installed the latest version of this integration (downloaded from the master branch) in HA.
Using the
INA219.py
script from Waveshare, I'm getting proper values for the UPS. However, with this integration, values for Current and Power have inverted value - when the device is charging, the Current value is below zero, and when it is running on battery, the Current is positive number.And probably because of this inversion, I am also getting inverted state for the "charging" entity. And "Remaining Capacity" is always reported as 0. Value of Voltage is on the other hands reliable.
This is my config:
Is this behavior a bug? Let me know if I can provide some more debug data.