Smart current controller/swtich

Guys do you know of anything like a wifi switch (like a shelly 1em for example) but that let’s you control the current (amps) that goes through it.
Looking to make my EV wall charger smart and automatically/dynamically change the current it allows based on my solar PV generation.
The car can pull a max of 16a/3500w