DM modules ⇒ DM-604P-1W ⇒ Lighting and climate
"Lighting and Climate" firmware for the DM-604P-1W module
6 inputs, 4 outputs.
Firmware purpose

Collecting dry-contact states and controlling relay groups in standalone mode or exchanging information over the bus77 bus with a server or other modules.
The firmware is intended for building automation projects in centralized and decentralized bus77 iRidi © networks.
Used for:
-
controlling room temperature using 2 thermostats, each with its own assigned 1-wire temperature sensors;
-
controlling 2 lighting groups (2 relay channels) and 2 dry-contact channels (local or network);
-
monitoring valve actuator operation by measuring radiator temperature and sending warnings to the bus;
-
other electrically controlled systems and equipment within the module's permitted parameters (boilers, actuators, pumps, fans, etc.).
Firmware description
The system is fault-tolerant: if communication with the server/gateway is lost, the controller continues to operate as part of a decentralized network.
The DM-604-1W module effectively contains several devices:
- Thermostats,
- A relay block,
- A button block
Thermostat
The device contains two identical thermostats. Each thermostat controls an actuator, a valve actuator, through its own relay (you can use other devices, but take the rated and inrush currents into account ).
Valve actuators may be normally open or normally closed. Specify this in the module settings .
The thermostat monitors temperature changes using two temperature sensors: one measures the heat transfer medium temperature and the other measures air temperature.
The thermostat can be set to four operating modes:
- Normal,
- Day,
- Night,
- Away.
A target temperature can be set for each mode. The temperature band within which the thermostat maintains the air temperature is specified using the Hysteresis control channel (CC18; CC denotes a control channel below). The thermostat turns heating on when the air temperature is below the target minus hysteresis. It turns heating off when the air temperature is above the target plus hysteresis.
The thermostat reports a problem with the heat transfer medium if:
- the heat transfer medium temperature has not increased ten minutes after heating turns on,
- the heat transfer medium temperature has not decreased ten minutes after heating turns off.
A separate monitoring band can be set for the temperature sensor. Leaving this band generates high- or low-temperature messages (CC29-CC34).
Relay
The relays also have additional capabilities:
- Timer-based automatic turn-off,
- Direct or inverted logic,
- Different relay behavior scenarios when the device powers on.
If timer-based relay turn-off is enabled (CC 37), the relay turns off after the time specified in CC 39, which defaults to 5 seconds.
Relay activation logic can be inverted (CC 38):
- 0 - direct logic (closed in software = physically closed),
- 1 - inverted logic (closed in software = physically open).
Relay behavior at device power-on can be controlled (CC44):
- 0 - the relay restores the state it had when the device powered off,
- 1 - the relay is closed in software (take the configured direct/inverted logic into account),
- 2 - the relay is opened in software.
Buttons
In addition to ordinary button press and release events, the module can generate complex button press events:
- A single press is generated if no second press occurs within 700 ms (defined by CC36) after the button is pressed,
- A double press is generated if a second button press occurs within 700 ms (defined by CC36),
- A long press is generated if the button is held for more than 1000 ms (defined by CC35).
Connecting the control bus

Connect the two power wires and two data wires as shown in the diagram.
When installing the module at the end of the bus, use the termination resistor by fitting the jumper. When the module is in the middle of the bus, remove the jumper.
Tree and star topologies and line branches are not recommended to ensure stable operation.
For the bus77 installation sequence and details, see here
Connecting buttons and sensors to the inputs

Use any momentary buttons. 1-Wire temperature sensors
Additional information
Do not confuse the digital input connector with the module power connector. If the connectors are swapped, the module will fail when power is applied.
Connecting actuators

