Visonic Powermax and Powermaster Integration

No sorry, that’s on my “todo” list, and would only be done for PowerMaster Panels. That is why I made it a switch, so I can add this in future.

You can trigger the alarm for PowerMaster Panels using the Action in HA, for example:

action: visonic.alarm_panel_command
data:
  entity_id: alarm_control_panel.visonic_alarm
  command: trigger

The command can be: trigger, mute, emergency, panic, fire

It works on my PowerMaster30 that I use for testing but no promises as I haven’t had any other feedback yet as to its use. Also, it only triggers when the panel is armed.

emergency, fire and panic can be used when the panel is disarmed but on my PM30 only sound the internal siren. mute mutes the siren but does not change the panel state i.e. armed, disarmed etc.

1 Like

No worries, just thought I’d ask :slight_smile: . So I can use the above action to trigger an alarm (panel needs to be armed), but how would I stop it (using HA). Assuming I can stop it by disabling on the panel directly, but curious how I can stop it in HA. Thanks.

action: visonic.alarm_panel_command
data:
  entity_id: alarm_control_panel.visonic_alarm
  command: mute

or disarming the panel

action: visonic.alarm_panel_command
data:
  entity_id: alarm_control_panel.visonic_alarm
  command: disarm
1 Like

Hi,
first, thank you for a great integration. very impressive.

i have implemented the integration and this is what i have so far:

  1. all sensors apear in HA
  2. I can arm/disarm the panel
  3. i see in HA when the siren is triggered
  4. bypass sensors

but, i am struggling with the events for automations, the automations doesn’t work. i tried to create listener in developer tools as per the wiki for:
visonic_alarm_panel_state_update

and triggered the alarm but no event was fired. i am not sure what i am missing. in my configuration i have these attributes under “List of Sensor changes to create an Event”:

  • Emergency
  • Fire
  • Panic
  • Problem

even if i check them all it doesn’t fire any event.

Setup:
Panel Model: PowerMax Pro Part
mode: powerlink
Client Version: 0.9.9.9
HAOS Version: 2024.11.1

logs: LOGS

Hi,

Thanks for the log file, it’s always useful to me as the first thing I ask for is this file :slight_smile:

There’s a few things here …

I spotted an issue with your automation, this line in your log file

