JanM321 / esphome-lg-controller

Wired controller for LG HVAC units using ESPHome and ESP32
BSD Zero Clause License
93 stars 22 forks source link

Support connecting multiple controllers #34

Closed JanM321 closed 7 months ago

JanM321 commented 7 months ago

The ESPHome controller currently assumes there's a single wired controller connected to the AC and it ignores messages on the bus from other controllers, even though the LG controllers support having one controller as 'master' and another as 'slave'.

Because the ESPHome controller is already acting as 'master' controller, the easiest way to fix this is to start processing messages from 'slave' controllers instead of ignoring them. This would let us connect a second LG controller in 'slave' mode.

The next step is to add an option to put the ESPHome controller itself in 'slave' mode. In this mode it would send 'slave' messages and respond to 'master' messages.

I have to look into this in more detail to see how my LG controllers behave when working with other controllers. I expect this to be straight-forward, but I want to see how the LG controllers handle things like room temperature etc.

JanM321 commented 7 months ago

I added a YAML option to configure the ESPHome controller itself as 'slave' and the controller will now process messages from other controllers.

I don't use this with my own units so there might be some issues. Feedback welcome.