ich habe meine PV Anlage mittels OH Binding von Kostal angebunden. Bislang habe ich die PV Leistung aus den beiden PV Strings errechnet und mittels OH auf eine KNX GA gesendet um diesen auch im KNX verwenden zu können.
Seit der Umstellung auf OH 3.4 erhalte ich folgende Fehlermeldung:
Code: Alles auswählen
An exception occurred converting type 242.1813278199 kWh to dpt id 9.024: error message=incompatible types: kWh, kW
Code: Alles auswählen
Type number-control : th_au_pv_leistung "Leistung PV Anlage" [ ga="9.024:X/X/X" ]
Code: Alles auswählen
Number:Energy solaranlage_DEVICE_LOCAL_PV_POWER "Aktuelle Leistung der Photovoltaikanlage" <solarplant> (gSolaranlage) {channel="knx:device:bridge:generic:th_au_pv_leistung" [profile="follow"],autoupdate="false" }
Code: Alles auswählen
Number:Energy solaranlage_DEVICE_LOCAL_PVSTRING_1_POWER "Aktuelle Leistung des Photovoltaikstrings 1" <solarplant> (gSolaranlage) { channel="kostalinverter:XXXXXXXX:deviceLocalPVString1Power"}
Number:Energy solaranlage_DEVICE_LOCAL_PVSTRING_2_POWER "Aktuelle Leistung des Photovoltaikstrings 1" <solarplant> (gSolaranlage) { channel="kostalinverter:XXXXXXXX:deviceLocalPVString2Power"}
Code: Alles auswählen
rule "PV Leistung"
when
Item solaranlage_DEVICE_LOCAL_PVSTRING_1_POWER changed or
Item solaranlage_DEVICE_LOCAL_PVSTRING_2_POWER changed
then
if( ! (solaranlage_DEVICE_LOCAL_PVSTRING_1_POWER.state instanceof Number) ) {return;}
if( ! (solaranlage_DEVICE_LOCAL_PVSTRING_2_POWER.state instanceof Number) ){return;}
solaranlage_DEVICE_LOCAL_PV_POWER.postUpdate((solaranlage_DEVICE_LOCAL_PVSTRING_1_POWER.state as Number) + (solaranlage_DEVICE_LOCAL_PVSTRING_2_POWER.state as Number))
end