/ParadoxRs232toMqtt

esp8266, serial bus to mqtt for Paradox alarm systems

Primary LanguageC++MIT LicenseMIT

ParadoxRs232toMqtt

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 to wemos through RX/TX
or
paradoxTX gpio15 wemos d8 paradoxRX gpio13 wemos d7
using serial_swap 1


Arduino IDE settings

Edit the PubSubClient.h header file and change MQTT_MAX_PACKET_SIZE to 256

Libraries:
Arduino core 2.4.1
WifiManager by tzapu 0.12.0
PubSubClient by Nick O`Leary 2.6.0

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


HomeAssistant mqtt topics

paradoxdCTL/hassio/Arm/zoneX where x is zone number from 1-32

paradoxdCTL/hassio/Arm/zoneX gives values ON and OFF

paradoxdCTL/hassio/Arm 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,
panelstatus
setdate
PGM_ON
PGM_OFF

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



20190212 Added retain message on hassio/Arm topic
Added the ability to add credentials to mqtt.
Added Homekit topic for Homebridge plugin. (comming soon).

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 ....