As i could not use the solution by milanvo on my HA, i have done some research and have good results by using pijuice ups python integrationas as a base, but modify i2c addresses. Still under progress, but now i can see charging state and IO status. About charging… its tricky, as i have to connect and solder a resistor beetween charge leds hot point to one of the pico AD input to be able to check that charge is active or not. (Software charge state is not represents the real status of charging or not)
You are see pijuice, but actually its a pico as described above…will work on it.