Hello community,
I have a problem with modbus connected to LG Therma V heat pump. Everything was working just fine but after latest update I cannot read one of the sensors defined in modbus config file anymore. This sensor monitors outlet water temperature.
After reviewing config I realized that same register is used under the climate entity to show the temp from heating pump. Climate working fine but sensor cannot access registar anymore. If I disable climate, sensor starts to work normal again!
As you can see above they are using same register address on the same slave address.
Anyone else has this issue?
I was reading release notes for latest update and noticed that something has been changed for modbus module.
I will not use any automation for this. I will rather stay on prevous version for HA.
Using input register for temp in climate definition for modbus is very clear. With latest update if you want to have sensor for the same thing you will need to use automation…
Anyway same goes for hvac_onoff_register in climate definition which is hardcoded for holding register in HA. As you probably know in LG heat pumps, on/off state is stored in coil register so you cannot use hvac_onoff_register from climate to control on/off state. I had to create separate toggle to power on/off heat pump…
Surely the issue here is terminology. You dont need an automation but a template sensor.
Create a template sensor to use the value of current temp from the climate entity and add a state class of measurement to it. You will then get the stats you are looking for without duplicating the modbus address reading.
Just to be clear, both automation and templates will work.
I have both in my production system, for 2 different purposes…
templates are simplest to use for statistics
automation is triggered by every change, and allows to e.g. remove “unavailable” which happens during reconnect, which avoids “holes” in the statistic.
Thank you all for your support and solutions for this topic.
I am using template to create sensor and it is working just fine for me! This is a basic temp sensor used on several cards to provide outlet temp on a heatpump.
I have another MODBUS problem, after this update my SMA inverter is gone, no values are pulled from it, no idea how to solve this or what is being asked from me to get it running again.
Read several posts about it, but I am stuck.