Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modification of the sketch to use with telegram app! #11

Open
javierferwolf opened this issue Feb 25, 2021 · 1 comment
Open

Modification of the sketch to use with telegram app! #11

javierferwolf opened this issue Feb 25, 2021 · 1 comment

Comments

@javierferwolf
Copy link

I want to thank you for @ipodmusicman your contribution to the paradox project!
I want to modify its sketch to be able to control and receive the events through the telegram application! I am using for this purpose an esp8266 nodemcu module!
I have started with the modification but the problem I have is that after a certain time the Paradox panel loses communication with the esp8266 module, it is like the serial port is saturated and it does not transmit anymore!

Please if someone could inform me of what could be happening?
thank you

@ipodmusicman
Copy link
Owner

Hi javierferwolf

I know that after an amount of time, when a command is issued to the sketch, like arming the alarm, etc, it has to re-logon to the board to do that, but for zone updates, etc, the board pushes these commands to the serial port which the sketch interprets and sends out MQTT messages.

I am not entirely sure if the code that you wrote that to communicate with Telegram is interfering with the sketch as it might be blocking waiting for data from Telegram thus not giving any IO time to the serial port. My ESP8266 knowledge in terms of it being able to "mult-thread" is fairly limited.

May I suggest that you look at adding the Telegram notification to an external entity like getting the sketch to send MQTT messages via a broker to Home Assistant. You can set up Home Assistant to send notifications to Telgram based on events published by the sketch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants