You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DSC Classic series: uncomment for PC1500/PC1550 support (requires PC16-OUT configuration per README.md)
205
+
//#define dscClassicSeries
206
+
196
207
#include<SPI.h>
197
208
#include<Ethernet.h>
198
209
#include<PubSubClient.h>
199
210
#include<dscKeybusInterface.h>
200
211
201
212
// Settings
202
213
byte mac[] = { 0xAA, 0x61, 0x0A, 0x00, 0x00, 0x01 }; // Set a MAC address unique to the local network
203
-
constchar* accessCode = ""; // An access code is required to disarm/night arm and may be required to arm based on panel configuration.
214
+
constchar* accessCode = ""; // An access code is required to disarm/night arm and may be required to arm or enable command outputs based on panel configuration.
204
215
constchar* mqttServer = ""; // MQTT server domain name or IP address
205
216
constint mqttPort = 1883; // MQTT server port
206
217
constchar* mqttUsername = ""; // Optional, leave blank if not required
207
218
constchar* mqttPassword = ""; // Optional, leave blank if not required
208
219
209
220
// MQTT topics - match to Home Assistant's configuration.yaml
210
221
constchar* mqttClientName = "dscKeybusInterface";
211
-
constchar* mqttPartitionTopic = "dsc/Get/Partition"; // Sends armed and alarm status per partition: dsc/Get/Partition1 ... dsc/Get/Partition8
212
-
constchar* mqttZoneTopic = "dsc/Get/Zone"; // Sends zone status per zone: dsc/Get/Zone1 ... dsc/Get/Zone64
213
-
constchar* mqttFireTopic = "dsc/Get/Fire"; // Sends fire status per partition: dsc/Get/Fire1 ... dsc/Get/Fire8
222
+
constchar* mqttPartitionTopic = "dsc/Get/Partition"; // Sends armed and alarm status per partition: dsc/Get/Partition1 ... dsc/Get/Partition4
223
+
constchar* mqttZoneTopic = "dsc/Get/Zone"; // Sends zone status per zone: dsc/Get/Zone1 ... dsc/Get/Zone32
224
+
constchar* mqttFireTopic = "dsc/Get/Fire"; // Sends fire status per partition: dsc/Get/Fire1 ... dsc/Get/Fire4
214
225
constchar* mqttPgmTopic = "dsc/Get/PGM"; // Sends PGM status per PGM: dsc/Get/PGM1 ... dsc/Get/PGM14
215
226
constchar* mqttTroubleTopic = "dsc/Get/Trouble"; // Sends trouble status
216
227
constchar* mqttStatusTopic = "dsc/Status"; // Sends online/offline status
@@ -221,11 +232,16 @@ const char* mqttSubscribeTopic = "dsc/Set"; // Receives messages to w
221
232
// Configures the Keybus interface with the specified pins - dscWritePin is optional, leaving it out disables the
222
233
// virtual keypad.
223
234
#definedscClockPin3// Arduino Uno hardware interrupt pin: 2,3
235
+
#definedscPC16Pin4// DSC Classic Series only, Arduino Uno: 2-12
// DSC Classic series: uncomment for PC1500/PC1550 support (requires PC16-OUT configuration per README.md)
198
+
//#define dscClassicSeries
199
+
187
200
#include<SPI.h>
188
201
#include<Ethernet.h>
189
202
#include<PubSubClient.h>
190
203
#include<dscKeybusInterface.h>
191
204
192
205
// Settings
193
206
byte mac[] = { 0xAA, 0x61, 0x0A, 0x00, 0x00, 0x01 }; // Set a MAC address unique to the local network
194
-
constchar* accessCode = ""; // An access code is required to disarm/night arm and may be required to arm based on panel configuration.
207
+
constchar* accessCode = ""; // An access code is required to disarm/night arm and may be required to arm or enable command outputs based on panel configuration.
195
208
constchar* mqttServer = ""; // MQTT server domain name or IP address
196
209
constint mqttPort = 1883; // MQTT server port
197
210
constchar* mqttUsername = ""; // Optional, leave blank if not required
198
211
constchar* mqttPassword = ""; // Optional, leave blank if not required
199
212
200
213
// MQTT topics - match to Homebridge's config.json
201
214
constchar* mqttClientName = "dscKeybusInterface";
202
-
constchar* mqttPartitionTopic = "dsc/Get/Partition"; // Sends armed and alarm status per partition: dsc/Get/Partition1 ... dsc/Get/Partition8
203
-
constchar* mqttZoneTopic = "dsc/Get/Zone"; // Sends zone status per zone: dsc/Get/Zone1 ... dsc/Get/Zone64
204
-
constchar* mqttFireTopic = "dsc/Get/Fire"; // Sends fire status per partition: dsc/Get/Fire1 ... dsc/Get/Fire8
215
+
constchar* mqttPartitionTopic = "dsc/Get/Partition"; // Sends armed and alarm status per partition: dsc/Get/Partition1 ... dsc/Get/Partition4
216
+
constchar* mqttZoneTopic = "dsc/Get/Zone"; // Sends zone status per zone: dsc/Get/Zone1 ... dsc/Get/Zone32
217
+
constchar* mqttFireTopic = "dsc/Get/Fire"; // Sends fire status per partition: dsc/Get/Fire1 ... dsc/Get/Fire4
205
218
constchar* mqttPgmTopic = "dsc/Get/PGM"; // Sends PGM status per PGM: dsc/Get/PGM1 ... dsc/Get/PGM14
206
219
constchar* mqttSubscribeTopic = "dsc/Set"; // Receives messages to write to the panel
207
220
208
221
// Configures the Keybus interface with the specified pins - dscWritePin is optional, leaving it out disables the
209
222
// virtual keypad.
210
223
#definedscClockPin3// Arduino Uno hardware interrupt pin: 2,3
224
+
#definedscPC16Pin4// DSC Classic Series only, Arduino Uno: 2-12
0 commit comments