Hi,
Please bear with me, I'm a total stranger with this. I cannot seem to find my answer with good old google.
I'm trying to change the string from my fronius inverter to something that Domoticz is willing to understand, so a json string.
Here is what I start with:
{"DAY_ENERGY":{"Unit":"Wh","Value":40110},"DeviceStatus":{"ErrorCode":0,"LEDColor":2,"LEDState":0,"MgmtTimerRemainingTime":-1,"StateToReset":false,"StatusCode":7},"FAC":{"Unit":"Hz","Value":49.99},"IAC":{"Unit":"A","Value":0.22},"IDC":{"Unit":"A","Value":0.24},"PAC":{"Unit":"W","Value":41},"TOTAL_ENERGY":{"Unit":"Wh","Value":6892709.5},"UAC":{"Unit":"V","Value":229.9},"UDC":{"Unit":"V","Value":297.8},"YEAR_ENERGY":{"Unit":"Wh","Value":1605788.38}}
That is what comes out of the fronius-node. Now I am interested in a few values.
ENERGY_DAY, PAC, YEAR_ENERGY and TOTAL_ENERGY. So I started filtering out values with msg.payload[0] (for the ENERGY_DAY), msg.payload[6] (PAC), msg.payload[7] (TOTAL) and msg.payload[10] (YEAR) energy
But I found that msg.payload[0] isn't ENERGY_DAY and all the values (like msg.payload[0].Value for today's total) but '{' .
I know I'm missing something, starting with knowledge to all this. Who is willing to help me? I'm clueless in this one. I'm willing to share my project if I can get it to work. Which I think someone has already done and I'm inventing the wheel again. But I can't find it. And yes there is a plugin for domoticz to work with the fronius inverter, but it is horrible unstable in my setup. So I thought let's go with node red...