ESP8266 into existing alarm DSC System

ok, try this. When you go to add your card copy the sample config I provide and paste it in the manual card config window. Overwrite the “type=”’" line.

Edit: Hold on. I think there is a bug in that version and it’s not loading. That’s why you have the issue. I’ll fix it and push an update.

Edit: No, it’s ok. I had not refreshed the page. So, I’m not sure why you are having the issue.

One thing you can try when you go to add the card, if using chrome, press F12 to bring up the debug window and select console. Then press F5 to refresh the page. See if any errors come up on the console regarding alarm-keypad-card.js. If there are errors, that would explain why it’s not loading. I can’t see any issues here right now.

I was already copying your sample yaml over the manual card - I had to change references to dscalarm to my chosen $systemname but I assume that this wouldn’t be an issue.

I get the following error when I use chrome console but, with my limited knowledge, this just seems to be saying the same as the HA warning - card not found.

mwc-list-item-base.ts:224 GET https://xxxx.duckdns.org:8123/local/alarm-panel-card.js net::ERR_ABORTED 404 (Not Found)

There was also an additional error:

mwc-list-item-base.ts:224 Uncaught (in promise) https://xxxx.duckdns.org:8123/local/alarm-panel-card.js

As always, I would appreciate any suggestions you have.

ahhh… I see the issue. You are trying to refer to "/local/alarm-panel-card.js’. It should be “/local/alarm-keypad-card.js”. Your resource link is incorrect. I gave you the wrong link earlier… sorry

1 Like

Fantatstic - that fixed it :slight_smile: Thanks for your patience.

For the Classic series PC3000, PC2550, PC1500 - with unlocker support. and the embedded code esphome version.

Developed using the PC3000,

Hello, I hope you can help me. With the ‘ha_cards’ card, when I press any key I get the error: The esphome/dscalarm_alarm_keypress_partition service could not be called. service not found.
Everything else seems to work perfectly.
Thank you

It is already solved, I was with the old yaml, I have compiled the new one and it works perfectly

Hey guys, really cool project, wow new branch is amazing, first time building a circuit board, really enjoyed burning myself with a soldering iron, Dilbert I owe you a coffee.
Quick question, im using an HKD mini d1 -esp32
The board is connected and kinda working but not really. 18 21 22

Getting some readings -trouble message, partition 2 beeps, Ac Status, Battery Status, System online etc but my zones dont seem to be getting data and my Partitions are showing Unknown. Service alarm arming doesnt seem to work either.

Tried everything i can think of and read all the forum posts - Any ideas? I followed this diagram on a proto board:

logs are also spamming with about 10 of the same message ever second, dont know
if that is normal:

[22:05:24][I][Moduledata::956]: 00: 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Thanks in advance, keep up the good work!

Roadkill69, Either you have a wiring issue or you are using a system that is not supported by the firmware. What alarm system are you using? That data is invalid.

Hi Dilbert, thank you for the response,
My alarm system is the DSC PC1864, and the esp 32 board is

Will triple check my wiring again in the morning, i grounded the esp32 to the dsc ground, not sure if that will be an issue with the resistor versions circuit

Yes you do need to ground the esp to dsc ground (black wire) if you use the resistor version. Well, your system is supported. That esp32 board should also work fine. Only thing I can suggest is to ensure you use the correct pins to match your config in the yaml and of course check your other wiring.

thanks Dilbert, my pins are definitely right 18 21 22, checked now, also they are default to that on the new branch code in both dscalarm.yaml and dscalarm.h

I think it must be wiring, just not sure how.

I connected the transistor with emitter to ground/black, base to 18 and collector to green (resistors included)
Will play around some more and see if come right, thanks for the input

Update: So after playing around I accidentally solved the problem, total noob mistake, i had my esp 32 on the protoboard but I didnt solder it on yet incase i needed to pop it off and reprogram if i couldnt access ota, anyway it moved a bit while working on the board and made ‘better’ contact, boom all the readings rushed into the logs. I assumed the stand off pins made proper contact without soldering.

Still getting a couple moduledata and panel data messages, are these normal? my assumption is once i solder the esp32 it shouldnt do that anymore, unless my wiring is still kak

Thanks very much for this project! :slight_smile:

