Starting Slowly #141
Replies: 162 comments 102 replies
-
|
The green wire is data to/from peripherals to the panel and the yellow is data from the panel. You might get away not using the green wire but why? You need the yellow wire absolutely, otherwise you will not see anything coming from the panel. The optocoupler is there for a reason, as it's a switch between the red line and the green line. Zeners are not switches. The other alternative to an optocoupler is to use a pnp/npn transistor pair since this is a high side switch. Also note that this is not technically true arduino code, this is an ESPHOME implementation. I advise you to read up on ESPHOME: https://esphome.io/ The resistors are for passive reading of the lines, the optocoupler or transistor pair are needed for sending to the panel. |
Beta Was this translation helpful? Give feedback.
-
|
If you just want to capture data from the panel, yes the yellow wire only is needed. The esp devices are 3.3 volt inputs not 5.1 , FYI. Ensure you use a high enough resistor to not load up the bus. At least 10k if possible. There is a full blown web based keypad component that fully emulates a display keypad, where you would use your browser to access the panel. No need for a physical one. |
Beta Was this translation helpful? Give feedback.
-
|
That is fantastic! Can this virtual keypad be used for programming the Vista 20P (ie using the installer code, etc)? |
Beta Was this translation helpful? Give feedback.
-
|
Yes. Absolutely |
Beta Was this translation helpful? Give feedback.
-
|
That's great. I'd rather use it locally, however. Do you think I could just use the serial monitor of the Arduino IDE? |
Beta Was this translation helpful? Give feedback.
-
|
The serial monitor? It would just display logs? I don't understand. This is not an Arduino IDE project. It will not work with the IDE. This is an ESPhome application. The web keyboard runs on the local ESP32 so it is all local. If you're not planning on using ESPhome with an ESP32 device then I can't really offer any assistance. |
Beta Was this translation helpful? Give feedback.
-
|
I meant that I'm a little reluctant to use Telegram to control my alarm panel. I suppose if I only use the yellow wire and your virtual keyboard for display, I can still use the keypad for data entry. As far as you being helpful, you have been fantastic. Thank you so much for your help. |
Beta Was this translation helpful? Give feedback.
-
|
Telegram is a different component to the keypad component. They are not the same or related. They are all optional. You don't need to have the telegram component installed. I don't know why you would go through the bother of building it only with the yellow line. To use the virtual keypad, you need to have the green circuit to talk to the panel anyhow. Anyways, good luck with your project. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks again. I think my main confusion is that I've never used Github or Esphome. From your readme file: I don't know how to make the config file to mention. As you can see, I am totally lost, but it sounds so promising. I'm feeling this is just beyond me. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
|
This is why I sent you the link to esphome so you can read up about it. The web keypad is part of a configuration in the VistaAlarm.yaml from the components directory. You would would just modify this one file. I can't go into details as you really need to read up on how this all works. |
Beta Was this translation helpful? Give feedback.
-
|
Looks like I'll have to dedicate a fair bit of time for this. I'll give it a try in the new year. Thanks again! Happy Holidays and Happy New Year!! |
Beta Was this translation helpful? Give feedback.
-
|
Have fun and Happy Holidays and New to you as well! |
Beta Was this translation helpful? Give feedback.
-
|
After seeing your comments on HA, I decided to try again. I had thought you need HA to install ESPHome on the ESP32. I'd actually be very happy not bothering with HA or another home automation system. Yet more complications fo me. I managed to install the ESP32, using the online tool (https://web.esphome.io). I can see it on http://10.0.0.91. I used command line on OSX terminal to install python, added the appropriate PATH, did "pip3 install wheel" and "pip3 install esphome", and now the esphome version is 2024.12.1. Great! So, looks like I got the ESP32 going, and my terminal set up. I made the demo "esphome wizard livingroom.yaml" and is looks good by "esphome config livingroom.yaml" BUT, "esphome logs livingroom.yaml" does not seem to work because neither logging choices connect. ALSO, "esphome run livingroom.yaml" runs well, but ends with a series of the following: INFO Installing platformio/framework-arduinoespressif32 @ ~3.20005.0 No folder of bin is created that I may be able to install via web. I cannot seem to find out what is the problem, or how to generate the bin file that I may be able to install by the web interface. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
|
That's an ESphome error. I can't help you with that. They've made a lot of updates lately so this might be related. You might want to post this on the esphome forum for help. I don't think it's anything you did wrong. There is an issue with the esp library that's it's trying to download. |
Beta Was this translation helpful? Give feedback.
-
|
I managed to flash it with the demo livingroom.yaml. I really don't know how it ended up working. Where do I go from here? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Just curious, why did you make your own template for text sensors etc? What are the benefits over using the defaults? |
Beta Was this translation helpful? Give feedback.
-
|
The reason I use customized sensors is to enable me to set and store the sensor id type for each alarm panel sensor, otherwise I won't know what the sensor represents. Ie, a zone, a display , etc. Customizing allows me to set whatever attributes I need. Be aware that esphome does not keep track or store the "id" anywhere in the object list data for the sensors so being able to identify which sensor is for instance "z5" is impossible unless I add code to store the "id" somewhere or populate an array in the alarm code to keep track of the association. |
Beta Was this translation helpful? Give feedback.
-
|
I'm thinking of adding an LM7805 to run the ESP32 off the Vista. In your diagram you note this is not optimal. Have you tried it? I don't have any wired sensors, just RF. Do you think it would be ok? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I use those buck converters and they work great. Also, I'm pretty sure you'll be fine running the second system with those sensors as long as they are only talking to one panel. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. What do you mean by “talking to“? Both panels would be receiving information. Does the system panel provide information to the sensor?
|
Beta Was this translation helpful? Give feedback.
-
|
Rf sensors send to the transceiver which is connected to the panel. I have never tried having an RF sensor send data to two different transceivers. I assume that should work fine as it's a one way communications. I don't have an RF setup for the vista since my main system is a DSC. I wrote the vista rf code using logs of other users systems |
Beta Was this translation helpful? Give feedback.
-
|
I hooked the second one up. So far so good. No interference.
Well, you did a great job on the RF if you didn’t test it at all. I only use RF. No hardwired sensors or outputs yet. That’s what my second panel is for testing.
Thanks again.
|
Beta Was this translation helpful? Give feedback.
-
|
Well, I simulate the panel RF data packets so that I can test the results as if there was real instance. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting. I did not set up the sensors on the Vista, but only added the RF numbers to the yaml. They are reporting as expected, but not triggering alarms, as expected. It looks like it may receive even if the RF numbers were not added to the yaml. Again, makes sense. I thought you might be interested. |
Beta Was this translation helpful? Give feedback.
-
|
But it wasn’t working prior to my adding the RF numbers to the yaml.
|
Beta Was this translation helpful? Give feedback.
-
|
That means that you did not have the zones programmed in the panel for those rf channels and have the zones setup in the yaml. |
Beta Was this translation helpful? Give feedback.
-
|
Right. That's what I said earlier. Sorry for the confusion. |
Beta Was this translation helpful? Give feedback.
-
|
This is the sensor that is now faulty: |
Beta Was this translation helpful? Give feedback.
-
|
Don't use an alarm sensor to do a template publish action. Use a platform: template sensor for that. I removed all template publish from alarm sensors as they are not the same. In this case, make sure the sensor with id "triggered_sensor" is a platform: template |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I have a fair bit of experience with programming the Arduino, as well as building electronics. I have a Vista 20P alarm system, and can program it using my 6150 keypad, which is rather crippling as there is no alphanumeric display.
But I don't have any experience with GitHub or Home Assistant. So, I was thinking about starting slowly by setting up an Arduino display only, while only using a 6150 keyboard for data input. Then I would go from there slowly to full implementation.
After examining the wiring schematics, I figure of that the Green wire is the 'Data In' wire to the Keypad. If I'm only doing the display, would I only need it and NOT the Yellow wire? And does it only require a Voltage drop to 5V to the Arduino (I was thinking of using 2 resistors, with a 5.1V Zener diode and a small capacitor parallel to the lower resistor) without an opto coupler?
As far as the Arduino code, would your full implementation work without the other wires hooked up? I was going to add an alphanumeric display to the Arduino code.
Thank you so much for your project!
Beta Was this translation helpful? Give feedback.
All reactions