Optimizing use of unused Solar Power to charge a Tesla

@icepicknz I am using the HACS tesla integration (for the car)