basti242 / homeassistant_lg_therma_v_modbus

7 stars 3 forks source link

Description
Basics
How to install

Gateway
Homeassistant
Heatpump

Description

This package is for connecting and controlling an LG Therma V heat pump with Homeassistant via modbus.
This manual is tested with:

Heat pump Tested by
LG Therma V Monoblock 9kW basti242

Basics

The LG Heatpump is only availiable to communicate via RS485/Modbus TCP . The best way to connect them with Homeassistant is a Modbus TCP Gateway. For example a Waveshare Industrial RS232/RS485 to Ethernet Converter.

Converter

With this integration, you are able to controll nearly all settings of your heatpump.

Examples

image image

How to install

Gateway

IMG_4261

Tested Gateways:

Device Type Tested by Link
Waveshare RS485 To ETH tabletop device basti242 Amazon
Waveshare RS485 To ETH (B) top-hat rail fRiMMi83 Amazon

Homeassistant

Download the modbus_lg_heatpump.yaml

Put the file in a folder named integrations. Create the folder if not exist.

image

Add a reference to your integration folder in your configuration.yaml. The homeassistant: line should be still there.

homeassistant:
  packages: !include_dir_named integrations

Set the secrets in your secrets.yaml file

# LG Heatpump
#-----------------------------------------------
lg_heatpump_modbus_host_ip: 10.10.1.xxx #change it to the IP adress from your gateway
lg_heatpump_modbus_port: 502
lg_heatpump_modbus_slave: 1

Restart your Homeassistant

Here is a code example for the UI.

type: entities
entities:
  - entity: input_select.hp_set_operation_mode
    name: Operation Mode
  - entity: input_select.hp_set_control_method
    name: Control Mode
  - entity: input_number.hp_dhw_target_temperatur
    name: Brauchwasser
    icon: kuf:sani_water_hot

should look like this
image

Heatpump

Hardware settings
Wire connection between heatpump and gateway.
Inside the heatpump you will find a connector named "3rd PARTY CONTROLLER". This is the connector for the modbus wire. The wire must be connected to contact A (+) and B(-).

connection_heatpump

Dip switch inside the heatpump Settings for 4er series
On the main bord of the heatpump are 2 dip switch banks, SW1 and SW2. For us are the settings from SW1 important.

SW1 dip 1 - ON --> The heat pump is set as a Modbus slave device.
SW1 dip 2 - ON --> The heat pump is using a open protokoll.

image

Software settings
It is also required to set some options on the inside LG head unit (LG RS3).

image

  1. Navigate to Settings
  2. ...

image

That’s it! You can now control the heat pump from Homeassistant.