roopesh / ad-qolsys

AppDaemon app for Qolsys IQ Panel 2
MIT License
22 stars 10 forks source link

Add option to trigger panic #24

Open jsb5151 opened 2 years ago

jsb5151 commented 2 years ago

Format to trigger a panic is as follows:

{"partition_id":0,"action":"ALARM","alarm_type":"POLICE","version":0,"nonce":"qolsys","source":"C4","token":"foobar"} or {"partition_id":0,"action":"ALARM","alarm_type":"FIRE","version":0,"nonce":"qolsys","source":"C4","token":"foobar"} or {"partition_id":0,"action":"ALARM","alarm_type":"AUXILIARY","version":0,"nonce":"qolsys","source":"C4","token":"foobar"}

Tried invoking this through MQTT request but the code expects an "event" payload, not an "action" payload... so I'm guessing the current code isn't able to handle it.