ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
357 stars 95 forks source link

Trigger alarm via mqtt in new firmwares. #162

Open yozik04 opened 4 years ago

yozik04 commented 4 years ago

Feature description

Implement an MQTT endpoint to send a message to alarm.

yozik04 commented 4 years ago

I have pushed https://github.com/ParadoxAlarmInterface/pai/tree/send_panic branch to verify the code.

MQTT topic format: paradox/panic/{panic_type}/{partition} Payload: {user_id}

Replace data in curly brackets.

panic_type can be:

user_id and partition: numeric id or label

yozik04 commented 4 years ago

That will fail. I need full debug output what was received from the panel after this command.

gytisgreitai commented 4 years ago

So this is not possible now? I've created a battery powered door contact with esp8266 and was thinking that I could use this to trigger the alarm if the door is opened and partition is in arm mode

yozik04 commented 4 years ago

Not yet. Something is missing. Unfortunately no documentation.

DjBac commented 3 years ago

Are there any updates on this topic? It would be a great function of pai. At the moment I can trigger the alarm with an esp32 relay used as a zone, but triggering it through mqtt would be awesome!

yozik04 commented 3 years ago

Nope, unfortunately.

DjBac commented 3 years ago

Thank you!

gytisgreitai commented 3 years ago

@DjBac can you show ho you have wired the esp32 ?

philip-sterne commented 3 years ago

I have some spare time coming up. If someone can point me in the direction of what needs to be done then I will gladly code it up.

(This would be a great feature that I would use a lot!)

fishermanG commented 3 years ago

Hi everyone. Below are my configs.

Using esphome to interface between paradox alarm and HA and to trigger one of the zone 'remotely' when armed (essentially like a panic button).

Equipments:

  1. Paradox SP5500
  2. USB Buck DC-DC Converter 12v-5v (I powered using USB cable but you could wire up the output of the buck converter directly to VIN and GND)
  3. ESP8266
  4. 1 channel 5v/3.3v Relay Module

Fritzing_bb

ESPHome Config:

esphome:
  name: esp-paradox-alarm
  platform: ESP8266
  board: nodemcuv2

logger:
  baud_rate: 0

api:

ota:
  password: "xxx"

wifi:
  ssid: "WIFI_SSID"
  password: "secret_ssid"
external_components:
  - source: github://oxan/esphome-stream-server

uart:
  id: uart_bus
  baud_rate: 9600
  tx_pin: GPIO1
  rx_pin: GPIO3
  stop_bits: 1

stream_server:
  uart_id: uart_bus
  port: 23

sensor:
  - platform: uptime
    name: Uptime Sensor

switch:
  - platform: gpio
    pin: GPIO5 #D5
    inverted: false
    id: relay
    name: "Alarm Trigger"
    icon: "mdi:alarm"
    on_turn_on:
    - delay: 1200ms
    - switch.turn_off: relay

Hope this helps.

yozik04 commented 3 years ago

Thank you @fishermanG. I somehow missed your post. Great write up!

FigJam23 commented 1 year ago

This is a cool project thanks for sharing. I did something similar to you but I was using PAI to control a onboard pgm via mqtt that triggered my keyswitch zone worked perfectly.