Goran58 / node-spc-mqtt

MIT License
1 stars 2 forks source link

Binding between Vanderbilt/Siemens SPC intrusion system and a MQTT broker

This nodejs module is used to mirror status from Vanderbilt/Siemens SPC intrusion system to a MQTT broker, e.g Mosquitto.

NOTE! To be able to use this module you also need to have SPC Web Gateway from Lundix IT installed. SPC Web Gateway is providing a generic open REST and Websocket interface to Vanderbilt/Siemens SPC intrusion system.

MQTT topics and messages

Default main topic is /SPC and default message format {"update_time": <MILLISECONDS>,"status":<STATUS>}

/SPC/G_SPC_AREAMODE<AREA_ID>

AREA_ID is 1 - Number of defined areas.
Status:

/SPC/G_SPC_ZONEINPUT<ZONE_ID>

ZONE_ID is 1 - Number of defined zones.
Status:

/SPC/G_SPC_ZONESTATUS<ZONE_ID>

ZONE_ID is 1 - Number of defined zones.
Status:

Supported events

Following events are supported:

More event types can very easy be added to the module.

Installation

git clone https://github.com/Goran58/node-spc-mqtt.git
cd node-spc-mqtt
npm install

Configuration

Start

./node-spc-mqtt.js