Load balancing current to EV-charger

no still geting extra keys not allowed @ data[‘trigger’]

is it written as an automation or script?

it is workig good now as a automtion an not a script

It is automation. Glad you have it working now.