Here is a script I use at a client's company to visualize the current charging power at each charging point in their company parking lot. Thank you tomnord for the earlier scrips 

Code:
-- Load required libraries once
require('json')
require('ssl.https')
require('ltn12')
-- Your configuration
local API_Token = storage.get('EaseeAPI_Token')
-- Define all 8 charging stations with placeholder names, IDs and KNX group addresses
local chargingStations = {
{ name = 'charger 1', id = 'charger 1 id', ga = '55/1/1' },
{ name = 'charger 2', id = 'charger 2 id', ga = '55/1/2' },
{ name = 'charger 3', id = 'charger 3 id', ga = '55/1/3' },
{ name = 'charger 4', id = 'charger 4 id', ga = '55/1/4' },
{ name = 'charger 5', id = 'charger 5 id', ga = '55/1/5' },
{ name = 'charger 6', id = 'charger 6 id', ga = '55/1/6' },
{ name = 'charger 7', id = 'charger 7 id', ga = '55/1/7' },
{ name = 'charger 8', id = 'charger 8 id', ga = '55/1/8' },
}
-- Function for making a GET request to the Easee API
local function RequestFromEasee(endpoint)
local url = 'https://api.easee.cloud/api/' .. endpoint
local response = {}
local _, code = ssl.https.request{
url = url,
method = "GET",
headers = {
["Content-Type"] = "application/json",
["Authorization"] = "Bearer " .. API_Token,
},
sink = ltn12.sink.table(response),
}
if code == 200 then
return json.pdecode(table.concat(response))
else
log('Easee API error (' .. endpoint .. '): ' .. tostring(code))
return nil
end
end
-- Parameters for power calculation
local voltage = 230 -- V per phase
local phases = 3 -- three-phase
local cosFi = 0.95 -- power factor, adjust if needed
-- Loop over all charging stations
for _, station in ipairs(chargingStations) do
-- Fetch status
local state = RequestFromEasee('chargers/' .. station.id .. '/state')
if state then
-- Try to use totalPower directly
local power = state.totalPower
if not power or power == 0 then
-- Fallback: calculate using I × U × √3 × cosφ
local current = state.outputCurrent or 0
power = (current * voltage * phases * cosFi) / 1000 -- in kW
end
-- Send power (kW) to the configured KNX group address
grp.write(station.ga, power)
else
log('Could not retrieve status for ' .. station.name .. ' (' .. station.id .. ')')
end
end