This project uses a wemos esp8266 to read events of the serial bus of any Paradox alarm system and send it to Mqtt
Alarm system serial on wemos paradoxTX gpio15 wemos d8 paradoxRX gpio13 wemos d7
Debug messages can be read through usb on the wemos.
Arduino IDE settings
Edit the PubSubClient.h header file and change MQTT_MAX_PACKET_SIZE to 128
Libs
wifimanager
pubsubclient
arduinojson
Set Hassio flag to 1 for Home assistant see wiki (Home Assistant in V2)
The 37 byte message is broken down into a json message with "Event Group" and "Sub-group"
and one more dummy attribute which is the zone/partition label.
See wiki for more info on Groups and sub groups
After flashing the wemos connect to its wifi, (paradoxdCTL), go to page 192.168.4.1 give it your wifi credentials and MQtt server address. Thats it
Mqtt topics
paradoxdCTL/out <- all alarm event messages
paradoxdCTL/status <- program messages
paradoxdCTL/in <- in topic
paradoxdCTL/status/Arm <- Arm status message
paradoxdCTL/status/Zone <- Zone status messages
HomeAssistant mqtt topics
paradoxdCTL/out/zoneX where x is zone number from 1-32
paradoxdCTL/out/zoneX gives values ON and OFF
paradoxdCTL/out/state gives values:
disarmed
armed_home
armed_away
triggered
json Command payload template
{
"password":"1234",
"Command":"arm",
"Subcommand":"0"
}
password is user 4 digit password
Command can be one of the following
arm,
disarm,
sleep,
stay,
bypass,
armstate,
zonestate,
panelstatus
subcomand depends on command ,
if Command is arm,sleep,disarm subcomand is partition
if Command is bypass subcomand is zone number from 0 to 31
if Command is panelstatus subcomand 0 = panel data
or subcomand 1 = panel voltage and battery data
20190130 added PGM support (command "PGM_ON" subcomand "0-31)
20190114 V2 Live (Homeassistant)
20190104 Added wiki Node-red v2 flow
20190103 Added v2 test branch (stable working)
20180804 Wiki added Home Assistant Config (works with node-red)
20180721 Changed to user based password, use the same 4 digit code used on panel for control.
Continue reading wiki ....