I need idea for a variable energy waste device

I don’t know if this will help you, Control the EV charging power with regard to the solar PV output and grid power reading - Share your Projects! / Themes - Home Assistant Community (home-assistant.io)