I have a Kamstrup Multical 402 and wanted to monitor the Heat Energy in domoticz.
To accomplish this i've found a script, posted on this forum, but I can't get it to work fully.
When I execute the script several parameter values are defined as "None None".
Code: Select all
=======================================================================================
Kamstrup M402 serial optical data ontvangen op: 2018-03-17 16:27:24
Meter fabrikant/type: Kamstrup M402
---------------------------------------------------------------------------------------
MaxPower_Y 21.1 kW
MinPowerDate_Y None None
MinPower_Y 0.0 kW
Volume None None
Temp1 57.9 C
Temp1xm3 None None
Flow 14.0 l/h
MaxFlow_M None None
MinFlowDate_M 180301.0 yy:mm:dd
MinFlow_M None None
MaxPowerDate_M 180307.0 yy:mm:dd
MaxPower_M None None
MinPowerDate_M 180301.0 yy:mm:dd
MinPower_M None None
AvgTemp1_Y 74.0 C
AvgTemp2_Y None None
AvgTemp1_M 73.0 C
AvgTemp2_M None None
Temp2 56.21 C
Tempdiff None None
Power 0.0 kW
Heat Energy (E1) None None
HourCounter 44310.0 h
Temp2xm3 None None
Infoevent 0.0
MaxFlowDate_M None None
MaxFlowDate_Y 180220.0 yy:mm:dd
MaxFlow_Y None None
MinFlowDate_Y 180115.0 yy:mm:dd
MinFlow_Y None None
MaxPowerDate_Y 180220.0 yy:mm:dd
---------------------------------------------------------------------------------------
Einde Dataontvangst: 2018-03-17 16:27:24
=======================================================================================
It seems like some kind of limit (array to small?) but the code (reading the IR information) for me is to complex to understand/debug.
Code: Select all
kamstrup_402_var = { # Decimal Number in Command
0x003C: "Heat Energy (E1)", #60
0x0056: "Temp 1", #86
0x0057: "Temp 2", #87
0x004A: "Flow", #74
0x0044: "Volume", #68
}
Code: Select all
=======================================================================================
Kamstrup Multical 402 serial optical data received: 2018-03-17 16:09:26
Meter vendor/type: Kamstrup M402
---------------------------------------------------------------------------------------
Volume 1303.9 m3
Flow None None
Heat Energy (E1) 185.4 Gj
Temp 1 57.61 C
Temp 2 None None
---------------------------------------------------------------------------------------
End data received: 2018-03-17 16:09:26
=======================================================================================