XaF/qolsysgw

Sending Custom MQTT Commands

Opened this issue · 1 comments

Hey Guys,

I'm trying to figure out how to setup an action to ARM Home/Stay Silent with no announcements and countdowns. It is doable via Alarm.com

What i have is the below.

- service: mqtt.publish
  data:
    topic: "qolsys/command"
    payload: >
      {
        "event": "ARM_STAY",
        "silent_arming": true,
        "no_entry_delay": true,
        "bypass": false,
        "code": "<your_user_code>"
      }

But when i look in the mqtt explorder i see this

Transmitted messages:
homeassistant/alarm_control_panel/qolsys_panel/set
1 most recently transmitted message(s)
Transmitted 7:26:47 PM
QoS: 0
Payload: partition_id: '0'
action: ARM_HOME
session_token: c1fe5d8e-c6f0-xxxx-xxx-xxxxx

I am not sure where the session token comes from, which is different than the code from the panel.

The above is also slightly different than what is in the docs

{
  "action": "ARM_HOME",
  "code": "4242",
  "bypass": false,
  "delay": 0,
  "partition_id": 0,
  "session_token": "<session_token>"
}

What would be the correct command to send via MQTT?

any thoughts on this?