GW8 Gateway (RF/IR) — API
Overview
The GW8 is controlled entirely over HTTP — every command (RF curtain/motor, IR in any of its four flavours, AC control) is sent as a single request built from the Gateway's IP address plus a set of query‑string variables.
| Requirement | Detail |
|---|---|
| Gateway already on the network | Configure the GW8 on the local network (WiFi or Ethernet) first, using its own setup UI. |
| Fixed / reserved IP | Assign the GW8 a fixed IP on the local network (static or DHCP reservation) before wiring up an integration, so command URLs stay valid. |
The source documentation for this API describes the transport as 'HTTP, using POST', but every worked example it provides is a plain GET request with all parameters in the query string (as reproduced throughout this page). Confirm which verb your specific firmware expects — GET is what the examples actually show.
Discovery & Device Info
FINDFind a GW8 on the network
- From a computer on the same local network as the Gateway, browse to
http://molsmart.local— it searches for any GW8 units present on the LAN. - Browse directly to
http://<gw8-ip>for the setup UI, used to create and manage remotes (RF/IR).
/info?type=1Returns the firmware version and basic configuration of the Gateway.
http://192.168.1.77/info?type=1
Curtain / Motor Control
Used for any curtain, blind or door‑motor remote, regardless of brand — the request shape is always the same, with rcId fixed at 51.
/control| Parameter | Meaning |
|---|---|
| cId | the remote's ID in the GW8 web interface — see below for how to find it |
| rcId | 51 — always 51 for curtain/door remotes, independent of brand |
| state | button number on the remote, 1–4 |
| user | GW8 web interface username, default admin |
| pwd | GW8 web interface password, default 12345678 |
http://192.168.1.77/control?cId=1&rcId=51&state=1&user=admin&pwd=12345678
CIDFinding a remote's cId
Each remote configured on the GW8 web interface shows its own CID, which can be edited to any value you like — it must not repeat across remotes.
IR Command Types
The Gateway supports four different ways to send an IR command, selected by the rcId parameter (except Sendir, which has no cId/ rcId at all):
| Type | rcId | Notes |
|---|---|---|
| Sendir (GlobalCache) | n/a | raw IR timings in GlobalCache Sendir format — §5.5 |
| Pronto HEX | n/a | a ready-made Pronto HEX code — §5.6 |
| Learning (Universal) | 61 | a code learned and stored on the GW8 itself — §5.7 |
| AC | 52 | structured air-conditioner control (temperature, mode, fan, power) — §5.8 |
| TV | 53 | reserved for TV remotes; not covered by worked examples in the source document |
Sendir (GlobalCache)
/control| Parameter | Meaning |
|---|---|
| user | GW8 web interface username |
| pwd | GW8 web interface password |
| c | IR channel/port to transmit on |
| gc | the Sendir code, starting at the frequency field — do not include the leading sendir,1:1,1 prefix |
http://192.168.1.161/control?user=admin&pwd=12345678&gc=38000,1,1,347,173,22,22,22,65,22,65,22,65,22,22,22,65,22,65,22,65,22,65,22,65,22,65,22,22,22,22,22,22,22,22,22,65,22,65,22,65,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,65,22,22,22,65,22,22,22,65,22,22,22,1570,347,87,22,3692&c=1
Pronto HEX
/control| Parameter | Meaning |
|---|---|
| user | GW8 web interface username |
| pwd | GW8 web interface password |
| pronto | the ready-made Pronto HEX code |
| c | IR channel/port to transmit on |
| r | repeat count |
http://192.168.1.161/control?user=admin&pwd=26744769&pronto=0000 006d 0022 0002 0157 00ac 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0689 0157 0056 0015 0e94&c=1&r=2
Learning (Universal)
Sends a code that was previously taught to the GW8 and stored against a remote's cId/state (button) pair, regardless of the original remote's brand or protocol.
/control| Parameter | Meaning |
|---|---|
| user | GW8 web interface username |
| pwd | GW8 web interface password |
| cId | the remote's ID in the GW8 web interface |
| rcId | 61 — fixed for Learning/Universal |
| state | button number on the remote, as configured in the web interface |
http://192.168.1.120/control?cId=1234&rcId=61&state=1&user=admin&pwd=12345678
Teaching a new code to the GW8 (the learning process itself) is done through the Gateway's own web interface — the source document does not describe a separate HTTP endpoint to trigger or complete a learning session via the API.
AC Control
/control| Parameter | Meaning |
|---|---|
| user | GW8 web interface username |
| pwd | GW8 web interface password |
| cId | the remote's ID in the GW8 web interface |
| rcId | 52 — fixed for AC control |
| state | command/state slot being sent, e.g. 1, 2 in the worked examples |
| t | target temperature, e.g. 16, 17… |
| pw | power — 1 = ON, 0 = OFF |
| md | operating mode — see enum table below |
| v | fan/vent — 0 = closed/off, 1 = on |
| s | fan speed — see enum table below |
| md — mode | Value |
|---|---|
| OpMode_kOff | -1 |
| OpMode_kAuto | 0 — Auto |
| OpMode_kCool | 1 — Cool |
| OpMode_kHeat | 2 — Heat |
| OpMode_kDry | 3 — Dry / dehumidify |
| OpMode_kFan | 4 — Fan only |
| s — fan speed | Value |
|---|---|
| Fan_Speed_kAuto | 0 |
| Fan_Speed_kMin | 1 |
| Fan_Speed_kLow | 2 |
| Fan_Speed_kMedium | 3 |
| Fan_Speed_kHigh | 4 |
| Fan_Speed_kMax | 5 |
http://192.168.1.120/control?cId=552&rcId=52&state=2&t=25&pw=1&md=1&s=0&v=0&tp=0&type=1&p=0&m=0&c=2&user=admin&pwd=12345678
The worked example above also includes tp, type, p, m and c parameters that are not individually defined anywhere in the source document. They are reproduced here exactly as given — do not guess their meaning; confirm with MolSmart or by testing against a live unit before depending on them.
Testing the API
To try POST/GET requests against the Gateway without writing code, the source documentation suggests a free Chrome extension:
| Tool | Notes |
|---|---|
| Talend API Tester — Free Edition | Chrome Web Store listing — install it, paste the URL, switch the verb if needed, and adjust variables to see live results. |
Notes & Open Items
| Open item | Detail |
|---|---|
| HTTP verb (GET vs POST) | Source text says POST; every worked example is a GET-style query string. See §5.1. |
| AMC / SEED CODE buttons | Shown next to RAW/COPY on the RF (Door/Curtain) edit screen in the GW8 web interface, but no source reviewed explains what they do or whether they map to an API parameter. Still an open item per the internal manual-status tracking for this product. |
| Reading configured remotes via API | No documented endpoint lists the remotes/CIDs configured on a GW8 — only the web interface shows this (see the screenshot in §5.3). |
| Learning-session trigger | No documented endpoint starts/confirms a Learning capture — see the note in §5.7. |
| Undefined AC parameters | tp, type, p, m in §5.8 — see that section's note. |
| Error / auth-failure responses | Not documented for any endpoint on this page — e.g. the response shape for a wrong user/pwd was not covered in the source material. |