The cross-section of wires connected to relay output screw terminals must match the power of the switched load. The screw terminals accept wires with a cross-section of 2,5—4 mm2. The relay module must be installed to meet electrical safety requirements and prevent accidental contact with high-voltage contacts.
The device must be operated under the recommended environmental conditions.
Additional information
You must take the inrush current of connected devices into account.
Control channel description
System parameters
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 1 | Name — Device name | string | 0 | 32 | 1 | The name under which the device is displayed in the interface. |
| 2 | PIN — PIN code | u32 | 0 | 0xFFFFFFFE | 1 | PIN code to protect control and feedback channels against unauthorized writes and reads. |
| 3 | Reboot — Restart | bool | 0 | 1 | 1 | Restart the module. |
| 4 | Reset — Controller reset | none | — | — | — | Reset the controller to factory settings. |
| 5 | Find device — Find the device | bool | 0 | 1 | 1 | Writing a value of one to the channel makes the onboard LED flash at 10 Hz. |
Thermostat
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 6 | Thermostat (N) set power — Set thermostat state | bool | 0 | 1 | 1 | 1 — thermostat on, 0 — thermostat off. |
| 7 | Thermostat (N) on — Turn thermostat on | none | — | — | — | Turn the thermostat on. |
| 8 | Thermostat (N) off — Turn thermostat off | none | — | — | — | Turn the thermostat off. |
| 9 | Thermostat (N) set mode — Set thermostat mode | u8 | 0 | 3 | 1 | 0 — Normal (normal operation), 1 — Night (night mode), 2 — Day (day mode), 3 — Away (away mode). |
| 10 | Thermostat (N) set mode Normal — Set Normal mode | none | — | — | — | — |
| 11 | Thermostat (N) set mode Night — Set Night mode | none | — | — | — | — |
| 12 | Thermostat (N) set mode Away — Set Away mode | none | — | — | — | — |
| 13 | Thermostat (N) set mode Day — Set Day mode | none | — | — | — | — |
| 14 | Thermostat (N) target temperature Normal — Normal target temperature | f32 | -50 | +125 | 1e-1 | — |
| 15 | Thermostat (N) target temperature Night — Night target temperature | f32 | -50 | +125 | 1e-1 | — |
| 16 | Thermostat (N) target temperature Day — Day target temperature | f32 | -50 | +125 | 1e-1 | — |
| 17 | Thermostat (N) target temperature Away — Away target temperature | f32 | -50 | +125 | 1e-1 | — |
| 18 | Thermostat (N) hysteresis — Hysteresis | f32 | -50 | +125 | 1e-1 | Offset of the operating temperature range limits +/- from the target temperature for the current mode. |
| 19 | Thermostat (N) thermal head type — Valve actuator type | u8 | 0 | 1 | 1 | 0 — normally closed, 1 — normally open. |
| 20 | Thermostat (N) set thermal head state — Valve actuator state | bool | 0 | 1 | 1 | Taking the valve actuator type into account: 1 — Open (supply heat), 0 — Close (stop heat). |
| 21 | Thermostat (N) open thermal head — Open valve actuator | none | — | — | — | Open the valve actuator. Supply heat. |
| 22 | Thermostat (N) close thermal head — Close valve actuator | none | — | — | — | Close the valve actuator. Stop heat. |
| 23 | Thermostat (N) toggle thermal head — Toggle valve actuator | none | — | — | — | Change the valve actuator to the opposite state. |
| 24 | Thermostat (N) automatic mode — Automatic mode | u8 | 0 | 1 | 1 | 0 — manual mode, 1 — automatic mode. |
| 25 | +0.5°C to target temperature — Thermostat t+ by 0,5°C | none | — | — | — | Increase the target temperature for the current mode by 0,5°C. |
| 26 | -0.5°C to target temperature — Thermostat t- by 0,5°C | none | — | — | — | Decrease the target temperature for the current mode by 0,5°C. |
| 27 | Thermostat (N) room temperature — Room air temperature | f32 | -50 | +125 | 1e-1 | Send the air temperature to the thermostat. |
| 28 | Thermostat (N) heat carrier temperature — Radiator temperature | f32 | -50 | +125 | 1e-1 | Send the heat transfer medium (radiator) temperature to the thermostat. |
Temperature sensor
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 29 | Temperature sensor (N) work mode — Sensor operating mode | u8 | 0 | 3 | 1 | 0 — off, 1 — temperature display, 2 — limit-based, 3 — point-based. |
| 30 | Temperature sensor (N) deadband — Display step | f32 | -50 | +125 | 1e-1 | Temperature display step when the temperature changes. |
| 31 | Temperature sensor (N) lower limit — Lower temperature limit | f32 | -50 | +125 | 1e-1 | When the lower limit is reached as the temperature falls, the controller generates a notification signal (for mode 2). |
| 32 | Temperature sensor (N) top limit — Upper temperature limit | f32 | -50 | +125 | 1e-1 | When the upper limit is reached as the temperature rises, the controller generates a notification signal (for mode 2). |
| 33 | Temperature sensor (N) target point — Target temperature | f32 | -50 | +125 | 1e-1 | Set the target temperature monitoring value (for mode 3). |
| 34 | Temperature sensor (N) hysteresis — Hysteresis | f32 | -50 | +125 | 1e-1 | Offset from the set temperature to create a temperature band (for mode 3). |
Dry contact
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 35 | Button (N) long hold time — Long press duration | u16 | 0 | 65535 | 1 | Milliseconds: the button hold duration for a long press event (1000 ms by default). |
| 36 | Button (N) double press time — Second press waiting time | u16 | 0 | 65535 | 1 | Milliseconds: the waiting time for another press for a double click (700 ms by default). |
Relay
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 37 | Relay (N) work mode — Relay operating mode | bool | 0 | 1 | 1 | 0 — standard operation, 1 — timer-based automatic turn-off. |
| 38 | Relay (N) inversion — Inversion | bool | 0 | 1 | 1 | 0 — direct logic, 1 — inverted logic. |
| 39 | Relay (N) auto off time — Relay automatic turn-off time | u32 | 0 | 0xFFFFFFFF | 1 | Milliseconds: the time until the relay is opened in software (if operating mode = 1). |
| 40 | Relay (N) set state — Set relay state | bool | 0 | 1 | 1 | 1 — Close relay, 0 — Open relay. |
| 41 | Relay (N) on — Close relay | none | — | — | — | Close the relay. |
| 42 | Relay (N) off — Open relay | none | — | — | — | Open the relay. |
| 43 | Relay (N) toggle — Toggle relay | none | — | — | — | Change to the opposite state. |
| 44 | Relay (N) starting behavior — Startup behavior | u8 | 0 | 2 | 1 | 0 — restore state, 1 — close, 2 — open. |
Motion sensor
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 45 | Motion sensor %d power — Motion sensor availability | bool | 0 | 1 | 1 | Enable/disable the motion sensor. |
Attention! The module ignores values sent to a control channel if they are below the minimum or above the maximum permitted value.
Feedback channel description
System parameters
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 1 | Error — Error | u8 | 0 | 255 | 1 | Returns the error code. |
| 2 | Device voltage — Device voltage | f32 | 0 | 30 | 1 | Returns the module's current supply voltage. |
Thermostat
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 3 | Thermostat (N) state — Thermostat state | bool | 0 | 1 | 1 | Returns the current thermostat state. |
| 4 | Thermostat (N) on — Thermostat was turned on | none | — | — | — | — |
| 5 | Thermostat (N) off — Thermostat was turned off | none | — | — | — | — |
| 6 | Temperature sensor (N) — Sensor temperature | f32 | -50 | +125 | 1e-1 | — |
| 7 | Thermostat (N) mode — Current mode | u8 | 0 | 3 | 1 | Returns the current thermostat mode. |
| 8 | Thermostat (N) current target temperature — Target temperature for the current mode | f32 | -50 | +125 | 1e-1 | Returns the target temperature for the current mode. |
| 9 | Thermostat (N) thermal head type — Valve actuator type | u8 | 0 | 1 | 1 | Returns the valve actuator type. |
| 10 | Thermostat (N) thermal head state — Valve actuator state | bool | 0 | 1 | 1 | Returns the valve actuator state. |
| 11 | Thermostat (N) thermal head was open — Valve actuator opened | none | — | — | — | — |
| 12 | Thermostat (N) thermal head was close — Valve actuator closed | none | — | — | — | — |
| 13 | Thermostat (N) automatic mode — Automatic mode | bool | 0 | 1 | 1 | Returns the automatic mode status. |
| 14 | Thermostat (N) heat error — Heat transfer medium problem warning | none | — | — | — | — |
Temperature sensor
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 15 | Temperature sensor (N) temperature — Current sensor temperature | f32 | 0 | 150 | 1 | — |
| 16 | Temperature sensor (N) temperature is out of the upper limit — Temperature rose above the upper limit | none | — | — | — | Notification every 10 seconds. |
| 17 | Temperature sensor (N) temperature is out of the lower limit — Temperature fell below the lower limit | none | — | — | — | Notification every 10 seconds. |
Dry contact
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 18 | Button (N) was press — Button was pressed | none | — | — | — | — |
| 19 | Button (N) was release — Button was released | none | — | — | — | — |
| 20 | Button (N) was single press — Single press occurred | none | — | — | — | Triggers if only one press occurs during the time set in the double-press waiting time control channel (CC 36, 700 ms by default). |
| 21 | Button (N) was double press — Double press occurred | none | — | — | — | Triggers if the interval between two presses is shorter than the time set in the double-press waiting time control channel (CC 36, 700 ms by default). |
| 22 | Button (N) was long press — Long press occurred | none | — | — | — | Triggers if the button is held longer than the time defined by CC 35 (1000 ms by default). |
Relay
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 23 | Relay (N) state — Relay state | bool | 0 | 1 | 1 | Returns the relay state. |
| 24 | Relay (N) was on — Relay closed | none | — | — | — | Relay closing event. |
| 25 | Relay (N) was off — Relay opened | none | — | — | — | Relay opening event. |
Motion sensor
| № | Parameter | Type | Min | Max | Access | Description |
|---|---|---|---|---|---|---|
| 26 | Motion sensor state — Motion state | bool | 0 | 1 | 1 | Motion sensor state. |
| 27 | Motion sensor movement started — Motion started | none | — | — | — | The motion sensor was activated. |
| 28 | Motion sensor movement ended — Motion ended | none | — | — | — | The motion sensor returned to its inactive state. |
Module and firmware navigation
| Parameter | Value | Description |
|---|---|---|
| DM modules | DM-706 | Universal |
| Dedicated to heating device control (under development) | ||
| Dedicated to curtain and blind control (under development) | ||
| DM-006 | Universal | |
| DM-604P-1W | Lighting and climate | |
| DM-606P | ||
| DM-D3P | ||
| DM-060 | ||
| FM modules | FM-400 | "4 dry contacts" firmware |
| FM-400-1W | Firmware 1 "Dry contact + temperature sensor + motion sensor" no link | |
| Firmware 2 "4 dry contacts" no link | ||
| Firmware 3 "Dry contact and temperature sensors" no link | ||
| FM-401P-1W | Thermostat no link (1 temperature sensor, 1 button, 1 valve actuator) | |
| FM-402-1W | Leak protection no link (up to 3 digital sensors and 1 analog sensor, 1 valve) | |
| Thermostat no link (1 temperature sensor, 1 button, 1 valve actuator) | ||
| Bus thermostat no link (temperature from the bus, 1 button, 1 valve actuator) | ||
| FS modules | FS-TM-1W | |
| FS-TH-IL-M-S | ||
| FS-TH-IL-M-S-VOC | ||
| FS-TH-IL-M-S-CO2 | ||
| FS-TH-IL-M-S-VOC-CO2 | ||
| Special modules | IS-CAN | Integration server |
| HUB-2CAN-Vpro no link | Interface module | |
| Bus77-USB | Bus77-USB converter |