Hi,
i try to read values from my pv inverter (Kostal Piko MP) via XML. The file looks like this:
<root>
<Device Name="PIKO 3.0-1 MP plus" Type="Inverter" Platform="Net16" HmiPlatform="HMI17" NominalPower="3000" UserPowerLimit="nan" CountryPowerLimit="nan" Serial="767682GJ008177530020" OEMSerial="10351314" BusAddress="1" NetBiosName="INV008177530020" WebPortal="PIKO Solar Portal" ManufacturerURL="kostal-solar-electric.com" IpAddress="192.168.50.11" DateTime="2021-12-12T11:13:39" MilliSeconds="750">
<Measurements>
<Measurement Value="232.7" Unit="V" Type="AC_Voltage"/>
<Measurement Value="0.464" Unit="A" Type="AC_Current"/>
<Measurement Value="104.5" Unit="W" Type="AC_Power"/>
<Measurement Value="107.2" Unit="W" Type="AC_Power_fast"/>
<Measurement Value="49.992" Unit="Hz" Type="AC_Frequency"/>
<Measurement Value="279.5" Unit="V" Type="DC_Voltage"/>
<Measurement Value="0.412" Unit="A" Type="DC_Current"/>
<Measurement Value="339.8" Unit="V" Type="LINK_Voltage"/>
<Measurement Unit="W" Type="GridPower"/>
<Measurement Unit="W" Type="GridConsumedPower"/>
<Measurement Unit="W" Type="GridInjectedPower"/>
<Measurement Unit="W" Type="OwnConsumedPower"/>
<Measurement Value="100.0" Unit="%" Type="Derating"/>
</Measurements>
</Device>
</root>
So, due to a bad formatting its not that easy and i’m struggeling to read the values with the rest sensor. The only line i need would be the “Type=“AC_POWER”” one. If i would get all, and have different sensors, it would be also okay.
Could someone help me to parse that output?
Thanks.