e[31m2024-11-14 14:51:12.350 ERROR (MainThread) [homeassistant.components.automation.visonic_update] visonic update: Error executing script. Error for call_service at pos 1: Error rendering data template: UndefinedError: 'dict object' has no attribute 'to_state'e[0m

and

e[31m2024-11-14 14:51:33.694 ERROR (MainThread) [homeassistant.components.automation.m_rkt_z_qh_trygr_hp_lh] Error while executing automation automation.m_rkt_z_qh_trygr_hp_lh: Error rendering data template: UndefinedError: 'dict object' has no attribute 'to_state'e[0m

Although I’m not sure this last one is for your alarm panel, I assume that the first one is.

Also, according to your log file you have not Armed your panel, it is always Disarmed. You therefore cannot have triggered your external siren (with a PowerMax Panel). Was the siren sounding?

As your have a PowerMax Panel then fire, emergency and panic are not supported. It does say this in the release notes, that these are only supported for PowerMaster Panels.

Hi,
I try 3 things :

  • change siren button → Nothing
  • arm and Check when the siren ring → the siren don’t change
  • same test → the alarm_control_panel.visonic_alarm aren’t take the « trrigered » value for siren

I should have been more specific so I’ll rewrite it

For a PowerMax Panel, trigger, mute, fire, emergency and panic commands in the Action are not supported. The only supported commands in the action are Disarm, Arm_Home etc. It does say this in the release notes, that these are only currently supported for PowerMaster Panels. I have yet to work out how to achieve this with PowerMax panels, it’s on the todo list.

This is not yet implemented, and would only be used for PowerMaster panels. It’s on the todo list.

Hi,

Thank you for your prompt reply.
i sent the wrong log by mistake, it when i was experimenting some template, here is a new and correct log: LOG

I have un-checked fire, emergency and panic as suggested. it is already reflected in the attached log.

10x

So just had a chance to test this, but unfortunately it didn’t work for me. Siren didn’t trigger. (System was armed first). Included logs but cannot see anything in there…
Let me know what you need. Thanks.

logs

Hi, ok. So on my PowerMax pro, what should I do with the latest version to know when the siren triggered

You either use the state of the Siren Entity (“on”) or the Alarm Control Panel Entity (“triggered”). These show when your external siren is sounding.

You cannot trigger the siren from HA.

You need to Arm Away your Panel and trigger one of the sensors, I assume that makes your external siren make a loud noise!

Remind me what panel you have, that log file is full of errors from other integrations. Please set the log settings to create a debug log file just for my integration.

If you have a PowerMax then what you are trying to do is not possible.

Hi,

I am not sure now if it was clear enough… i an still not getting visonic_alarm_panel_state_update to fire when the alaram is triggered.
this is the correct log: LOG
Thank you.

This post hopefully clears up a lot of confusion around the use of Fire, Emergency, Panic and when the panel is Triggered. Also the differences between the Alarm Control Panel Entity and the Siren Entity and their use.

I thought this was obvious from the descriptions of the configuration settings and the Wiki but let’s see if we can clarify some things…

Specific to PowerMax
Let’s get this over with at the start…
There are no “commanded” functions/settings/actions to the panel for telling the panel to Trigger, Fire, Panic or Emergency. The only thing that you can change in the panel is to Arm and Disarm it (in the various ways of Arming).
You are not able to Trigger the Siren or command Panic, Emergency or Fire.

I’ll start with the functionality for all Panel Types: PowerMax and PowerMaster.
This is for all panel types as far as I know.

The Panel has 2 mostly independent functions, mapped to the following HA Entities:

  • The Alarm Control Panel Entity: This is what you Arm, Disarm etc
  • The Siren Entity: I do not get to know explicitly when your external Siren is making a loud noise. So I need you to tell me. You could lie :slight_smile: and set it to whatever you decide though. This is related to Fire, Emergency and Panic, as well as Triggering your external siren making a loud noise.

HA Event Bus
EDIT: I am removing the HA Event Bus selection from the configuration, assume that all are selected.

First of all, the following setting is used for when to create an HA Event on the Event Bus. It says so in the picture: “List of Sensor changes to create an Event”. This has nothing to do with the Siren Entity or the Alarm Control Panel Entity. The Integration either creates an Event in HA or not based on this setting.

The Siren Entity
The following is used to determine which of the various “triggers” are used to set the Siren Entity to “on”. The Siren Entity is a Switch in HA, but turning it “on” yourself is not yet implemented to Trigger your External Siren (and would then only work for PowerMaster panels, see below).

image

The Siren Entity has an Attribute called ‘alarm’, you can use this regardless of the above setting, the setting above determines which ‘alarm’ setting turns “on” the Siren Switch Entity.

The Alarm Control Panel Entity
The Alarm Control Panel Entity is what you use to Arm/Disarm the Panel. Its state is set to Disarmed, Armed Home etc and in addition, one of the possible states being “Triggered”

Assume it’s like only having the “Intruder” setting from the above list that sets this Entity to “Triggered”.

Let’s look at the additional capabilities only for PowerMaster Panels.
With a PowerMaster Panel you can also command Panic, Mute, Trigger, Fire and Emergency to your panel from Home Assistant.

To do this you use the same command as you do to Arm, Disarm etc:

action: visonic.alarm_panel_command
data:
  entity_id: alarm_control_panel.visonic_alarm
  command: fire

As I’ve said before, the use of Fire, Emergency, Panic and Mute do not change the Panel State (i.e. Armed, Disarmed) but Triggered does. The Panel can be Disarmed but you can command Fire to it. The Panel can be Armed and you can command Mute to it and the Panel stays Armed.

With my test PM30 it only let me command Trigger when the panel was Armed but there might be a panel setting that I haven’t found yet to change this.

I do hope this clarifies the current functionality and if you don’t understand then please ask, but don’t ask why you cannot trigger the alarm using an HA Action when you have a PowerMax Panel, you can’t.

I have only tested the PowerMaster functionality with my test PowerMaster 30 panel.

D

Perhaps because it’s called visonic_alarm_panel_state maybe?

So I’ve slept on it and I’m questioning why I did the Event selection. Why not just generate the Event anyway. So I’ll remove the Event selection and assume that all are ticked.

I’ll edit my previous post to remove it

I’ve updated the dev Release (0.10.2.0) to remove the HA Event selection.

All Panel “State” Events are now through the visonic_alarm_panel_state Event, use action set to “panelupdate”, including Fire, Emergency and the various forms of Panic.

When the action is set to “panelupdate” then there are 2 further attributes

  • name → See event_name in the language translation file for a list
  • event → See event_action in the language translation file for a list

This is an example Event
image

Remember as well that you can use the Siren Entity, for example

Powermax Complete. Set logging as per your troubleshooting guide, plus enabled debug logging:

Logs

I can see in the Log that you are trying to command Trigger to the Panel.

As I said in my previous post

If you have a PowerMax then what you are trying to do is not possible.

PowerMax panels do not support Trigger, Mute, Emergency, Fire or Panic commands.

See my post a few entries back
Visonic Powermax and Powermaster Integration - Share your Projects! / Custom Integrations - Home Assistant Community

You did, I think I looked at your post 561 / 5th Oct & not the full release notes & got carried away not noticing you clearly state powermaster on your replies. Very sorry to have wasted your time. Apologies.