---
title: Integration with LG airconditioner by LG PDRYCB500 module
description: The purpose of this article is to present how to integrate the LG air conditioner by the PDRYCB500 module with the Grenton Smart Home system via the Modbus RTU communication protocol. The documentatio
---

[Skip to content](https://knowledgebase.grenton.com/en/integration-with-lg-airconditioner-by-lg-pdrycb500-module#main-content)

- [English](https://knowledgebase.grenton.com/en/integration-with-lg-airconditioner-by-lg-pdrycb500-module)
- [Polski](https://knowledgebase.grenton.com/pl/integracja-z-klimatyzatorem-lg-za-pomoca-modulu-lg-pdrycb500)

English

Show submenu for translations

[New ticket](https://knowledgebase.grenton.com/en/kb-tickets/new?hsLang=en) [Customer portal](https://knowledgebase.grenton.com/wsparcie?hsLang=en)

![Logo\_Grenton\_Main\_2020\_RGB\_v1.0-1.png\]](https://knowledgebase.grenton.com/hs-fs/hubfs/Logo_Grenton_Main_2020_RGB_v1.0-1.png?width=200&height=94&name=Logo_Grenton_Main_2020_RGB_v1.0-1.png)

Open main navigation

Close main navigation

- - [English](https://knowledgebase.grenton.com/en/integration-with-lg-airconditioner-by-lg-pdrycb500-module)
    - [Polski](https://knowledgebase.grenton.com/pl/integracja-z-klimatyzatorem-lg-za-pomoca-modulu-lg-pdrycb500)

  English
  
  Show submenu for translations
- [New ticket](https://knowledgebase.grenton.com/en/kb-tickets/new)
- [Customer portal](https://knowledgebase.grenton.com/wsparcie)
- [Trainings](https://www.grenton.com/cooperation/trainings.html)

[Trainings](https://www.grenton.com/cooperation/trainings.html)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://knowledgebase.grenton.com/en?hsLang=en)
2. [Manuals](https://knowledgebase.grenton.com/en/manuals?hsLang=en)
3. [Gate Modbus](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-modbus)

# Integration with LG airconditioner by LG PDRYCB500 module

The purpose of this article is to present how to integrate the LG air conditioner by the PDRYCB500 module with the Grenton Smart Home system via the Modbus RTU communication protocol.

The documentation is available [here](https://knowledgebase.grenton.com/hubfs/Support/SB_DryContact_PDRYCB500.pdf?hsLang=en).

This integration allows us, e.g:

- Turning on / off the air conditioner
- Airflow rate control
- Changing the set temperature

To realize integration, we need:

- Gate Modbus (named ***Gate\_Modbus***)
- LG air conditioner
- LG PDRYCB500 module

 

**Creating user features:**

1\. Double-click the ModbusName to enter the module settings

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-23-2023-12-07-26-0904-PM.png)

Go to the "User Features" tab and create features:

- AC\_BEDROOM\_FAN\_SPEED\_LOW Initial value: 0 Type: number
- AC\_BEDROOM\_FAN\_SPEED\_MEDIUM Initial value: 0 Type: number
- AC\_BEDROOM\_FAN\_SPEED\_HIGH Initial value: 0 Type: number
- AC\_BEDROOM\_MODE\_AUTO Initial value: 0 Type: number
- AC\_BEDROOM\_MODE\_VENT  Initial value: 0 Type: number
- AC\_BEDROOM\_MODE\_COLD Initial value: 0 Type: number
- AC\_BEDROOM\_MODE\_WARM Initial value: 0 Type: number

 

**Configuration of Modbus virtual objects**

The integration has been prepared for a device with the following Modbus communication parameters:

- Device adress: 5
- Baud rate: 9600
- Stop bits: 1
- Parity: None

 

1\. Create a *Modbus* virtual object. 

![](https://knowledgebase.grenton.com/hubfs/image-png-May-02-2023-12-29-47-5120-PM.png)

 

2\. For the settings of the converter as above - complete the values of the *Embedded features* of virtual objects as follows:

\* Device state:![](https://knowledgebase.grenton.com/hubfs/image-png-Aug-31-2023-08-30-07-8830-AM.png)

\* Mode: ![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-05-2023-11-39-03-4252-AM.png)

\* Read temperature:![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-05-2023-11-40-23-6997-AM.png)

\* Set temperature:![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-05-2023-11-40-56-5111-AM.png)

\* Fan speed:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-05-2023-11-41-33-6824-AM.png)

3\. Add script *sAC\_BEDROOM\_CHANGE\_TEMP*:

```
if(param==1 and MODBUS->AC_BEDROOM_TEMPERATURE_SET->Value>18) thenMODBUS->AC_BEDROOM_TEMPERATURE_SET->SetValue(MODBUS->AC_BEDROOM_TEMPERATURE_SET->Value-1)endif(param==2 and MODBUS->AC_BEDROOM_TEMPERATURE_SET->Value<28) thenMODBUS->AC_BEDROOM_TEMPERATURE_SET->SetValue(MODBUS->AC_BEDROOM_TEMPERATURE_SET->Value+1)end
```

Add parameter to the above script. Parameter should have name *param*, type *number* and default value *0*.

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-23-2023-08-04-14-2585-AM.png)

4\. Add script *sAC\_BEDROOM\_MODE:*

```
if MODBUS->AC_BEDROOM_MODE->RegisterValue == 0 thenMODBUS->AC_BEDROOM_MODE_AUTO = 0MODBUS->AC_BEDROOM_MODE_VENT = 0MODBUS->AC_BEDROOM_MODE_COLD = 1MODBUS->AC_BEDROOM_MODE_WARM = 0endif MODBUS->AC_BEDROOM_MODE->RegisterValue == 2 thenMODBUS->AC_BEDROOM_MODE_AUTO = 0MODBUS->AC_BEDROOM_MODE_VENT = 1MODBUS->AC_BEDROOM_MODE_COLD = 0MODBUS->AC_BEDROOM_MODE_WARM = 0endif MODBUS->AC_BEDROOM_MODE->RegisterValue == 3 thenMODBUS->AC_BEDROOM_MODE_AUTO = 1MODBUS->AC_BEDROOM_MODE_VENT = 0MODBUS->AC_BEDROOM_MODE_COLD = 0MODBUS->AC_BEDROOM_MODE_WARM = 0endif MODBUS->AC_BEDROOM_MODE->RegisterValue == 4 thenMODBUS->AC_BEDROOM_MODE_AUTO = 0MODBUS->AC_BEDROOM_MODE_VENT = 0MODBUS->AC_BEDROOM_MODE_COLD = 0MODBUS->AC_BEDROOM_MODE_WARM = 1end
```

Assign *sAC\_BEDROOM\_MODE* script to the *OnChange* Event in *AC\_BEDROOM\_MODE* object: ![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-22-2023-07-30-19-6616-AM.png)

5\. Add script *sAC\_BEDROOM\_FAN\_SPEED:*

```
if MODBUS->AC_BEDROOM_FAN_SPEED->RegisterValue == 1 thenMODBUS->AC_BEDROOM_FAN_SPEED_LOW = 1MODBUS->AC_BEDROOM_FAN_SPEED_MEDIUM = 0MODBUS->AC_BEDROOM_FAN_SPEED_HIGH = 0endif MODBUS->AC_BEDROOM_FAN_SPEED->RegisterValue == 2 thenMODBUS->AC_BEDROOM_FAN_SPEED_LOW = 0MODBUS->AC_BEDROOM_FAN_SPEED_MEDIUM = 1MODBUS->AC_BEDROOM_FAN_SPEED_HIGH = 0endif MODBUS->AC_BEDROOM_FAN_SPEED->RegisterValue == 3 thenMODBUS->AC_BEDROOM_FAN_SPEED_LOW = 0MODBUS->AC_BEDROOM_FAN_SPEED_MEDIUM = 0MODBUS->AC_BEDROOM_FAN_SPEED_HIGH = 1end
```

Assign *sAC\_BEDROOM\_FAN\_SPEED* script to the *OnChange* Event in *AC\_BEDROOM\_FAN\_SPEED* object:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-22-2023-07-42-35-1021-AM.png)

6\. Send the configuration to the Gate Modbus module.

 

**Creating the myGrenton interface to control air conditioning**

1\. Create an ON\_OFF widget and configure it as follows:  
![](https://knowledgebase.grenton.com/hubfs/image-png-Oct-05-2023-09-18-53-1523-AM.png)

2\. Create an VALUE\_DOUBLE widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-21-2023-06-29-55-5352-AM.png)  
3\. Create an SCENE\_DOUBLE widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-21-2023-06-32-31-7228-AM.png)  
4\. Create an HEADER widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-21-2023-06-36-44-3546-AM.png)  
5\. Create an ONOFF\_DOUBLE widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-21-2023-06-45-37-6907-AM.png)  
6\. Create an ONOFF\_DOUBLE widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-21-2023-06-46-19-0782-AM.png)  
7.Create an HEADER widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-21-2023-06-46-52-7241-AM.png)  
8.Create an ONOFF widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-22-2023-07-45-19-7174-AM.png)  
9\. Create an ONOFF widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-22-2023-07-45-35-3125-AM.png)  
10\. Create an ONOFF widget and configure it as follows:

![](https://knowledgebase.grenton.com/hubfs/image-png-Jun-22-2023-07-45-48-4854-AM.png)

After sending the interface to the phone, it will look like this:

![](https://knowledgebase.grenton.com/hs-fs/hubfs/Screenshot_2023-06-22-09-55-23-996_com-grenton-mygrenton-jpg.jpeg?width=344&height=746&name=Screenshot_2023-06-22-09-55-23-996_com-grenton-mygrenton-jpg.jpeg)

- [Installation guidelines](https://knowledgebase.grenton.com/en/installation-guidelines?hsLang=en#main-content)

    - [How to Prepare Electrical Installation](https://knowledgebase.grenton.com/en/installation-guidelines?hsLang=en#how-to-prepare-electrical-installation)
- [Reference devices](https://knowledgebase.grenton.com/en/reference-devices?hsLang=en#main-content)

    - [Integrated Device](https://knowledgebase.grenton.com/en/reference-devices?hsLang=en#integrated-device)
- [Most Common Mistakes](https://knowledgebase.grenton.com/en/most-common-mistakes?hsLang=en)
- [Electrical Installation](https://knowledgebase.grenton.com/en/electrical-installation?hsLang=en)
- [Manuals](https://knowledgebase.grenton.com/en/manuals?hsLang=en#main-content)

    - [Gate Modbus](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-modbus)
    - [Training](https://knowledgebase.grenton.com/en/manuals?hsLang=en#training)
    - [SW Applications](https://knowledgebase.grenton.com/en/manuals?hsLang=en#sw-applications)
    - [Gate HTTP](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-http)
    - [Smart Panel](https://knowledgebase.grenton.com/en/manuals?hsLang=en#smart-panel)
    - [Configuration](https://knowledgebase.grenton.com/en/manuals?hsLang=en#configuration)
    - [myGrenton interfaces](https://knowledgebase.grenton.com/en/manuals?hsLang=en#mygrenton-interfaces)
    - [Virtual Objects](https://knowledgebase.grenton.com/en/manuals?hsLang=en#virtual-objects)
    - [Gate Alarm](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-alarm)
- [Intercom](https://knowledgebase.grenton.com/en/intercom?hsLang=en)
- [FAQ](https://knowledgebase.grenton.com/en/faq?hsLang=en#main-content)

    - [FAQ](https://knowledgebase.grenton.com/en/faq?hsLang=en#faq)
    - [About Grenton](https://knowledgebase.grenton.com/en/faq?hsLang=en#about-grenton)
- [Price list and documents](https://knowledgebase.grenton.com/en/price-list-and-documents?hsLang=en)

[![Grenton logo](https://knowledgebase.grenton.com/hs-fs/hubfs/Logo_Grenton_variants_BIG_2020_plus_RGB_v0.2-02.png?width=400&height=100&name=Logo_Grenton_variants_BIG_2020_plus_RGB_v0.2-02.png "Grenton logo")](http://grenton.com)

<https://www.facebook.com/grenton.smart.home> <https://www.instagram.com/grenton_smart_home/> <https://www.youtube.com/channel/UCFNNI-dgO1cm81kCrSr1bzg> <https://www.linkedin.com/company/grenton>

Copyright © 2026, Grenton Sp.z o.o.