Hi Guys, and thanks for the great job you did (respect) from the heart of Berlin where the Gigafactory4 is gonna be build.
I got everything set up and running together with my Wallbox (2nd gen.)
The USB-RS485 converter I use is DSD TECH SH-U11F USB TO RS485/RS422 Converter bought at Amazon and has a case around it.
But it seems that I have some problems with implementing my API from my smartmeter system.
I got an PI running the the smartpi software from Enerserve on it. It is acting like a smart meter and gives me all the readings that i want, including an API of the output. If there is enough energy from the sun on the roof I get some negative numbers on my 2nd phase (mains is 240v/400v 3phase).
My API key link looks like this:
http://192.168.1.2:1080/api/2/power/now
The output of the file lokks like this:
{"serial":"smartpi12345","name":"House","lat":52.3667,"lng":9.7167,"time":"2020-06-18 17:18:25","softwareversion":"","ipaddress":"192.168.1.2","datasets":[{"time":"2020-06-18 17:18:24","phases":[{"phase":2,"name":"phase 2","values":[{"type":"power","unity":"W","info":"","data"
:-425.00882}]}]}]}
The numbers in Bold is the negative energy from the solar panels. (I know it is not enough but I'm bussy with installing another extra 4K on the carport.
In the script i found the greenEnergyData and changed that with my IP and some other information.
greenEnergyData = run_process('curl -s -m 60 "
http://192.168.1.2:1080/api/power/now?T=1&D=0&M=1&C=1"')
What went wrong and is somebody here that can help me.