Thank you for this! I have bought the Zonneplan Nexus and because of this I started using Home Assistant to make a first step in automation ideas. Your script (besides the nicely working api) is the first thing that I actually got working
(HA has quite a learning curve…)
[update]
I’ve got a small request, I would really like to subtract/add the charging/discharging of the Nexus in the stats/view etc., could someone explain to me how to do this?