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
Firstly, thanks for all work put in to the projects! I'm a bit of a novice but I've been working on taligentx's implementation for my DSC PC3000 (classic) panel. I was able to get Dilbert66's code working (likely because it uses the external components feature to fetch everything) but that project doesn't support classic panels. I'm getting compile errors in ESPHome that I think are related to the files I've added to my dscKeybusInterface directory within ESPHome. I added dscAlarm.h from the extras repo and then everything from the SRC folder. The other thing is that I get an error where the pins are not defined and it suggests new pins but I dont know where to configure the pins i'm using on my ESP32 board.
esphome/dscKeybusInterface folder that my .yaml includes
substitutions:
accessCode: !secret access_code #Only comes into effect if a password prompt occurs when arming eg. night mode
name: "dscalarm" #unique network name
friendly_name: "DSC Alarm" #friendly name for this device
panelId: DSCAlarm #used as the service variable name.
INFO ESPHome 2024.8.3
INFO Reading configuration /config/esphome/esphome-web-339449.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing dscalarm (board: esp32dev; framework: arduino; platform: platformio/[email protected])
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Update @ 2.0.0
Compiling .pioenvs/dscalarm/src/main.cpp.o
In file included from src/dscKeybusInterface.h:163,
from src/dscAlarm.h:2,
from src/main.cpp:60:
src/dscKeybus.h:36:12: error: redefinition of 'const byte dscPartitions'
const byte dscPartitions = 8;
^~~~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:25:12: note: 'const byte dscPartitions' previously defined here
const byte dscPartitions = 1; // Maximum number of partitions - requires 19 bytes of memory per partition
^~~~~~~~~~~~~
In file included from src/dscKeybusInterface.h:163,
from src/dscAlarm.h:2,
from src/main.cpp:60:
src/dscKeybus.h:37:12: error: redefinition of 'const byte dscZones'
const byte dscZones = 8;
^~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:26:12: note: 'const byte dscZones' previously defined here
const byte dscZones = 1; // Maximum number of zone groups, 8 zones per group - requires 6 bytes of memory per zone group
^~~~~~~~
In file included from src/dscKeybusInterface.h:163,
from src/dscAlarm.h:2,
from src/main.cpp:60:
src/dscKeybus.h:38:22: error: redefinition of 'const byte dscBufferSize'
const DRAM_ATTR byte dscBufferSize = 50;
^~~~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:34:22: note: 'const byte dscBufferSize' previously defined here
const DRAM_ATTR byte dscBufferSize = 50;
^~~~~~~~~~~~~
In file included from src/dscKeybusInterface.h:163,
from src/dscAlarm.h:2,
from src/main.cpp:60:
src/dscKeybus.h:39:22: error: redefinition of 'const byte dscReadSize'
const DRAM_ATTR byte dscReadSize = 16;
^~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:27:12: note: 'const byte dscReadSize' previously defined here
const byte dscReadSize = 2; // Maximum bytes of a Keybus command
^~~~~~~~~~~
In file included from src/main.cpp:60:
src/dscAlarm.h:5:21: error: 'D1' was not declared in this scope
#define dscClockPin D1 // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
^~
src/dscAlarm.h:9:24: note: in expansion of macro 'dscClockPin'
dscKeybusInterface dsc(dscClockPin, dscReadPin, dscWritePin);
^~~~~~~~~~~
src/dscAlarm.h:5:21: note: suggested alternative: 'm1'
#define dscClockPin D1 // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
^~
src/dscAlarm.h:9:24: note: in expansion of macro 'dscClockPin'
dscKeybusInterface dsc(dscClockPin, dscReadPin, dscWritePin);
^~~~~~~~~~~
src/dscAlarm.h:6:20: error: 'D2' was not declared in this scope
#define dscReadPin D2 // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
^~
src/dscAlarm.h:9:37: note: in expansion of macro 'dscReadPin'
dscKeybusInterface dsc(dscClockPin, dscReadPin, dscWritePin);
^~~~~~~~~~
src/dscAlarm.h:6:20: note: suggested alternative: 'm2'
#define dscReadPin D2 // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
^~
src/dscAlarm.h:9:37: note: in expansion of macro 'dscReadPin'
dscKeybusInterface dsc(dscClockPin, dscReadPin, dscWritePin);
^~~~~~~~~~
src/dscAlarm.h:7:21: error: 'D8' was not declared in this scope
#define dscWritePin D8 // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
^~
src/dscAlarm.h:9:49: note: in expansion of macro 'dscWritePin'
dscKeybusInterface dsc(dscClockPin, dscReadPin, dscWritePin);
^~~~~~~~~~~
src/dscAlarm.h:7:21: note: suggested alternative: 'z8'
#define dscWritePin D8 // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
^~
src/dscAlarm.h:9:49: note: in expansion of macro 'dscWritePin'
dscKeybusInterface dsc(dscClockPin, dscReadPin, dscWritePin);
^~~~~~~~~~~
In file included from src/main.cpp:62:
src/dscKeypad.h:28:12: error: redefinition of 'const byte dscBufferSize'
const byte dscBufferSize = 50;
^~~~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:34:22: note: 'const byte dscBufferSize' previously defined here
const DRAM_ATTR byte dscBufferSize = 50;
^~~~~~~~~~~~~
In file included from src/main.cpp:62:
src/dscKeypad.h:30:12: error: redefinition of 'const byte dscReadSize'
const byte dscReadSize = 16; // Maximum bytes of a Keybus command
^~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:27:12: note: 'const byte dscReadSize' previously defined here
const byte dscReadSize = 2; // Maximum bytes of a Keybus command
^~~~~~~~~~~
In file included from src/main.cpp:63:
src/dscClassicKeypad.h:28:12: error: redefinition of 'const byte dscBufferSize'
const byte dscBufferSize = 50;
^~~~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:34:22: note: 'const byte dscBufferSize' previously defined here
const DRAM_ATTR byte dscBufferSize = 50;
^~~~~~~~~~~~~
In file included from src/main.cpp:63:
src/dscClassicKeypad.h:30:12: error: redefinition of 'const byte dscReadSize'
const byte dscReadSize = 2; // Maximum bytes of a Keybus command
^~~~~~~~~~~
In file included from src/main.cpp:59:
src/dscClassic.h:27:12: note: 'const byte dscReadSize' previously defined here
const byte dscReadSize = 2; // Maximum bytes of a Keybus command
^~~~~~~~~~~
In file included from src/main.cpp:63:
src/dscClassicKeypad.h:32:6: error: multiple definition of 'enum Light'
enum Light {off, on, blink}; // Custom values for keypad lights status
^~~~~
In file included from src/main.cpp:62:
src/dscKeypad.h:32:6: note: previous definition here
enum Light {off, on, blink}; // Custom values for keypad lights status
^~~~~
*** [.pioenvs/dscalarm/src/main.cpp.o] Error 1
========================== [FAILED] Took 3.51 seconds ==========================
The text was updated successfully, but these errors were encountered:
Firstly, thanks for all work put in to the projects! I'm a bit of a novice but I've been working on taligentx's implementation for my DSC PC3000 (classic) panel. I was able to get Dilbert66's code working (likely because it uses the external components feature to fetch everything) but that project doesn't support classic panels. I'm getting compile errors in ESPHome that I think are related to the files I've added to my dscKeybusInterface directory within ESPHome. I added dscAlarm.h from the extras repo and then everything from the SRC folder. The other thing is that I get an error where the pins are not defined and it suggests new pins but I dont know where to configure the pins i'm using on my ESP32 board.
esphome/dscKeybusInterface folder that my .yaml includes
my .yaml
The errors when I compile
The text was updated successfully, but these errors were encountered: