Mastering Modbus: Heat Pump Integration with Home Assistant!

18,076
0
Published 2023-08-20
Previously I integrated my heat pump with home assistant via WiFi and LGs ThinQ API, in this video we take the home assistant integration to another level with a direct Modbus integration.

Waveshare RS485 to RJ45 Ethernet Converter Module - amzn.to/3QOgo80
DIN Rail Junction Box - amzn.to/47BBYlT

The modbus YAML file is available here: rodmcbain.com/mastering-modbus-heat-pump-integrati…

Waveshare page with a link to the vircom app - www.waveshare.com/wiki/RS485_TO_POE_ETH_(B)

If you're considering signing up to Octopus Energy use this link to get a £50 account credit ( I get one as well ) share.octopus.energy/gray-wren-17

00:00 Intro
01:36 Modbus module heat pump connection
03:36 Din rail and Waveshare module install
06:53 Waveshare module setup
08:43 Modbus Intro and Home Assistant setup
16:56 Home assistant dashboard

All Comments (21)
  • @normanboyes4983
    Rod - impressive stuff and you are clearly in your element.😉👍
  • @luijt1
    Thank for the good explanation, i was try to connect the LG to HA this helps a lot.
  • @damianm.8159
    Thanks for this. I was able to add Rotenso heat pump (midea m-thermal clone) to home assistant.
  • @elfrisky
    Hi Rod, it worked like a charm first try in my LG ThermaV MonoBloc HM091M.U43 (adding these details so it shows in Google searches to help more people). I am using an Elfin-EW11 and can confirm it didn't work until I configured the same "Modbus TCP" equivalent to your Waveshare. I had been previously trying to plug it into my NodeRed setup instead of HA but couldn't make it happen there so I eventually gave up and went your way. I have also wired a SDM230-Modbus in the feeding line of the HVAC so I also get the live consumption too. I would highly recommend you to do it, as you can just parallel the RS485 line of the Waveshare, give it address #2 and plug it into your HA in less than 10'. There should be a way to integrate that SDM backwards into the LG via Modbus directly but I haven't bothered "yet". Again Rod, great work and many thanks!
  • @LeszekMzyk
    Great stuff! I've only connected my heat pump via thinq app, as I don't even have a way of doing a wired ethernet connection to my pump... plus it's fast and easy 😅 But definitely also going to jump into the modbus to have it all local Thanks!
  • @SanneHoekstra
    Great video!! For your biggest disappointment: the flow rate; you could install an additional flow rate sensor and use that to measure your effective COP. Thanks a lot for your inspiration.
  • @Phoinix08
    Wow! This helps a lot. Thanks Rod! Got a PW21 Serial Server RS485 to Serial WiFi/Ethernet Server IP. Needed the Wifi and AC operation with 110-220 Volts. Have a UTP CAT6 cable running form my pump to my appartment electrical board (in which there is wifi coverage). This cable will be used for data transfer (Modbus A/B lines). Cable length is about 20 meters, RS485 supports the length, lets see... Need to mount the PW21 device in the electrical board, and make the hardware connections. Then configure, and integrate with homeassistant. Will update this comment with the results
  • @user-ur9uf8yj4i
    You are so smart!!! First try and it worked 😊 Plus: I can not speak English 😂
  • @NailenBarkins
    Hi @RodMcBain I have another question. In the video, you show the register table (Holding Register (0x03). Register number 30013 is Outdoor Air temp. In the modbus.yaml file you have this for the item hp_outdoor_air_temp input_type: input Why is there an input? Why isn't there a holdig? I don't understand this. Thank you for the explanation.
  • @zsoltreti7921
    Hi! Great video!! Can the original factory remote display still be used? Or should it be eliminated? I don't use the measurement function. Is it enough to set the parameters from the home assistant, or do you have to take over the automatic operations as well? Will there be a video of the operation? Thx
  • @dennisgren8069
    Nice Work! Im trying to set up homeassistant aswell but i have CTC zenith 360 With a CTC ecoair 610m. But cant get it setup with my waveshare module. And aswell with a heatmeter ”Itron CF ECHO II Qp 1.5” with a m-bus to modbus converter. But i cant get it to Work with yaml file. Its so frustrating. This video helps alot! But not enough in my case, keep the Work up! :)
  • Hi Rod, thank you very much for your Waveshare Rs485 Video. What did you find out to regulate the Heat pump for minimum consumption and not falling into the start stop trap. I have a 16kW HP .U33 feeding a 1500 l buffer tank. The power of the HP is ok for the whole house but I am using just one floor. So I need less power but I could not find out how to limit the max. power or regulate the compressor. May be you or someone in the community can help with your experience. Thank you!
  • @markdressel3311
    Thanks for sharing your knowledge, it is invaluable to us beginners. A question - can the heat pumps normal controller be used at the same time as you are controlling things through modbus? In other words, can a beginner with a long learning curve, develop the modbus controls over time, and use the heat pumps own controller until the modbus controls are finished? Thanks.
  • @MortenEghj
    Great video, as a feedback lower the bagground sound a bit for the next videos. It is almost the same level as your voice.
  • @dougle03
    You really don't need to blur out internal cat 3 addresses, we know it'll either be 10. or 192. or 172. As you're a network man I'm sure that me knowing the actual assignments won't help me in the slightest gaining access to your heat pump... If I was to gain access to your network a simple AngryIP network search would soon tell me what IP your WS module is on... lol - Other than that a good video...
  • @MichelG-vm9qu
    Hi Rod, excellent video! No blabla just the important facts. I set up everything right the way you explained it. As a newbie in HA your explanation made it possible. If I look in the list of entities all hp entities show a message "this entity has no unique id". What did I do wrong? Regards, Michael
  • @megasquirtit
    Nice video. After seeing it i did order the waveshare device. Bit i have trouble connecting my heatpump. I testet the modbus connection with modbus rtu direct to a bms controller and works fine. But with the waveshare device and modbus tcp to home assistant i get no connection. What port and ip adresse do you use in the destination part off the webinterface in the waveshare device? And did you have to open ports in your router? Thanks🙏🏼😃
  • @makoesim
    thanks a lot for the great video, I have a LG VRF System with a concealed indoor unit which it is controlled by a wired remote controller, is it possible to integrate it in to home assistant by this way?
  • Hello Interesting and well done video. would this work with a modbus RTU RSA 485 and control a fan coil?