SmartThings Community

[RELEASE] Visonic Powermax Alarm

dth_security
dth_sensors
requires_server
project_security
project_sensors

(Rajan) #368

Device handler is Alarm Panel Bridge as a copy of your code


#369

I have been using this for a while now, using mqtt to control my alarm panel from Home Assistant.
But, after some time the mqtt component hangs. Once a day or so. I can still control the alarm panel from the nodemcu web interface and status is correctly read from the panel. MQTT commands are not received and MQTT status messages are not published. A soft reset issued from the web interface solves the issue. Any ideas?


#370

Hi, I’m in the UK and just started using SmartThings. I use a Powermax+ and am amazed at what you’ve developed - very keen to integrate it!
Please could you advise if you still sell the required ‘plug and play’ kit?
Thanks!


(cjcharles) #371

@fredrik_P Somebody else has reported an mqtt depot that happens after a few days. As soon as I’m back ill investigate what is causing that, seems a bug in mqtt library, or a quirk in how I’m using it.

@alleycatuk Yes I’m still selling them, though currently on honeymoon so i closed my ‘shop’. Will post on here in about a week and a half when I’ll reopen it.

@rajan_Mehta Just checking you are using the actual mac address rather than what you just pasted here. Can you give me a screenshot?


#372

@cjcharles thank you and congratulations! Enjoy your honeynoon - perhaps best you don’t spend ages on the ST board :wink:
Will check back towards end of Feb. Thanks


#373

@Fredrik_P, would you mind sharing your Home Assistant configuration/Python scripts. I started to look at it without too much success. With mqtt_sub, I can see the state of the zones but I don’t think you get any topic for status like “disarmed”.


(cjcharles) #374

Alarm/panel has the panel status information while alarm/zoneX has the zone status. Alarm/set for changing state (use the same names/identifiers as ST)


#375

I made a quick and dirty fix (not my idea, I’ll link to the original post where I got the idea from as soon as I find it). I use automations with mqtt to simply translate messages and repost them in another topic. I’ll give you the details.


(cjcharles) #376

I can change the topic structure if needed and you have a better proposal? I dont use MQTT so it was just my guess for how to structure things…


#377

This is my quick fix for this:

configuration.yaml:

alarm_control_panel:

  • platform: mqtt
    name: “Visonic Powermax Pro”
    code: “****”
    state_topic: “alarm/panelstatus”
    command_topic: “alarm/set”
    payload_disarm: “disarm”
    payload_arm_home: “armhome”
    payload_arm_away: “armaway”

automations.yaml:

  • id: Disarmed
    alias: Disarmed
    initial_state: ‘on’
    trigger:
    platform: mqtt
    topic: alarm/panel
    payload: Disarm
    action:
    service: mqtt.publish
    data:
    topic: alarm/panelstatus
    payload: disarmed
    retain: true
  • id: Armedhome
    alias: Armedhome
    initial_state: ‘on’
    trigger:
    platform: mqtt
    topic: alarm/panel
    payload: Arm Home
    action:
    service: mqtt.publish
    data:
    topic: alarm/panelstatus
    payload: armed_home
    retain: true
  • id: Armedaway
    alias: Armedaway
    initial_state: ‘on’
    trigger:
    platform: mqtt
    topic: alarm/panel
    payload: Arm Away
    action:
    service: mqtt.publish
    data:
    topic: alarm/panelstatus
    payload: armed_away
    retain: true