LG Therma V heat pump modbus control

LET OP hij moet dus MODBUS ondersteunen, ik had eerst de verkeerd :frowning:
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 :slightly_smiling_face:
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

take the one that support modbus


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 :slightly_smiling_face:
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

    port: 502

    type: tcp

    binary_sensors:

    • name: wwp_10001_Status Waterstroming

      slave: 7

      address: 0

      device_class: running

      input_type: discrete_input

      scan_interval: 10

    • name: wwp_10002_Status Waterpomp

      slave: 7

      address: 1

      device_class: running

      input_type: discrete_input

      scan_interval: 10

    • name: wwp_10003_Status Waterpomp Extern

      slave: 7

      address: 2

      device_class: running

      input_type: discrete_input

      scan_interval: 10

    • name: wwp_10004_Status Compressor

      slave: 7

      address: 3

      device_class: running

      input_type: discrete_input

      scan_interval: 10

    • name: wwp_10005_Status Ontdooien

      slave: 7

      address: 4

      device_class: running

      input_type: discrete_input

      scan_interval: 10

    • name: wwp_10008_Status Stiltemodus

      slave: 7

      address: 7

      device_class: running

      input_type: discrete_input

      scan_interval: 10

    sensors:

    • name: wwp_30003_invoer_temp

      scan_interval: 10

      slave: 7

      address: 2

      input_type: input

      scale: 0.1

      device_class: temperature

      unit_of_measurement: °C

    • name: wwp_30004_uitvoer_temp

      scan_interval: 10

      slave: 7

      address: 3

      input_type: input

      scale: 0.1

      device_class: temperature

      unit_of_measurement: °C

    • name: wwp_30008_kamerlucht_temp

      scan_interval: 10

      slave: 7

      address: 7

      input_type: input

      scale: 0.1

      device_class: temperature

      unit_of_measurement: °C

    • name: wwp_30013_buitenluchttemp

      scan_interval: 10

      slave: 7

      address: 12

      input_type: input

      scale: 0.1

      device_class: temperature

      unit_of_measurement: °C

    switches:

    • name: wwp_00001_wp_aan_uit

      slave: 7

      address: 0

      write_type: coil

      command_on: 1

      command_off: 0

      verify:

      input_type: coil

      address: 0

      state_on: 1

      state_off: 0

    • name: wwp_00003_stilte_modus

      slave: 7

      address: 2

      write_type: coil

      command_on: 1

      command_off: 0

      verify:

      input_type: coil

      address: 2

      state_on: 1

      state_off: 0

    climates:

    • name: wwp_40003_doel_temperatuur

      slave: 7

      address: 2

      input_type: input

      count: 1

      max_temp: 65

      min_temp: 20

      offset: 0

      precision: 0

      scale: 0.1

      target_temp_register: 2

      temp_step: 5

      temperature_unit: C

      hvac_mode_register:

      address: 0

      values:

      state_cool: 0
      
      state_heat: 4