Based on https://github.com/Goran58/node-spc-fibaro-hc2-binding
This nodejs module is used to integrate Siemens SPC intrusion system and Domoticz.
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 Domoticz beta V2.3.013.
The module uses SPC Web Gateway REST and Websocket API to get status from the SPC intrusion system and Domoticz REST API to set status of User variables in the Domoticz. The status of the User variables can then be used in Virtual Devices and Scenes to trigger actions or be displayed in Domoticz GUI.
NOTE! The User variables are created automatically if they not exists in Domoticz.
####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/fergalom/node-spc-domoticz-binding
cd node-spc-domoticz-binding
npm install
- Modify the settings in config.json according to your environment.
./node-spc-domoticz-binding.js