[20:14:23][D][info:1758]: status 03, last status 03,line2status 70,selection 01,partition=2,skip=0
[20:14:23][D][text_sensor:067]: 'dscalarm line1 partition 2': Sending state 'Secure System'
[20:14:23][D][text_sensor:067]: 'dscalarm line2 partition 2': Sending state 'Zone 11  <>'
[20:14:23][D][binary_sensor:036]: 'dscalarm Basement windows(z8)': Sending state OFF
[20:14:23][D][text_sensor:067]: 'dscalarm zone status ': Sending state 'OP:12'
[20:14:23][D][text_sensor:067]: 'dscalarm line1 partition 2': Sending state 'Secure System'
[20:14:26][I][Paneldata: :956]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 
[20:14:26][I][Moduledata::956]: 11: FF 01 FF FC 0F FF FF FF FF 03 00 00 00 00 00 00 
[20:14:27][I][Paneldata: :956]: 27: 27 00 82 05 80 03 80 B1 00 00 00 00 00 00 00 00 
[20:14:27][D][info:1758]: status 05, last status 05,line2status 70,selection 01,partition=1,skip=0
[20:14:27][D][text_sensor:067]: 'dscalarm line1': Sending state 'Armed:       '
[20:14:27][D][text_sensor:067]: 'dscalarm line2': Sending state 'Away            '
[20:14:27][D][info:1758]: status 03, last status 03,line2status 70,selection 01,partition=2,skip=0
[20:14:27][D][text_sensor:067]: 'dscalarm line1 partition 2': Sending state 'Secure System'
[20:14:27][D][text_sensor:067]: 'dscalarm line2 partition 2': Sending state 'Zone 11  <>'
[20:14:27][D][binary_sensor:036]: 'dscalarm Basement windows(z8)': Sending state ON
[20:14:27][D][text_sensor:067]: 'dscalarm zone status ': Sending state 'OP:8,OP:12'
[20:14:27][D][text_sensor:067]: 'dscalarm Trouble Msg ': Sending state ''
[20:14:27][D][text_sensor:067]: 'dscalarm line2 partition 2': Sending state 'Zone 11  <>'
[20:14:29][I][Paneldata: :956]: 27: 27 00 82 05 80 03 00 31 00 00 00 00 00 00 00 00 
[20:14:29][D][info:1758]: status 05, last status 05,line2status 70,selection 01,partition=1,skip=0
[20:14:29][D][text_sensor:067]: 'dscalarm line1': Sending state 'Armed:       '
[20:14:29][D][text_sensor:067]: 'dscalarm line2': Sending state 'Away            '
[20:14:29][D][info:1758]: status 03, last status 03,line2status 70,selection 01,partition=2,skip=0
[20:14:29][D][text_sensor:067]: 'dscalarm line1 partition 2': Sending state 'Secure System'
[20:14:29][D][text_sensor:067]: 'dscalarm line2 partition 2': Sending state 'Zone 11  <>'
[20:14:29][D][binary_sensor:036]: 'dscalarm Basement windows(z8)': Sending state OFF
[20:14:29][D][text_sensor:067]: 'dscalarm zone status ': Sending state 'OP:12'
[20:14:30][D][text_sensor:067]: 'dscalarm zone status ': Sending state 'OP:12'
[20:14:31][D][text_sensor:067]: 'dscalarm Partition 1 Msg ': Sending state '05: Armed away'
[20:14:35][D][text_sensor:067]: 'dscalarm line1': Sending state 'Armed:       '
[20:14:35][D][text_sensor:067]: 'dscalarm Partition 2 Msg ': Sending state '03: Zones open'
[20:14:39][D][text_sensor:067]: 'dscalarm beeps': Sending state '0'
[20:14:40][I][Paneldata: :956]: 27: 27 00 82 05 80 03 00 31 00 00 00 00 00 00 00 00 
[20:14:40][D][info:1758]: status 05, last status 05,line2status 70,selection 01,partition=1,skip=0
[20:14:40][D][text_sensor:067]: 'dscalarm line1': Sending state 'Armed:       '

Yes, you will see paneldata and module data messages. That’s normal. Those are raw panel messages that are decoded to provide the displayed alarm/zone statuses. Now they look valid.

Thanks Dilbert, got it all working! Automating lights with the passives in the house is really awesome and so responsive as well.
Best part i have passives everywhere :slight_smile: Thank you so much for all your hard work on this.

I also took some recordings of my alarm sounds, cleaned them up with some noise gates in my music software, and swapped them out with the 3 beep sounds.

Its not really necessary but anyway if you would like them here they are:

DSC Sounds - Google Drive

1 Like

Nice sounds. I’ll give them a try when I get a chance. Tks

Hey guys, im really stuck with programming in Disarm on the alarm card. Not sure
what i am doing wrong, as the stay, away, night etc worked out of the box.

What i have done so far:

The ESPHome disarm alarm service works with entering in the alarm code in the developer section
On the Alarm card i mapped cmd D to key D which stopped an error but it doesn’t do anything when pressed.
I am trying to map the D button (the one under Night)
I have added the services into my configuration.yaml like a previous post mentioned,
but not sure why this would be needed as the services are already in HA, and it didnt
work for me.

Any advise will be appreciated, thanks

update Solved: I just had to put my code in, facepalm:

button_A: STAY
button_B: AWAY
button_C: NIGHT
button_D: DISARM
button_E: null
button_F: <
button_G: '>'
button_H: null
cmd_A:
  keys: S
  partition: 1
cmd_B:
  keys: W
  partition: 1
cmd_C:
  keys: 'N'
  partition: 1
cmd_D:
  keys: 1234
  partition: 1
cmd_E:
  keys: null
  partition: 1
cmd_H:

I was just about to suggest that. As you noted, you don’t need to add any services in the configuration.yaml. That would only be needed if using mqtt.

Just in case, for those who asked me for a isolated board for ESP32 (based on octocoplers), im working on a PCB design. In my opinion is the best hardware for this proyect.
I’ll upload the files (eagle, gerber and boom) on the PCB Layouts folder.
Thank your for the patience!

1 Like

Very keen for this, thank you :slight_smile:

Hey guys,

On the new branch there is the emulated zone adapters as well as the esphome set zone fault.

If I am to understand this correctly, could I possibly map HA entities to trigger my alarm system and set off the siren.

Playing with the possibility of getting camera motion detection entities in home assistant to set off the alarm on motion. Not sure if this is even possible.

I have recently implemented Floorplan for my property, and mapped all my alarms motion detectors including outside beams, so I have a real time graphical representation of movement around the property which is insanely cool, really helps to find where my girlfriend is hiding too :joy: