Zettler fire alarm panels report their events, states and counters on a serial output. The Weble universal gateway Zettler driver listens to this output, decodes each line, and stores the result in addresses that can be logged, routed, used in logics or read through the API.
The driver is listen-only: it never sends anything to the panel, and writes to its addresses are refused.
The Zettler driver needs a licence on the gateway. Contact support@weble.ch to enable it.
Connect the serial output of the panel to a serial interface of the gateway (built-in port or USB adapter, see Hardware). The serial parameters of the gateway must match the ones configured on the panel.
The driver opens the line with RTS/CTS hardware flow control and sets the RTS and DTR signals at connection. Data bits default to 8; the JSON-only key serialPortDataBits changes them. The text is decoded with code page 850, one frame per line.
RS 485 or RS485 1 / RS485 2 in the list; its device path depends on the gateway model (for example /dev/extcomm/1/0). USB adapters appear in the same list under their unique ID.The driver creates its addresses itself: %zettler:heartbeat and %zettler:lastMessageObject. Addresses cannot be inserted or imported by hand. They can be removed.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name for this gateway instance. |
| Cluster ID | cluster | Cluster identifier. Use 0 for single-gateway setups. |
| Type | json.type | Keep serial: the driver reads the serial line only. The TCP value is not used by this driver. Default: serial. |
| Serial Port | json.serialPort | The serial interface, picked from the auto-complete list of detected USB/serial interfaces, or a device path. If the field is empty, the driver logs no serial port resolved and restarts. |
| Parity | json.serialPortParity | none, even or odd. Default in the form: none. If the key is missing from the gateway JSON, the driver uses even. |
| BaudRate | json.serialPortBaudRade | 9600, 19200, 38400, 57600, 76800 or 115200. Default in the form: 9600. If the key is missing from the gateway JSON, the driver uses 19200. The JSON key is spelled serialPortBaudRade; a key spelled serialPortBaudRate is ignored. |
| Stopbit | json.serialPortStopBit | 1 or 2. Default: 1. |
| Heartbeat timeout | json.heartbeatTimeout | Time in milliseconds without any frame from the panel before %zettler:heartbeat goes to 0. Default: 60000. |
| (JSON only) | json.serialPortDataBits | Number of data bits. Default: 8. Not shown in the form. |
| (JSON only) | json.path | Dot-separated list of frame properties used to build one address per point, see 3.3. Default: empty (disabled). Not shown in the form. |
{
"serialPort": "/dev/ttyUSB0",
"type": "serial",
"serialPortBaudRade": 9600,
"serialPortParity": "none",
"serialPortStopBit": 1,
"heartbeatTimeout": 60000
}
When you create the gateway through the API, always send the complete JSON above: missing serial keys do not fall back to the values of the form.
All addresses start with %zettler:. They are read-only.
| Address | Value |
|---|---|
%zettler:heartbeat |
1 each time the panel sends HEARTBEAT. 0 when no frame at all is received during Heartbeat timeout. |
%zettler:lastMessageObject |
An object describing the last frame received, other than HEARTBEAT. |
Any frame restarts the heartbeat timeout. When it expires, the driver also logs heartbeat error. When frames come back, it logs heartbeat recovered.
The type property of %zettler:lastMessageObject tells which kind of frame was received.
A frame is one line ended by CR LF. An event is a line starting with Cat <digit> followed by two fixed-width lines:
| Property | Line | Columns |
|---|---|---|
eventText |
1 | 1 – 19 |
deviceAddress |
1 | 21 – 39 |
deviceType |
1 | 41 – 59 |
dateTime |
1 | 61 to the end — the text printed by the panel, not converted to a date |
sectorDescription |
2 | 21 – 39 |
zoneDescription |
2 | 41 – 59 |
pointDescription |
2 | 61 to the end |
A category digit outside 0 – 8 gives categoryName = Unknown. A Cat line that is followed by no data line is dropped.
| type | Panel output | Properties |
|---|---|---|
event |
A Cat <n> line followed by two data lines |
category, categoryName, flags, eventText, deviceAddress, deviceType, dateTime, sectorDescription, zoneDescription, pointDescription |
status |
STATUS <name> <value>, for example STATUS NETWORK YES |
name, value |
count |
COUNT <name> <value>, for example COUNT OLD_CO 0 |
name, value (a number when the value is numeric) |
unknown |
Any other line | raw: the line as received |
For an event, flags lists RESET, RESTART and CLEARING when these words appear on the Cat line. When only one data line arrives before the next Cat, STATUS or COUNT line, the event is still reported, with the properties of the missing line empty.
Event categories:
| category | categoryName |
|---|---|
| 0 | Information |
| 1 | Warning |
| 2 | Test Mode |
| 3 | Isolate |
| 4 | Fault |
| 5 | Supervisory |
| 6 | Pre-alarm |
| 7 | Gas Alert |
| 8 | Fire |
Listen to the panel through the peers API and react to fire events:
gateways.on('newValue %zettler:lastMessageObject', function(value, value_string, value_date){
if(value.type == 'event' && value.category == 8){
console.log('FIRE', value.zoneDescription, value.pointDescription, value.dateTime)
}
})
Use the newValue events or the last value of the address rather than readValue: a read returns the whole address record instead of the frame.
By default only %zettler:lastMessageObject receives the frames, so each new frame replaces the previous one. With the JSON-only gateway key path, every frame other than HEARTBEAT is also written to an address built from the frame itself: the values of the listed properties are joined with . and appended to %zettler:. The address is created on first occurrence and holds the last frame object of that point.
Example: "path": "type.name.deviceAddress" creates
%zettler:event.<deviceAddress> for each device that reports an event,%zettler:status.NETWORK for STATUS NETWORK …,%zettler:count.OLD_CO for COUNT OLD_CO ….Properties that are missing or empty in a frame are skipped.
Start the path with
type. With a path made only of event properties, such asdeviceAddress, theSTATUS,COUNTand unknown frames all end up on an address named%zettler:.
| Property | Value |
|---|---|
| Readable | No bus read — values arrive when the panel sends a frame |
| Writable | No — write not supported - listen only |
| Routable | Yes, as a source |
| Loggable | Yes |
%zettler:lastMessageObject keeps only the last frame. Log the address to keep the history of the events.
The gateway status does not follow the panel: when the panel goes silent only %zettler:heartbeat changes to 0. Route this address to an alert.
| Symptom | Check |
|---|---|
Log missing license, the gateway does not stay connected |
The Zettler licence is not enabled. |
Log no serial port resolved, the gateway restarts |
Serial Port is empty. |
Gateway connected, log failed to open serial port …, heartbeat stays 0 |
The port could not be opened (for example a wrong device path). The driver logs the error but does not restart by itself. |
Log heartbeat error Timeout during receving first frame |
Nothing received since start-up: check the wiring, BaudRate, Parity and Stopbit. |
%zettler:lastMessageObject only shows "type": "unknown" |
The lines are not recognised: wrong serial parameters or another output format on the panel. |
Write error write not supported - listen only |
Expected: the driver never writes to the panel. |