I’m struggling to integrate my heat pump to homeassistant via modbus.
HA runs on a raspberry pi with a modbus to usb adapter connected.
I can read the registers fine and I can write to coils, but writing to registers is not working. maybe someone has any idea.
Here’s my configuration:
→ the sensors in my configuration.yaml work, this is an example:
I would love to help you with this, but currently the HM.071 is being installed so not yet possible to test… or make also not yet an ModBus print in my machine, so my question for you is what Modbus print is installed in youre WP? there seem to be 4 types… (PMNFP14xx??)
My idea was to connect the ModBus Wires to an Wemos D1 wich receives/ask the Modbus in
I orderd this via Enri.nl
(githubhttps://github.com/aiolos/ESPHome-config for programm info…
My skills are more an combi of software/hardware, but programming knowledge backup is availble (via Son
I hope to have fixed this with 1 month…(mostly depending on the Modbus interface (PMNFP14A1 or else…)
I would like to know if you have already managed to set up the integration with the HP. I already have an RS485 to USB connection. but there I get a “Cleanup recv buffer before send:” error.
So I was wondering if your setup works?
The only bug that’s still unresolved is this behaviour:
For now it’s low priority for me since it doesn’t affect the functionality, but eventually I would like to fix it. Unfortunately I don’t see a way to add a dummy sensor for that, because the climate integration directly accesses the modbus registers, and there’s no obvious way to use a “normal” sensor instead.
Ha die Nick Opperdoes, Opperdoes??? Das om de hoek
Yes I finally found the "bug/… Not only dip switch 1 has to be set also number 2… found out by trial and error… :-\ It says Modbus on/off switch 1 , and dedicatd or genral on dipswitch 2 … the seem to be reserve explained in the PDF… now bugging with al the possibilities… … but something with time…
I will upload part of the pdf and print later!
where do you get the modbus addresses you used? on the Therma V manual they are the ones in the screen shot you posted. I’ve tried using your logs but I’m only getting the 12 in the outside temperature recognized. The others don’t work.
All of the values are stated in the manual.
→ You have to substract 1 of the addresses in the manual for HA
→ holding and input registers are swapped in the manual
hey peter, yes ik woon om de hoek kom een keer een bakkie doen.
I found out something als with the trail and error.i had to set dip 1 to on (slave) in the the SW2 and also on the SW1. only then it started sending the information back over the modbus. this worked for me for 3 weeks after that it stopt working. although i did not change anything.
when i use the same dip swith settings as you did i get errors.
Hi, I copied your code, I also tried the numbers 0 to 27 as input and it gives me different values that I can’t decipher. The switches don’t work and as sensors I can only read two exact temperatures, which update correctly. What you read from the heat pump display. Can you help me solve the problem? I need to turn the heat and hot water on and off and change the target temperatures. Thank you
The dip switches for the modbus in correctly set: SW1: dip1 ON, SW2: dip 1 ON. The dongle is yulianrui adapter convertitore usb rs485/422. I tried entering the input registers from 0 to 30 and it gives me values for the registers from 9 to 27. I observed the behavior of the pump from the display and of all the values only 2 correspond: the hot water temperature and the temperature in exit.
name: “wp_outlet_temp24”
scan_interval: 10
address: 24
slave: 1
input_type: input
scale: 0.1
device_class: temperature
unit_of_measurement: ‘°C’
the switches and climate controls do not control the heat pump. what can I do? can you help me to solve the problem?
LET OP hij moet dus MODBUS ondersteunen, ik had eerst de verkeerd
kost ff meer waarschijnlijk, en er is waarschijnlijk nog een goedkoper alternatief, maar deze werkt…
(na een hoop geklooi met een Wemos D1…
uren en avonden klooien verder had ik opeens beeld en geluid
in de PDF van de LG die ik had staat dan 0004 maar dat is dan adres 3… *duh…)
toen nog een tijdje fine tunnen en nu werkt het naar behoren
probably costs more, and there is probably another cheaper alternative, but this one works…
(after a lot of fiddling with a Wemos D1…
hours and evenings of messing around I suddenly had image and sound
in the PDF of the LG that I had it says 0004 but that is address 3… *duh…)
some fine-tunning afterwards and it works wel
code in configuration.yaml
modbus:
name: “hub1”
close_comm_on_error: true
delay: 1
timeout: 1
retries: 5
retry_on_empty: true
message_wait_milliseconds: 200
host: 192.168.xxx.xxx <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< eigen IP invullen uiteraard
just for Others: I have chcecked with LG. they said modbus is not supported for all heating pumps like NK3(Therma V) which I have. for me they have software bug when modbus works for some registers only, there is also full configuration in service manual… due to fact only some people do integration for modbus… i think they did ignore this issue…