Thanks!
I have done a project earlier with the D1 mini, but otherwise totally noob with these things.
I ordered an ESP32, but in the meanwhile I tried with the D1 mini.
Were there otherwise any breadboard diagram somewhere or a picture of the physical solution (probably get the ESP32 a good timing til I’ve fried this one)? I will put the yellow to D1 and green to D2 of D1_mini.
And did I understand correctly I only need the mosfet, ESP32 and some wires/breadboard?
EDIT: I managed to flash it using USB. When I removed from USB and just connected it to the plug it started sending data to HA. I’m not sure what sensors are what though, I guess that’s the next step to find out what is what. I only have 8 on my keypad.
So I used this wiring, but I didn’t understand what wire is supposed to bu used for writing (dscwritepin)? I left it as is but I don’t have any write attached.
Yes, this circuit is bidirectional. It’s used for both read/write. Saves wiring an extra pin. The box in the dotted area is an alternate cicuirt that uses a bob-12009 instead of the two mosfets.
The ESP32 is on its way, too bad its weekend already.
When plugging in the device the keypad’s lights for each sensor somehow stops lighting up when activated. And I get no signals yet inside HA. When checking logs via connecting in terminal using esphome, I get this:
[21:27:23][D][switch:055]: ‘Connection’: Sending state OFF
[21:27:48][D][switch:055]: ‘Connection’: Sending state ON
[21:27:51][D][switch:055]: ‘Connection’: Sending state OFF
[21:28:07][D][switch:055]: ‘Connection’: Sending state ON
[21:28:10][D][switch:055]: ‘Connection’: Sending state OFF
[21:28:20][D][switch:055]: ‘Connection’: Sending state ON
So something is off. Maybe it’s just related to the D1_mini and will get fixed?
I also didn’t know what the black “GND” was supposed to be connected to? I didn’t have a black connection in my DSC, but a “EGND”, which is in europe the green/yellow ground for the house electricity. Seems like it’s close to be working though.
And I’m no expert on wiring and cable management but it looks like I am not the only amateur working on this system
Use the "Aux - " for the gnd in your case. I’m not sure what the egnd is for. Without gnd connected you will get all kinds of spurious stuff on the keybus. You can use the “Aux +” for the red wire if you need 12v.
Thanks. I got the ESP32 today and got it setup. However, when connected (BLK = AUX-) the keypad starts to beep every other second. No readings either from the panel like I had before.
Will triple check the wirings but I have no further ideas. Just making sure, is that additional GND supposed to be somewhere? If black = AUX-, connected to ESP gnd, then what is that thing in the middle? And I had 2 gnd on my ESP32, but I assume I can use either?
BTW: In the YAML there were really many different sensors. I assume I should not maybe use them all, could this confuse it maybe? I have 8 sensors showing on my keypad and as you see in the picture of the board I have Z1-Z4, but no idea which one is which yet.
You are supposed to modify the yaml sensors in the config to match yours. The yaml is only an example. You can remove any extra sensors that are not needed and change the names to match your own use.
As to the schematic , I guess you’ve never used schematics before. The triangle is a symbol representing a gnd line. That’s all.
Been debugging the whole evening but no solution.
Tested with the EGND (earth ground?) too but works similarly bad, only difference is that the keypad is at least not beeping. However I get 7V over EGND and AUX-, so switched back to using AUX-. I opened the keypad and there were same cables and named B (AUX), G (GRN) and Y (YEL) so this should be correct now.
No idea how to even know what is going wrong.
I would have wanted to test without the writing, but uncommenting the line is resulting in some “Expected integer, but cannot parse as an integer.” So I assume it’s used in the python script.
Interesting. Not sure what the issue you had with the master version. Might have been a config setting on one of the pins. Measuring between yellow and grnd and green and grd with a dc meter will not get you a true value as those are data lines which are pulsing between 12v and gnd. You will just be measuring an rms value. Glad you got it working.
Edit: Ahhh… I just realized that you just indicated that you loaded the “dev” branch version now. You must have been running the master before… Well, that explains it… The master version does not support the mosfet option (you won’t see that schematic on that branch) so it won’t work at all. Only the dev branch supports bidirectional data.
Oh okay!
I mixed them up earlier when I got some “mg_lib” error earlier
Thank you so much for the help! I will now continue with cracking the code and learning more on how to use this system and find out where the sensors are placed. Would have been good with some kind of manual left at the house but I guess we’ll have to find out the hard way
So I managed to run the cracking too. It found code 0586.
But when I try using that code, I get a short beep followed by a long beep, which to me sounds wrong. Anyway, I was not able to continue after that beep to do any programming.
So I ran through all 0587-9999 and found no other installer code found. (I thought that it might have found some other code maybe that also allowed something). I tried using the 0586 to also arm the system but that did not work either. Could it be different keypads returning a bit different responses?
But now I managed to set up a new master code using the installation code (thought they were the same) and added some codes and even managed to activate the alarm. Big thanks
Have anybody thought about using these further in the home assistant?
So I think like this:
Arm using HA (I assume this could be possible as a switch?) or keypad
Possibly automatically disarm when phone is connected to wifi?
Automatically arm when phones are away from home?
if alarm/fire alarm is activated, push notification in home assistant or some other notice? Call or something from HA.
EDIT: It seems like the system is calling central station (good to know), luckily it failed Maybe it would be possible to call my personal number instead, since I don’t have a need for active security?
Just disable the communications in program section 380 , option 1 then it won’t try to call anywhere. You can then set HA automations to alert you on any binary sensor change you want from the panel. That’s the whole reason to interface the alarm panel to HA. You can do any type of automations or controls you want using the sensors generated from the esp api.
I want to use ESP32C3 instead of WemosD1. And for Web Keypad component. I uploaded code but it doesn’t work properly. The display only shows “ESP Module Start”. It works with ESP32dev module
Even if you’re using the ESP32-C3 mini which has the same size of Wemos D1, they used different pin numbers. For example GPIO 22 on WEMOS D1 corresponds to GPIO 10 on ESP32-C3 mini and GPIO 21 corresponds to GPIO 8 respectively.