I’m not sure how to use it. I do not charge at night. The placement of my iPhone, on my nightstand, prohibits this and I use it during the night several times for the clock.
I get up at different times (I’m retired) and I normally check some things then maybe charge to over 90%, then I may use some more. I’ll usually go to 100% manually during the afternoon.
Optimized charging is probably really confused on my phone but it’s an iPhone X from July 2017 and is at 92% capacity, Apple considers that to be full capacity. AppleCare runs out next July, maybe I should turn optimized OFF and hope for a free new battery before July.. but I won’t, I’ll do my best and a new battery is what? $70..? Nah, I’ll do my best and try to wait for iPhone 12S Plus or equivalent. Maybe Apple will come to their senses about pricing. 1K is a lot, $1400 is too much, IMO... and I want the USB.
Bottom line I try to stay between 50% and 100% but over 90% is fine. It seems to work and manually do what Optimized Charging does.