Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending Custom MQTT Commands #164

Open
continuousmining opened this issue Nov 6, 2024 · 2 comments
Open

Sending Custom MQTT Commands #164

continuousmining opened this issue Nov 6, 2024 · 2 comments

Comments

@continuousmining
Copy link

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?

@continuousmining
Copy link
Author

any thoughts on this?

@xaf
Copy link
Owner

xaf commented Jan 19, 2025

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

The session token is a random unique token set for the session by qolsysgw to avoid conflicts in case two instances are running at the same time. You can configure a user_control_token if you need to manually send operations to qolsysgw! When configuring user_control_token, both the session token and your configured token are accepted as operations when coming from MQTT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants