Bus devices and inputs¶
On this page: how a box learns which equipment to read, the rules for one RS485 bus, the bus scan, listen-only mode, network (HTTP) devices, and the roles of the digital inputs including the flow switch.
How a box knows a device¶
Every supported device has a profile: a description of how to read it (registers, scaling, units, bus parameters). All profiles are built into the firmware, so a box can add or replace a device on site without internet. The installer chooses make and model; nobody types register addresses. See Supported devices.
A box holds up to 8 devices. Each gets a fixed id (d1 to d8) that is used in its telemetry.
Adding a Modbus device¶
On the setup page, Devices:
- Choose Make and Model. The page shows the profile's hint: default address, baud rate, parity, stop bits and A/B wiring, and fills in the default address.
- Correct the address if the device uses another one.
- Press Check. The box reads that one device once with the bus parameters from its profile and shows the values.
- Press Add to list, then Save.
Check is limited to one device at a time and at most every 3 seconds; it is not available in listen-only mode or during a scan.
One bus, one set of parameters¶
All devices on one RS485 bus must use the same baud rate, parity and stop bits. A device on 8N1 and a device on 8E1 cannot share a bus. Where a device's parameters are adjustable, set it to match the others:
| Device | Bus parameters | Adjustable |
|---|---|---|
| AstralPool Control Basic Plus | 9600 8E1 from factory | yes, menu "rs485 settings": set to No parity (8N1) |
| Eletechsup R4DCB08 | 9600 8N1 | yes, baud 1200 to 19200 |
| Elecro PLUS | 19200 odd parity from factory | yes, 9600/19200, parity odd/even/none |
| Speck BADU | 19200 8N1 | yes, 9600 to 115200 |
| NeoPool platform (AquaRite+, Sugar Valley) | 19200 8N1 | not documented: assume fixed |
| Elite Connect, Aquagem, PHNIX, Fairland, Autodos | 9600 8N1 | not documented |
A NeoPool device together with a fixed 9600 device is a real conflict on one bus. A second RS485 port is being prepared but is not available in the firmware yet.
To be confirmed
Support for a second RS485 bus (through an isolated TTL-to-RS485 module on the pin header, or a Modbus TCP gateway) is designed but not built.
Bus scan¶
The scan helps to find unknown addresses; it is not the main route. It only reads (one register per address), tries 9600, 19200 and 4800 baud, and suggests a make and model when address and baud rate match a profile. On site a scan can be repeated every 2 minutes; remotely at most once per hour. Not available in listen-only mode.
Listen-only mode¶
If the bus already has a master (a PLC, a control panel, a heat pump's main board talking to its display), Lutra must never transmit on it: two masters on one bus collide. In Listen only mode the box only listens and decodes the traffic it sees between the master and the devices.
To be confirmed
The decoding logic for listen-only mode is built and tested on the host, but the connection to the serial port is not finished. Until it is, do not rely on listen-only readings.
Network (HTTP) devices¶
Some devices offer a local HTTP/JSON interface. The box can read them as a client on the client's network (only GET requests). The installer enters the IP address, the port, the security mode and, if the profile needs it, a user name and password.
| Security mode | Meaning |
|---|---|
| Encrypted, trusted certificate | Normal HTTPS |
| Encrypted, remember this device | Self-signed certificate; the box remembers its fingerprint after a successful check and sends no password before that |
| Not encrypted | For devices without HTTPS |
Basic authentication over unencrypted HTTP is refused by default. The installer can explicitly allow it per device ("Lower security"); the portal then shows a warning. Passwords are stored only on the box, never in the device list, the cloud, telemetry or logs. Create a separate read-only account on the device where possible.
To be confirmed
No HTTP device profile is released yet, so the network part of the device wizard does not appear in
practice. Host names ending in .local are not supported yet.
Digital inputs¶
8DI-8DO board only. Each input can get one role from a fixed list, NO or NC, with 1 second debounce. A role can be used on one input only.
| Role | Meaning when active |
|---|---|
pump_running |
Filter pump runs (auxiliary contact) |
heater_on |
Heating on |
backwash |
Backwash in progress |
fill_valve |
Refill valve open |
light |
Light on |
cover_state |
Cover closed or open |
plantroom_door |
Plant room door closed (inactive = open) |
level_low, level_fill, level_high |
Level floats |
leak |
Leak detected |
Set roles on the setup page (Inputs, "What is connected") or on the USB console, for example
di set 2=cover_state,5=plantroom_door,7=level_low:nc. A change of state is logged ("Input DI2 cover_state:
closed") and sent with the telemetry. A factory reset clears the roles.
Prefer NC (normally closed) contacts for safety-related signals such as level_low and flow, so a broken wire
reads as an alarm.
Flow switch¶
Readings that need flow through the measuring cell (pH, ORP and similar) are marked invalid when there is no flow; they are kept, not discarded.
| Flow switch on a DI | Device reports flow itself | Status of flow-dependent readings |
|---|---|---|
| configured | (ignored) | ok with flow, otherwise no_flow |
| not configured | yes, flow | ok |
| not configured | yes, no flow | no_flow |
| not configured | nothing | unknown |
After flow returns, the DI flow switch has a 60 second run-in before readings count again.
To be confirmed
The flow switch input is currently a build option (CONFIG_LUTRA_FLOW_DI, off by default; DI1 in the
installation guide). How it is selected per box in the field is not settled yet.
Related pages¶
Last reviewed: 2026-11-24. Applies to Lutra Lite 0.4.1.