Comments (10)
After about one week of intense testing, everything is working perfectly with a proper step-down convertor and the wemos connected directly to the panel.
During the build and testing I managed to burn the wemos d1 pro and I had to use the wemos d1 mini which, without ground from the panel did not show any activity on the OUT mqtt topic.
Just a heads up for anyone who is trying to make it work:
--> You can edit the firmware file (ParadoxAlarmSystemOTA.ino) and add a desired password for the board hotspot (when the board is not connected to your wifi).
Add the password on this line:
if (!wifiManager.autoConnect(Hostname, "")) {
Like:
if (!wifiManager.autoConnect(Hostname, "password")) {
Now your board settings are secure. And if your board cannot connect to your WiFi it will create a hotspot with the password you've added.
--> After flashing and configuring wifi and mqtt, the only test you can make is to check if the board has connected to your WiFI and mqtt topic.
You need to connect the board to the panel in order to send/receive info on the mqtt topics. The ground from the panel is a must. Everything else will just fail.
--> For Home Assistant use platform: mqtt, intead of manual_mqtt like:
alarm_control_panel:
- platform: mqtt
name: Home Alarm
state_topic: "paradoxdCTL/hassio/Arm"
command_topic: "paradoxdCTL/in"
code: 1234 # <- this is optional, it's the code use to arm/disarm from Home Assistant
payload_disarm: '{"password":"0000","Command":"disarm","Subcommand":"0"}'
payload_arm_night: '{"password":"0000","Command":"sleep","Subcommand":"0"}'
payload_arm_home: '{"password":"0000","Command":"stay","Subcommand":"0"}'
payload_arm_away: '{"password":"0000","Command":"arm","Subcommand":"0"}
This way it will also be sent to homekit, if you have it enabled.
Again, big thanks for everything!
from paradoxrs232tomqtt.
If you leave the topics as default in the firmware then all you have to do is to add the state_topic and command_topic to your alarm_control_panel in HA as above.
The HA will listen to the state_topic and post the payloads in command topic.
That's all.
If you want, you can add a few sensors to monitor the zones and perhaps trigger additional notifications if you like.
The alarm zones mqtt topics are : "paradoxdCTL/hassio/zone__" with values of ON and OFF
Something like (including the status):
sensor:
- platform: mqtt
name: alarm_status
state_topic: 'paradoxdCTL/hassio/Arm'
- platform: mqtt
name: alarm_zone_1
state_topic: 'paradoxdCTL/hassio/zone1'
- platform: mqtt
name: alarm_zone_2
state_topic: 'paradoxdCTL/hassio/zone2'
- platform: mqtt
name: alarm_zone_3
state_topic: 'paradoxdCTL/hassio/zone3'
- platform: mqtt
name: alarm_zone_4
state_topic: 'paradoxdCTL/hassio/zone4'
- platform: mqtt
... ...
Enjoy
from paradoxrs232tomqtt.
from paradoxrs232tomqtt.
from paradoxrs232tomqtt.
I also found the market flooded with a cheaper d1 clone, the chip is “ok” but the regulator seems to be unstable causing loads of unforeseen issues.
from paradoxrs232tomqtt.
For now you should be able to just common the ground between the esp grnd pin and the panel grnd, provided the PSU is semi decent it shouldn’t cause harm.
from paradoxrs232tomqtt.
Thanks for your quick replay.
Please believe me that I have tried sooo many things until I believe it was the alarm installation at fault.
The alarm was already installed and configured when I got it, so at first I believed it was the GPRS module installed or the phone line added... (took them out... of course it triggered the alarm for minutes ... )
So, last week I had hours and hours flashing in and out my d1 mini (ripoff) and tried with rx-tx, rx-tx, flash, another core, another pubsub, with that ground on /off, with the computer on micro-usb, with a lot more of serial messages ... all that without a result ...
-- and now that I just remembered, when I navigate to the board IP shoudn't I get the content of what's in the "webpage.ino"? The thing is that I only have "padaroxdCTL" text on that page and nothing else..
Anyway, I will try and post here my results. I am waiting for a couple of shields for the pro to be delivered, as I thought it would be "easier" to put the shield on top of the board ...
Not a problem getting a better buck converter and solder it. I know they almost free, only problem with aliexpress is that we wait for a month to get them
In the meantime I've seen that Maragelis has added a few resistors (in his photos). Do I need to add any resistors or a simple TX->RX and RX->TX plus power from the serial port should do it?
Thanks!
from paradoxrs232tomqtt.
from paradoxrs232tomqtt.
Hi Flopescu, thank you so much for posting this code for Home Assistant. I am in the process of trying to get this working myself so this should be a huge help. One question though, I currently have an alarm_control_panel setup in HA and really just want to get the Paradox alarm to coordinate with HA such that if either one is armed/disarmed then the other alarm follows. Do you know how I can integrate the mqtt from this Paradox interface to my existing HA alarm panel?
from paradoxrs232tomqtt.
Thank you.
How would I go about getting HA to send arm/disarm commands to the paradox alarm?
from paradoxrs232tomqtt.
Related Issues (20)
- Wemos D1 Mini Pro - frequent reconnects HOT 35
- Δεν αποκρίνεται το wemos HOT 1
- Suggestions HOT 8
- Commands always result in "Problem connecting to panel" HOT 2
- few little things HOT 2
- panel id
- What Panel ID and PC Password is used HOT 1
- Socket error on client HOT 1
- Problem Connecting to Panel HOT 2
- BabyWare or set Zone dara name HOT 2
- Two Panels - How can I see what panel is arm HOT 4
- Compatibility with sp5500 and esp32 nodemcu HOT 1
- Showing Disarm when is arm HOT 15
- Pending status on armed_away HOT 1
- Possible to use this FW with ESP-01S? HOT 2
- How to set this params. with pre-compiled binary? HOT 4
- Paradox MG6250 series - how to connect it?
- trigger
- Paradox Evo192 status to ESP8266
- Reconnect problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paradoxrs232tomqtt.