Skip to content

Instantly share code, notes, and snippets.

@splatch
Created Dec 27, 2020
Embed
What would you like to do?
openHAB configuration for ineprometering PRO380-mod three phase meter.
String PRO380_ModbusId "Pro 380 Modbus id" { channel="modbus:data:pro380:metadata:serialNumber:number" }
Number PRO380_Voltage_L1 "Pro 380 L1 Voltage [%.2f]" { channel="modbus:data:pro380:voltage:L1:number" }
Number PRO380_Voltage_L2 "Pro 380 L2 Voltage [%.2f]" { channel="modbus:data:pro380:voltage:L2:number" }
Number PRO380_Voltage_L3 "Pro 380 L3 Voltage [%.2f]" { channel="modbus:data:pro380:voltage:L3:number" }
Number PRO380_Current_L1 "Pro 380 L1 Current [%.2f]" { channel="modbus:data:pro380:current:L1:number" }
Number PRO380_Current_L2 "Pro 380 L2 Current [%.2f]" { channel="modbus:data:pro380:current:L2:number" }
Number PRO380_Current_L3 "Pro 380 L3 Current [%.2f]" { channel="modbus:data:pro380:current:L3:number" }
Number PRO380_ActivePower_Total "Total active power [%.2f]" { channel="modbus:data:pro380:TotalActivePower:total:number" }
Number PRO380_ActivePower_L1 "Active power L1 [%.2f]" { channel="modbus:data:pro380:ActivePower:L1:number" }
Number PRO380_ActivePower_L2 "Active power L2 [%.2f]" { channel="modbus:data:pro380:ActivePower:L2:number" }
Number PRO380_ActivePower_L3 "Active power L3 [%.2f]" { channel="modbus:data:pro380:ActivePower:L3:number" }
Number PRO380_ReactivePower_Total "Total reactive power [%.2f]" { channel="modbus:data:pro380:TotalReactivePower:total:number" }
Number PRO380_ReactivePower_L1 "Reactive power L1 [%.2f]" { channel="modbus:data:pro380:ReactivePower:L1:number" }
Number PRO380_ReactivePower_L2 "Reactive power L2 [%.2f]" { channel="modbus:data:pro380:ReactivePower:L2:number" }
Number PRO380_ReactivePower_L3 "Reactive power L3 [%.2f]" { channel="modbus:data:pro380:ReactivePower:L3:number" }
Number PRO380_ApparentPower_Total "Total apparent power [%.2f]" { channel="modbus:data:pro380:TotalApparentPower:total:number" }
Number PRO380_ApparentPower_L1 "Apparent power L1 [%.2f]" { channel="modbus:data:pro380:ApparentPower:L1:number" }
Number PRO380_ApparentPower_L2 "Apparent power L2 [%.2f]" { channel="modbus:data:pro380:ApparentPower:L2:number" }
Number PRO380_ApparentPower_L3 "Apparent power L3 [%.2f]" { channel="modbus:data:pro380:ApparentPower:L3:number" }
Number PRO380_PowerFactor_Total "Total power factor [%.2f]" { channel="modbus:data:pro380:TotalPowerFactor:total:number" }
Number PRO380_PowerFactor_L1 "Power factor L1 [%.2f]" { channel="modbus:data:pro380:PowerFactor:L1:number" }
Number PRO380_PowerFactor_L2 "Power factor L2 [%.2f]" { channel="modbus:data:pro380:PowerFactor:L2:number" }
Number PRO380_PowerFactor_L3 "Power factor L3 [%.2f]" { channel="modbus:data:pro380:PowerFactor:L3:number" }
Number PRO380_ActiveEnergy_Total "Total active energy [%.2f]" { channel="modbus:data:pro380:TotalActiveEnergy:total:number" }
Number PRO380_ActiveEnergy_Total_T1 "Total active energy T1 [%.2f]" { channel="modbus:data:pro380:TotalActiveEnergyT1:total:number" }
Number PRO380_ActiveEnergy_Total_T2 "Total active energy T2 [%.2f]" { channel="modbus:data:pro380:TotalActiveEnergyT2:total:number" }
Number PRO380_ActiveEnergy_L1 "Total active energy L1 [%.2f]" { channel="modbus:data:pro380:ActiveEnergy:L1:number" }
Number PRO380_ActiveEnergy_L2 "Total active energy L2 [%.2f]" { channel="modbus:data:pro380:ActiveEnergy:L1:number" }
Number PRO380_ActiveEnergy_L3 "Total active energy L3 [%.2f]" { channel="modbus:data:pro380:ActiveEnergy:L1:number" }
Number PRO380_ForwardActiveEnergy_Total "Forward active energy total [%.2f]" { channel="modbus:data:pro380:TotalForwardActiveEnergy:total:number" }
Number PRO380_ForwardActiveEnergy_Total_T1 "Forward active energy T1 [%.2f]" { channel="modbus:data:pro380:TotalForwardActiveEnergyT1:total:number" }
Number PRO380_ForwardActiveEnergy_Total_T2 "Forward active energy T2 [%.2f]" { channel="modbus:data:pro380:TotalForwardActiveEnergyT2:total:number" }
Number PRO380_ForwardActiveEnergy_L1 "Forward active energy L1 [%.2f]" { channel="modbus:data:pro380:ForwardActiveEnergy:L1:number" }
Number PRO380_ForwardActiveEnergy_L2 "Forward active energy L2 [%.2f]" { channel="modbus:data:pro380:ForwardActiveEnergy:L2:number" }
Number PRO380_ForwardActiveEnergy_L3 "Forward active energy L3 [%.2f]" { channel="modbus:data:pro380:ForwardActiveEnergy:L3:number" }
Number PRO380_ReverseActiveEnergy_Total "Reverse active energy total [%.2f]" { channel="modbus:data:pro380:TotalReverseActiveEnergy:total:number" }
Number PRO380_ReverseActiveEnergy_Total_T1 "Reverse active energy T1 [%.2f]" { channel="modbus:data:pro380:TotalReverseActiveEnergyT1:total:number" }
Number PRO380_ReverseActiveEnergy_Total_T2 "Reverse active energy T2 [%.2f]" { channel="modbus:data:pro380:TotalReverseActiveEnergyT2:total:number" }
Number PRO380_ReverseActiveEnergy_L1 "Reverse active energy L1 [%.2f]" { channel="modbus:data:pro380:ReverseActiveEnergy:L1:number" }
Number PRO380_ReverseActiveEnergy_L2 "Reverse active energy L2 [%.2f]" { channel="modbus:data:pro380:ReverseActiveEnergy:L2:number" }
Number PRO380_ReverseActiveEnergy_L3 "Reverse active energy L3 [%.2f]" { channel="modbus:data:pro380:ReverseActiveEnergy:L3:number" }
Number PRO380_ReactiveEnergy_Total "Reactive energy total [%.2f]" { channel="modbus:data:pro380:TotalReactiveEnergy:total:number" }
Number PRO380_ReactiveEnergy_Total_T1 "Reactive energy T1 [%.2f]" { channel="modbus:data:pro380:TotalReactiveEnergyT1:total:number" }
Number PRO380_ReactiveEnergy_Total_T2 "Reactive energy T2 [%.2f]" { channel="modbus:data:pro380:TotalReactiveEnergyT2:total:number" }
Number PRO380_ReactiveEnergy_L1 "Reactive energy L1 [%.2f]" { channel="modbus:data:pro380:ReactiveEnergy:L1:number" }
Number PRO380_ReactiveEnergy_L2 "Reactive energy L2 [%.2f]" { channel="modbus:data:pro380:ReactiveEnergy:L2:number" }
Number PRO380_ReactiveEnergy_L3 "Reactive energy L3 [%.2f]" { channel="modbus:data:pro380:ReactiveEnergy:L3:number" }
Number PRO380_ForwardReactiveEnergy_Total "Forward reactive energy total [%.2f]" { channel="modbus:data:pro380:TotalForwardReactiveEnergy:total:number" }
Number PRO380_ForwardReactiveEnergy_Total_T1 "Forward reactive energy T1 [%.2f]" { channel="modbus:data:pro380:TotalForwardReactiveEnergyT1:total:number" }
Number PRO380_ForwardReactiveEnergy_Total_T2 "Forward reactive energy T2 [%.2f]" { channel="modbus:data:pro380:TotalForwardReactiveEnergyT2:total:number" }
Number PRO380_ForwardReactiveEnergy_L1 "Forward reactive energy L1 [%.2f]" { channel="modbus:data:pro380:ForwardReactiveEnergy:L1:number" }
Number PRO380_ForwardReactiveEnergy_L2 "Forward reactive energy L2 [%.2f]" { channel="modbus:data:pro380:ForwardReactiveEnergy:L2:number" }
Number PRO380_ForwardReactiveEnergy_L3 "Forward reactive energy L3 [%.2f]" { channel="modbus:data:pro380:ForwardReactiveEnergy:L3:number" }
Number PRO380_ReverseReactiveEnergy_Total "Reverse reactive energy total [%.2f]" { channel="modbus:data:pro380:TotalReverseReactiveEnergy:total:number" }
Number PRO380_ReverseReactiveEnergy_Total_T1 "Reverse reactive energy T1 [%.2f]" { channel="modbus:data:pro380:TotalReverseReactiveEnergyT1:total:number" }
Number PRO380_ReverseReactiveEnergy_Total_T2 "Reverse reactive energy T2 [%.2f]" { channel="modbus:data:pro380:TotalReverseReactiveEnergyT2:total:number" }
Number PRO380_ReverseReactiveEnergy_L1 "Reverse reactive energy L1 [%.2f]" { channel="modbus:data:pro380:ReverseReactiveEnergy:L1:number" }
Number PRO380_ReverseReactiveEnergy_L2 "Reverse reactive energy L2 [%.2f]" { channel="modbus:data:pro380:ReverseReactiveEnergy:L2:number" }
Number PRO380_ReverseReactiveEnergy_L3 "Reverse reactive energy L3 [%.2f]" { channel="modbus:data:pro380:ReverseReactiveEnergy:L3:number" }
Bridge modbus:tcp:pro380 [ host="192.168.2.13", port=502, id=1 ] {
// Bridge poller metadata [ start=4096, length=4, refresh=100000, type="holding" ] {
// Thing data serialNumber [ readStart="4096", readValueType="int32" ]
// }
// Bridge poller code [ start=4112, length=2, refresh=100000, type="holding" ] {
// Thing data code [ readStart="4112", readValueType="int32" ]
// }
// Bridge poller settings [ start=4120, length=2, refresh=100000, type="holding" ] {
// Thing data modbusId [ readStart="4120.0", readValueType="int8" ]
// }
// Bridge poller baud [ start=4128, length=2, refresh=100000, type="holding" ] {
// Thing data baudRate [ readStart="4128.0", readValueType="int8" ]
// }
// doesn't work
Bridge poller voltage [start=8200, length=12, refresh=1250, type="holding" ] {
Thing data L1 [ readStart="8200", readValueType="float32" ]
Thing data L2 [ readStart="8202", readValueType="float32" ]
Thing data L3 [ readStart="8204", readValueType="float32" ]
}
Bridge poller frequency [start=8224, length=2, refresh=10001, type="holding" ] {
Thing data frequency [ readStart="8224", readValueType="float32" ]
}
Bridge poller current [start=8296, length=10, refresh=12501, type="holding" ] {
Thing data L1 [ readStart="8296", readValueType="float32" ]
Thing data L2 [ readStart="8300", readValueType="float32" ]
Thing data L3 [ readStart="8304", readValueType="float32" ]
}
Bridge poller TotalActivePower [start=8320, length=2, refresh=10002, type="holding" ] {
Thing data total [ readStart="8320", readValueType="float32" ]
}
Bridge poller ActivePower [start=8328, length=10, refresh=10003, type="holding" ] {
Thing data L1 [ readStart="8328", readValueType="float32" ]
Thing data L2 [ readStart="8332", readValueType="float32" ]
Thing data L3 [ readStart="8336", readValueType="float32" ]
}
Bridge poller TotalReactivePower [start=8352, length=2, refresh=10004, type="holding" ] {
Thing data total [ readStart="8352", readValueType="float32" ]
}
Bridge poller ReactivePower [start=8360, length=10, refresh=10005, type="holding" ] {
Thing data L1 [ readStart="8360", readValueType="float32" ]
Thing data L2 [ readStart="8364", readValueType="float32" ]
Thing data L3 [ readStart="8368", readValueType="float32" ]
}
Bridge poller TotalApparentPower [start=8384, length=2, refresh=10006, type="holding" ] {
Thing data total [ readStart="8384", readValueType="float32" ]
}
Bridge poller ApparentPower [start=8392, length=10, refresh=10007, type="holding" ] {
Thing data L1 [ readStart="8392", readValueType="float32" ]
Thing data L2 [ readStart="8396", readValueType="float32" ]
Thing data L3 [ readStart="8400", readValueType="float32" ]
}
Bridge poller TotalPowerFactor [start=8416, length=2, refresh=10008, type="holding" ] {
Thing data total [ readStart="8416", readValueType="float32" ]
}
Bridge poller PowerFactor [start=8424, length=10, refresh=10009, type="holding" ] {
Thing data L1 [ readStart="8424", readValueType="float32" ]
Thing data L2 [ readStart="8428", readValueType="float32" ]
Thing data L3 [ readStart="8432", readValueType="float32" ]
}
Bridge poller TotalActiveEnergy [start=12288, length=2, refresh=10010, type="holding" ] {
Thing data total [ readStart="12288", readValueType="float32" ]
}
/*
Bridge poller TotalActiveEnergyT1 [start=12544, length=2, refresh=10011, type="holding" ] {
Thing data total [ readStart="12544", readValueType="float32" ]
}
Bridge poller TotalActiveEnergyT2 [start=12800, length=2, refresh=10012, type="holding" ] {
Thing data total [ readStart="12800", readValueType="float32" ]
}
Bridge poller ActiveEnergy [start=12296, length=10, refresh=10013, type="holding" ] {
Thing data L1 [ readStart="12296", readValueType="float32" ]
Thing data L2 [ readStart="12300", readValueType="float32" ]
Thing data L3 [ readStart="12304", readValueType="float32" ]
}
Bridge poller TotalForwardActiveEnergy [start=12320, length=2, refresh=10014, type="holding" ] {
Thing data total [ readStart="12320", readValueType="float32" ]
}
Bridge poller TotalForwardActiveEnergyT1 [start=12576, length=2, refresh=10015, type="holding" ] {
Thing data total [ readStart="12576", readValueType="float32" ]
}
Bridge poller TotalForwardActiveEnergyT2 [start=12832, length=2, refresh=10016, type="holding" ] {
Thing data total [ readStart="12832", readValueType="float32" ]
}
Bridge poller ForwardActiveEnergy [start=12328, length=10, refresh=10017, type="holding" ] {
Thing data L1 [ readStart="12328", readValueType="float32" ]
Thing data L2 [ readStart="12332", readValueType="float32" ]
Thing data L3 [ readStart="12336", readValueType="float32" ]
}
Bridge poller TotalReverseActiveEnergy [start=12352, length=2, refresh=10018, type="holding" ] {
Thing data total [ readStart="12352", readValueType="float32" ]
}
Bridge poller TotalReverseActiveEnergyT1 [start=12608, length=2, refresh=10019, type="holding" ] {
Thing data total [ readStart="12608", readValueType="float32" ]
}
Bridge poller TotalReverseActiveEnergyT2 [start=12864, length=2, refresh=10020, type="holding" ] {
Thing data total [ readStart="12864", readValueType="float32" ]
}
Bridge poller ReverseActiveEnergy [start=12360, length=10, refresh=10021, type="holding" ] {
Thing data L1 [ readStart="12360", readValueType="float32" ]
Thing data L2 [ readStart="12364", readValueType="float32" ]
Thing data L3 [ readStart="12368", readValueType="float32" ]
}
Bridge poller TotalReactiveEnergy [start=12384, length=2, refresh=10022, type="holding" ] {
Thing data total [ readStart="12384", readValueType="float32" ]
}
Bridge poller TotalReactiveEnergyT1 [start=12640, length=2, refresh=10023, type="holding" ] {
Thing data total [ readStart="12640", readValueType="float32" ]
}
Bridge poller TotalReactiveEnergyT2 [start=12896, length=2, refresh=10024, type="holding" ] {
Thing data total [ readStart="12896", readValueType="float32" ]
}
Bridge poller ReactiveEnergy [start=12392, length=10, refresh=10025, type="holding" ] {
Thing data L1 [ readStart="12392", readValueType="float32" ]
Thing data L2 [ readStart="12396", readValueType="float32" ]
Thing data L3 [ readStart="12400", readValueType="float32" ]
}
Bridge poller TotalForwardReactiveEnergy [start=12416, length=2, refresh=10026, type="holding" ] {
Thing data total [ readStart="12416", readValueType="float32" ]
}
Bridge poller TotalForwardReactiveEnergyT1 [start=12672, length=2, refresh=10027, type="holding" ] {
Thing data total [ readStart="12672", readValueType="float32" ]
}
Bridge poller TotalForwardReactiveEnergyT2 [start=12928, length=2, refresh=10028, type="holding" ] {
Thing data total [ readStart="12928", readValueType="float32" ]
}
Bridge poller ForwardReactiveEnergy [start=12424, length=10, refresh=10029, type="holding" ] {
Thing data L1 [ readStart="12424", readValueType="float32" ]
Thing data L2 [ readStart="12428", readValueType="float32" ]
Thing data L3 [ readStart="12432", readValueType="float32" ]
}
Bridge poller TotalReverseReactiveEnergy [start=12448, length=2, refresh=10030, type="holding" ] {
Thing data total [ readStart="12448", readValueType="float32" ]
}
Bridge poller TotalReverseReactiveEnergyT1 [start=12704, length=2, refresh=10031, type="holding" ] {
Thing data total [ readStart="12704", readValueType="float32" ]
}
Bridge poller TotalReverseReactiveEnergyT2 [start=12960, length=2, refresh=10032, type="holding" ] {
Thing data total [ readStart="12960", readValueType="float32" ]
}
Bridge poller ReverseReactiveEnergy [start=12456, length=10, refresh=10033, type="holding" ] {
Thing data L1 [ readStart="12456", readValueType="float32" ]
Thing data L2 [ readStart="12460", readValueType="float32" ]
Thing data L3 [ readStart="12464", readValueType="float32" ]
}
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment