Connecting GREE air conditioner systems with H1, H2 connector to Wiren Board
Purpose
The ONOKOM-AIR-GR-5-MB-B gateway lets you control GREE air conditioner systems with H1, H2 connector and integrate them into a centralized management system over Modbus RTU.
The six-channel relay modules WB-MR6C v.3 are designed for industrial and home automation systems and are intended for direct control of LED, fluorescent lamps, incandescent lamps, and other loads with a rating of up to 10 A (2 kW). They can also be used as general-purpose input-output modules.
The six-channel WB-MR6C v.3 relay modules are designed for industrial and home automation systems and intended for direct control of LED, fluorescent and incandescent lamps and other loads rated up to 10 A (2 kW). They can also be used as general-purpose IO modules.
Each output can carry continuous current up to 16 A and inrush currents up to 80 A. Note that due to the terminal block design, the total nominal switching current per group of three relay outputs is 20 A.
The device is available on the manufacturer's website: ONOKOM-AIR-GR-5-MB-B, where you can also find additional information and technical support.
Specifications
| Parameter | Value |
|---|---|
| Power | |
| Supply voltage | 9–28 V DC |
| Power consumption | up to 1 W |
| Control | |
| Control interface | RS-485 |
| Interface isolation | Isolated |
| Communication protocol | Modbus RTU, address is set programmatically, factory settings (Modbus address: 1) |
| RS-485 interface parameters | Set programmatically, defaults:
|
| Operating conditions | |
| Air temperature | From 0 to +40 °C |
| Warranty period | 2 years |
| Service life | 5 years |
Connecting to the Wiren Board controller
Safety rules:
- before connecting, disconnect power from the air conditioner and gateway;
- verify the correctness of connections before applying power;
- connect the device only to the connectors specified in the instructions;
- observe the recommended power supply level for device operation;
- do not place the device in damp locations.
Connection instructions
Connection procedure
- Connect the interface cable from the GR-A5 adapter to the H1, H2 terminals of the wired remote control.
- Connect power to the gateway.
- Use the interface cable to connect the GR-A5 adapter to the ONOKOM gateway.
- Use Ethernet Cat6 UTP or RS-485 cable to connect the ONOKOM gateway to the Wiren Board controller.
Troubleshooting
- Check that the interface cable is properly connected to the air conditioner socket:
- the connector is firmly seated in the air conditioner control board
- the connector is firmly seated in the gateway
- the connector is not broken
- the interface cable wires enter the connector at both ends of the cable
- Check the power supply to the gateway. If necessary, measure the voltage at the terminal.
- Check that the A and B wires of the RS485 bus are connected correctly, both on the gateway and on the control controller.
- Check that the RS485 terminal is firmly seated in the gateway.
- Make sure you are using the correct cable for the RS485 bus connection.
Changing the Modbus address of the gateway
By default, all ONOKOM gateways have address 1. The change can be made in several ways:
- Changing the Modbus address by writing it to a register
- Stop the wb-mqtt-serial driver. From the console this can be done with:
systemctl stop wb-mqtt-serial
- Write the desired Modbus address of the gateway to register 128. From the console this can be done using modbus_client with: This will set address 12 on the device with address 1 connected to port RS485-1.
modbus_client --debug -mrtu -b9600 -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r128 12
- Resume driver operation with:
systemctl start wb-mqtt-serial
- Stop the wb-mqtt-serial driver. From the console this can be done with:
- Changing the Modbus address using the gateway serial number
- Stop the wb-mqtt-serial driver. From the console this can be done with:
systemctl stop wb-mqtt-serial
- Start the bus scanner. From the console this can be done using modbus-scanner with:
wb-modbus-scanner -d /dev/ttyMOD3 -b 9600
- Perform the address change with: The serial number should be specified after the -s flag
wb-modbus-scanner -d /dev/ttyMOD3 -b 9600 -s 305882 -i 3
- Resume driver operation with:
systemctl start wb-mqtt-serial
- Stop the wb-mqtt-serial driver. From the console this can be done with:
Changing the gateway operating speed
To change the gateway operating speed, do the following:
- Stop the wb-mqtt-serial driver. From the console this can be done with:
systemctl stop wb-mqtt-serial
- Write to register 110 a value that, when multiplied by 100, gives the speed you need. From the console this can be done using modbus_client with:This will set speed 115200 on the device with address 12 connected to port RS485-1.
modbus_client --debug -mrtu -b9600 -pnone -s2 /dev/ttyRS485-1 -a12 -t0x06 -r110 1152
- Resume driver operation with:
systemctl start wb-mqtt-serial
Display in the Wiren Board controller web interface
| Connection parameters | ||
|---|---|---|
| Default value |
Parameter name | Parameter |
| baud_rate | 9600 | Speed, bps |
| parity | None | Parity bit |
| data_bits | 8 | Number of data bits |
| stop_bits | 2 | Number of stop bits |
| modbus_adress | 1 | Default Modbus address |
Adding the gateway
Choose "Settings → Configuration files → Configure serial device driver".
If the Settings tab is not displayed, check the access level.
Select the serial port to which the device is connected.
If the device is connected to ports MOD1/2/3, remember to activate the modules.
Check that the port is enabled and configure the communication parameters with the device.
Click "Add any devices manually".
In the device list, find the "Air conditioners" section and choose the device you need.
Click "Save settings".
Adding via device search
Choose "Settings → Configuration files → Configure serial device driver".
If the Settings tab is not displayed, check the access level.
Select the serial port to which the device is connected.
If the device is connected to ports MOD1/2/3, remember to activate the modules.
Check that the port is enabled and configure the communication parameters with the device.
Click "Find and add Wiren Board devices".
Click "Add to wb-mqtt-serial".
Click "Save settings".
Device channels and their values
| Parameter | Description | Values |
|---|---|---|
| State | Air conditioner on/off |
|
| Mode | Operation mode |
|
| State and mode | Combined status |
|
| Fan speed | Speed level |
|
| Fan speed (extended) | Extended modes |
|
| Air temperature | Current indoor temperature |
-50-50 °C (read-only) |
| Outdoor air temperature | Current outdoor temperature |
-50-50 °C (read-only) |
| Target temperature | Temperature setpoint |
16-31 °C |
| Thermostat | Current action |
|
| Horizontal vanes | Operation mode |
|
| Vertical vanes | Operation mode |
|
| Turbo mode | Activation |
|
| Quiet mode | Activation |
|
| Sleep | Activation |
|
| Ionization | Activation |
|
| Connection | Air conditioner link |
|
Gateway settings
In the Wiren Board controller web interface, you can select modes, specify parameters, and configure polling of the device channels.
Main modes and functions
Temperature control
Vanes
Additional modes and functions
Indication
Module data
Diagnostics
Connection to an external temperature sensor
Most often, the air conditioner measures the current air temperature using its own sensor in the indoor unit's case. And because the indoor unit is located fairly high up, the readings from this temperature sensor are usually higher than they actually are.
One of the gateway's features is the ability to write the current temperature from an external sensor.
To automatically write the current temperature to the gateway, you can create a small rule.
In the device settings, in the Temperature control section, enable Allow use of external temperature sensor and save the settings.
Open the Rules section, click Create, and give the rule a name, for example: ExternalSensorForOnokom.js.
Copy the code shown below:
defineRule ("SyncTemperature", {
whenChanged: "wb-msw-v3_25/Temperature",
then: function (newValue) {
dev["ONOKOM-AIR/Indoor air temperature"] = newValue
}
});
Instead of wb-msw-v3_25/Temperature specify the MQTT topic of your temperature sensor, and instead of ONOKOM-AIR/Indoor air temperature specify the MQTT topic of the current room temperature on your ONOKOM gateway. For example, ONOKOM-AIR-GR-5-MB-B/Indoor air temperature.
Click Save.
After this, the gateway will transmit the current temperature data, and the air conditioner will maintain exactly the temperature you have set.
Device register map
Device register map is available at this link
Device images
Images to embed the device in your projects:
Gallery
- Package