pai icon indicating copy to clipboard operation
pai copied to clipboard

Trigger alarm via mqtt in new firmwares.

Open yozik04 opened this issue 4 years ago • 12 comments

Feature description

  • EVO192 supports alarm triggering in versions 7.15+
  • SP/MG supports alarm triggering in versions 7.10+

Implement an MQTT endpoint to send a message to alarm.

yozik04 avatar Jul 15 '20 14:07 yozik04

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:

  • emergency
  • medical
  • fire

user_id and partition: numeric id or label

yozik04 avatar Jul 15 '20 14:07 yozik04

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

yozik04 avatar Jul 22 '20 07:07 yozik04

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

gytisgreitai avatar Aug 21 '20 14:08 gytisgreitai

Not yet. Something is missing. Unfortunately no documentation.

yozik04 avatar Aug 21 '20 14:08 yozik04

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!

DjBac avatar Feb 18 '21 08:02 DjBac

Nope, unfortunately.

yozik04 avatar Feb 18 '21 09:02 yozik04

Thank you!

DjBac avatar Feb 18 '21 09:02 DjBac

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

gytisgreitai avatar Feb 19 '21 07:02 gytisgreitai

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!)

philip-sterne avatar Jun 06 '21 13:06 philip-sterne

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.

fishermanG avatar Sep 30 '21 08:09 fishermanG

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

yozik04 avatar Oct 11 '21 13:10 yozik04

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.

FigJam23 avatar Dec 30 '22 03:12 FigJam23