Thanks for the reply.
My UPS HAT is connected to a 5V supply all the time but the UPS appears to randomly charge the attached LiPo battery. Sometimes, it allows the battery to discharge to 5.4% and then it cuts power to the Raspberry Pi. At some random time after that, it may apply power again and the battery shows a charge of 90-100%. At other times, the UPS discharges the battery to 20-40% and then starts charging the battery again (leaving the Raspberry Pi powered up - this is the behaviour I was expecting).
What I expected to happen, is that the UPS supplies constant power to the Raspberry Pi and manages the charging/discharging of the battery to maintain its health. If the 5V supply fails, the Raspberry Pi should remain powered up until the battery is discharged or the 5V supply returns.
Why doesn't the UPS HAT operate like that? Thanks.
Do DFRobot monitor this forum and reply to queries?