Build json MQTT payload from several entities

Hi

I have a SolarEdge inverter that I want to use to control my ev charger. The ev charger can listen to mqtt from the ferroamp energy hub and I got the API. Is it possible to combine data from the SolarEdge smart meter to achieve this?

How do I combine several values in a payload?

You use a payload template.