This nodejs module is used to integrate Siemens SPC intrusion system and Fibaro Home Center 2.
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 Siemens SPC intrusion system.
The module has only been tested on Home Center Firmware version 4.040.
The module uses SPC Web Gateway REST and Websocket API to get status from the SPC intrusion system and Fibaro REST API to set status of global variables in the Fibaro Home Center 2. The status of the global variables can then be used in Virtual Devices and Scenes to trigger actions or be displayed in Home Center GUI.
NOTE! The global variables are created automatically if they not exists in Home Center 2.
####G_SPC_AREA_MODE_<AREA_ID>
AREA_ID is 1 - Number of defined areas.
Values:
- "unset"
- "partset_a"
- "partset_b"
- "set"
- "unknown"
####G_SPC_ZONE_INPUT_<ZONE_ID>
ZONE_ID is 1 - Number of defined zones.
Values:
- "closed"
- "open"
- "short"
- "disconnected"
- "pir_masked"
- "dc_substitution"
- "sensor_missing"
- "offline"
- "unknown"
####G_SPC_ZONE_STATUS_<ZONE_ID>
ZONE_ID is 1 - Number of defined zones.
Values:
- "ok"
- "inhibit"
- "isolate"
- "soak"
- "tamper"
- "alarm"
- "trouble"
- "unknown"
Following events are supported:
- Zone closed/open
- Zone inhibited/de-inhibited
- Zone isolated/de-isolated
- Alarm armed/disarmed (Area set, Area partset A/B, Area unset)
- Burglar alarm/restored
More event types can very easy be added to the module.
git clone https://github.com/Goran58/node-spc-fibaro-hc2-binding
cd node-spc-fibaro-hc2-binding
npm install
- Modify the settings in config.json according to your environment.
NOTE! To allow automatically creation of the global variables, it seems, at least in FW 4.040, that you have to use user admin.
./node-spc-fibaro-hc2-binding.js