Modbus Intensis LG-RC-MBS-1 // ESP32 on HA

Okay I will try, for the sensors, to get the status of the compressor i wrote this :

  - platform: modbus_controller
    modbus_controller_id: modbus_device
    name: "Compressor status"
    id: compressor_status
    register_type: holding
    address: 0x0035
    value_type: U_WORD

This works but return 0, 1, 2, 3.

0 : Off
1 : To Off
2 : To On
3 : On

I can’t find the template to return “Off, To Off, To On, On” text instead of numbers

I tried :

    optionsmap:
      0: "Off" 
      1: "To Off" 
      2: "To On"
      3: "On"

You need some template text sensor for that. Is it really important at the moment?

Thanks
I am trying to fix what works, but I haven’t yet figured out how to send commands to choose the operating mode and the on/off state.

Try with modbus number component, should work for both. Keep on eye the log to see what esphome is actually requesting. These modbus write components have almost no documentation.

Something like:

number:
  - platform: modbus_controller
    modbus_controller_id: modbus_device
    name: "Mode"
    id: ac_mode
    register_type: holding
    address: 0x0001
    value_type: U_WORD
    min_value: 0
    max_value: 4

It seems to work!

Screenshot 2024-12-29 at 9.35.58 PM

To integrate all of this with climate component, did I need to create a template ?

I don’t know, I like to keep everything minimalistic and I hate fancy gauges etc… :slightly_smiling_face:
By the way, if you prefer number instead of stupid slider, you can use:
mode: box
on number component.

Yes, you’re right. Moreover, I will apply the climate platform to the room thermostats instead, as I won’t have much use for it on the heating system.
I just need to change the display of the values to text, that will be more meaningful.

Now that you have working setup, it’s easy to experiment…
Have a look at the modbus controller text sensor.

Yeah, thanks a lot :slight_smile: