I am currently trying to get some measurements from my Novelan heatpump done with openhab, influxdb and grafana.
All usual temperature values are being read out from Novelan and stored successfully in influxdb, however I can not get useful data from the following items:
state
extended_state
massflow
This is what is stored in influxdb:
state:
select * from “HeatPump_State”
1544126940057000000 Wärmepumpe läuft: 00:00:00
extended_state
select * from “HeatPump_State_Ext”
1544127060100000000 Heizbetrieb: 00:00:00
massflow
select * from “HeatPump_Massflow”
1544127120052000000 0
Bear in mind that the results above are logged every minute.
Here is my items file:
Number HeatPump_Temperature_Outside "Wärmepumpe Außentemperatur [%.1f °C]" <temperature> (gHeatpump) { novelanheatpump="temperature_outside" }
Number HeatPump_Temperature_Supplay "Vorlauf [%.1f °C]" <temperature> (gHeatpump) { novelanheatpump="temperature_supplay" }
Number HeatPump_Temperature_Return "Rücklauf [%.1f °C]" <temperature> (gHeatpump) { novelanheatpump="temperature_return" }
Number HeatPump_Temperature_Reference_Return "Rücklauf Soll [%.1f °C]" <temperature> (gHeatpump) { novelanheatpump="temperature_reference_return" }
Number HeatPump_Temperature_Servicewater "Warmwasser Ist [%.1f °C]" <temperature> (gHeatpump) { novelanheatpump="temperature_servicewater" }
Number HeatPump_Temperature_Reference_Servicewater "Warmwasser Soll [%.1f °C]" <temperature> (gHeatpump) { novelanheatpump="temperature_servicewater_reference" }
String HeatPump_State "Status [%s]" <temperature> (gHeatpump) { novelanheatpump="state" }
String HeatPump_State_Ext "Status [%s]" <temperature> (gHeatpump) { novelanheatpump="extended_state" }
Number HeatPump_Massflow "Massenstrom [%.1f L/h]" <energy> (gHeatpump) { novelanheatpump="massflow" }
Tip: You don’t really need anything more than everyChange to persist. That’s enough. everyMinute is redundant if you capture everyChange.
Imagine the following scenario:
T=0 Temp Item changes at Time=0 from NULL to 20 °C (at OH2 startup)
T=0 Change is persisted. Value of 20 °C enters in InfluxDB
T=1 One min after T=0 you persist again the same value (20 °C)
T=2 Two mins after T=0 you persist again the same value (20 °C)
T=3 Temp Item changes at from 20 °C to 22 °C. Change is persisted. Value of 22 °C enters in InfluxDB
T=4 One min after T=3 you persist again the same value (22 °C)
…so forth
Result: You will have “bogus” data in your Database since when T=1, T=2 & T=4: you don’t have an actual reading of the Temperature… you just persist again and again the same value that is stored in the Item state.
Also: If the Temp sensor goes AWOL you will still persist every minute the temperature and you will think that all is ok
I got this tip from @rlkoshak. I need to find the original post where he taught me this
edit: Found it here
thanks for your swift response. The shown results are just an example. I have plenty of lines with the same value. I will first of all follow your hints and see if this changes anything.
Why I did the everyMinute presistence? I thought if nothing changes but I still want a clean and correct line in grafana, then maybe grafana would destroy the layout of the graph. I hope you understand what I mean.
This is your problem.
The Item state is not getting updated from the binding
You need to troubleshoot the binding config/connection
Go over Novelan/Luxtronic Heat Pump - Bindings | openHAB again and maybe put the binding in DEBUG log level to see why you are not getting any readings for these 3 Items
Same here. The time stamp doesn’t get filled and it is always in “Heizbetrieb”. Could it be a SW issue with the Novelan. I will try to get through the binding description but jI did exactly the same as for the working ones like supplay and return.
I don’t know if I can help you any more
i don’t use this specific binding and I don’t know what could be the root-cause of your problem (3 out of 9 Items not getting state updates from the binding…)
I found some info that the massflow and many others require firmware > 1.3
another crazy idea:
since these 3 Items are the last ones in your Items file, try the following:
remove them from the current items file, create a new items file and place these 3 alone there making sure they are typed correctly.
Maybe a strange character or something is creating a problem with your existing file.
that was a very good idea. Tried to outsource it to another file. Removed the “umlauts” as well but nothing helps. Still all set to 0. Will follow your advice and open an issue at github.