MolSmart API Reference

Dimmer 0-10V — API

TCP feedback string for the MolSmart 8-Channel 0-10V Dimmer Board — 8 analog outputs + 8 digital inputs. Documentation for this model is thinner than the rest of the line; gaps are flagged explicitly below.
MS-A008
ProtocolsTCP (confirmed) · HTTP / MQTT (expected, unconfirmed)
Default TCP port502 (changeable, shared firmware default)
Firmware familyDimmer-8ch 0-10v
3.1 / Getting Started

Overview

The 8‑Channel 0‑10V Dimmer Board (MS-A008) has 8 analog (0‑10V) outputs and 8 digital inputs. It shares its web interface and Integrations/Ports firmware with the Dimmer TRIAC board (MS-D006) — same TCP protocol family, same port 502 default — but the vendor API document available for this specific model is much shorter than the one for the TRIAC board, and only confirms the TCP feedback (read) string.

To be confirmed

Everything on this page marked “To be confirmed” is an inference by analogy with the Dimmer TRIAC's documented API (§2), not an independently verified fact for the MS‑A008. Confirm against a live unit — or ask MolSmart for the equivalent 0‑10V API document — before relying on it in production.

3.2 / TCP String Protocol

Feedback String (confirmed)

Open a plain TCP connection (default port 502). The module reports its 8 output levels and 8 input states as a colon‑separated string, matching the shape of the other MolSmart boards:

Example 1 — all outputs 0%, all inputs high
000000000000000000000000:11111111:8:00000000:00000000
Example 2 — output 1 at 35%, all inputs high
035000000000000000000000:11111111:8:10000000:00000000
BlockMeaning
First blockStatus of each of the 8 output (AO) channels — 3 digits per channel, 000–100 (%).
Second blockThe 8 pushbutton/digital inputs on the module, one digit each.
Note

The source document only describes these two example strings and the channel/digit layout — it does not spell out the trailing :8:…:… fields individually. By direct analogy with the Dimmer TRIAC's confirmed format (§2.2 — d_mask/i_mask after the channel count), the same layout is expected here, scaled to 8 channels.

3.3 / TCP String Protocol

Control Commands (unconfirmed)

To be confirmed

Not covered by the vendor document reviewed for this model. Given this board shares the same MolSmart String(NO)/(NC) TCP protocol and port‑502 default as the Dimmer TRIAC (per Integrations/Ports on both products' web interface), the same command syntax is expected to apply here, 1:1, just addressing 8 channels instead of 6:

11 → AO 1 ON (saved level)21 → AO 1 OFF11%50 → AO 1 ON at 50%18%75 → AO 8 ON at 75%1X → all AO ON2X → all AO OFF

See Dimmer TRIAC — TCP Control & Feedback for the confirmed version of this syntax on the sibling product. Verify each of these forms against a live MS‑A008 unit before shipping an integration built on them.

3.4 / HTTP / MQTT (unconfirmed)

Expected Endpoints

To be confirmed

Not covered by the vendor document reviewed for this model. By analogy with the Dimmer TRIAC (§2.3–2.4), the following are plausible but unconfirmed for the MS‑A008:

ChannelExpected shape (by analogy — not confirmed)
MQTT state topics/molsmart/<device><serial>/in/ao1 … /in/ao8, values ON/OFF/%0-%100
MQTT control topic/molsmart/<device><serial>/in/control, same JSON shape as the Dimmer TRIAC's control topic
HTTP setPOST /api/v2/dimmer_set.cgi, same JSON body shape (idx up to 8)
HTTP statusGET /api/v2/dimmer.cgi
3.5 / Reference

Notes & Open Items

Open itemDetail
Control command syntaxNot documented for this model; inferred from the Dimmer TRIAC (§3.3). Confirm on a live unit.
HTTP JSON APINot documented for this model; inferred from the Dimmer TRIAC (§3.4).
MQTT topicsNot documented for this model; inferred from the Dimmer TRIAC (§3.4).
d_mask / i_mask fieldsPresent in the feedback string by analogy with the TRIAC board's confirmed format, not individually explained in the source for this model.

This product's User Manual documents the shared Integrations/Ports configuration page (ports, MQTT broker, TCP protocol selector) in full — see it for everything not covered here.