Air Conditioner Controller with Modbus
CONNECTION
This version uses a USB-C Cable to expose the power and RS485 interface.
Note: This version only supports +12VDC. The next hardware version will support +7V to +32V and will feature a different power harness.
IMPORTANT: This version has the 120 OHM resistor installed. If you do not need the 120 OHM resistor, you must open the device and cut it with some flush cutters. It is marked as “120” on the PCB. The next version has a software-selectable 120 OHM resistor.
CONFIGURATION
This version requires configuration through the app. New firmware version coming in the following weeks will not require the app.
-
Download the Cuby Smart App.
iOS http://cuby.mx/app/ios
Android http://cuby.mx/app/android -
Create an account and login.
-
Select from the top menu: “Add Cuby”
-
Select “Cuby G4” in the list.
-
Follow the steps in the app to connect the device to a Wi-Fi network.
-
Once you have successfully added the Cuby to the network you should see a new device on the home screen. Select that device.
-
On the bottom right part of the screen you will see the “Configuration” option, select that.
-
Look for an option labeled: “Configure A/C Protocol”
-
Follow the steps there to search and find a working protocol for the minisplit unit you will test on.
-
Once you have a working protocol version select “Yes” and continue to save the protocol.
-
Now you can test with Modbus.
MODBUS REGISTERS
Currently this device uses the fixed Address 1. On the next firmware release we will allow for dynamic setting of the address as well as different register map and other customizable features (baud rate, etc).
Serial configuration is 9600 8n1.
Register Address |
Register Address |
R/W |
Description |
NOTES |
0 | 1 | R/W |
AC ON/OFF |
This controls the power state of the A/C. |
1 | 2 | R/W |
AC MODE |
The operating mode of |
2 | 3 | R/W |
FAN SPEED |
The fan speed of the A/C. |
3 | 4 | R/W |
IR PROTOCOL 0 to 254
|
If set to any other value outside 0 to 254 it will use the currently configured protocol. |
4 | 5 | R/W |
AC Temperature Setpoint |
This defines the temperature setpoint that the minisplit will be configured at. |
6 | 7 | R/W |
Command Type 0: power 1: temperature 2: mode 3: fan speed 4: display 5: vertical vane 6: horizontal vane 7: turbo 8: units |
Command type is only required for some special commands like display, turbo, swing or units. For the rest of the commands the value 0 (power) can be used. |
7 | 8 | R/W |
Display 0: Off 1: On |
Some Minisplits have a toggle command for display, so sending 0 or 1 will toggle the current state. |
8 | 9 | R/W |
Turbo 0: Off 1: On |
Turns ON or OFF the Turbo mode available on some models. |
9 | 10 | R/W |
Vertical Vane 0: Off 1: Auto 2: Top 3: Top-Center 4: Center 5: Bottom-Center 6: Bottom |
This is the vertical swing. Not all models have the discrete options from 2 to 6. G14 |
10 | 11 | R/W |
Horizontal Vane 0: Off 1: Auto 2: Left 3: Left-Center 4: Center 5: Right-Center 6: Right 7: Sides |
This is the horizontal swing. Not all models have the discrete options from 2 to 7. |
11 | 12 | R/W |
Temperature Units |
Some A/C have a Units command that changes the display’s units. |
12 | 13 | R |
Command Source |
Indicates who sent the last command. There are several sources (IR Remote, thermostat, Mobile App, Modbus, Local Rule, Remote Rule, HTTP API, Bacnet, etc) |
13 | 14 | R |
Indoor Temperature -32768 (Initial Value) |
Temperature in Celsius read by the Cuby or one of its sensors. |
15 | 16 | R |
Indoor Relative -32768 (Initial Value) |
Relative humidity read by the Cuby or one of its sensors. |
19 | 20 | R/W |
Occupancy Status -32768 (Initial Value) |
Occupancy status. |
22 | 23 | R |
Open Time -32768 (Initial Value) |
Time in seconds that at least one sensor has been in an open state. It resets when all sensors are closed. |
40 | 41 | R/W |
Force IR Command |
Writing a 1 to this register forces an IR command. This register will always read 0. |
48 | 49 | R |
FW Version |
The current firmware version of the Cuby. |