Visonic Powermax and Powermaster Integration


I’ve created an Integration for the Visonic Powermax and Powermaster Alarm Systems.

The Integration was originally created in June 2018 and first posted in this forum here.
That forum thread has been used over the past 3 years to develop the Integration and to try to ensure that it works with as many of the Visonic panels as possible, including the most recent Powermaster panels. I have decided to close that thread as there is little or no information in there that isn’t now on the wiki and many users were reading the whole thread looking for information.

Here are some general notes on connecting it up and what it does but for much more detailed information please see the wiki and the main Github code page here.

It currently supports most Visonic panel types but not all so please check the wiki for supported panels. You’ll need to buy a piece of hardware and do some wiring inside your panel so make sure you’re confident enough to do this, although the wiki provides a pretty simple guide for you. The hardware is inexpensive and easily available and there are a few different options for you to choose from. If you buy the Wemos D1 R2 with a relay board you can connect it to a wired input on your alarm to trigger your external siren from within Home Assistant. For guidance on the hardware options see the wiki here.

Many people seem to be OK with the wifi options but if your panel is in a weak wifi area of your property then it may be necessary for you to use a wired hardware option, either Ethernet or USB.

The Integration does not use the Visonic Powerlink hardware, please do not buy or use this hardware with this integration. Many people have asked if they can use the Visonic Powerlink hardware at the same time as using an RS232 hardware device to also connect to Home Assistant and the answer is almost certainly not. However, a few people have panels with more than 1 PC/RS232 connection and have claimed to have got it working.

I think that all the information that you need to set it up is on the wiki but if you have any problems or set up issues then please post in this thread.

Software installation is simple, either install it using HACS or download and unzip the zip file from Github here. In either case, after you restart Home Assistant it should appear in the Integrations list. For more on software installation see the wiki here

When you select to install the Visonic Integration in Home Assistant, the configuration settings are also on the wiki here.

There is much more information on the wiki about setting it up and creating automations, for example

If you have problems then please read the wiki troubleshooting section first here. Also look through the descriptions of the configuration settings again as you may have a configuration setting wrong.

If you still get problems then set your home assistant logger settings like this and recheck the troubleshooting guide on the wiki again.

First of all, look for this in the home assistant log file:

Setting TCP socket Options
Setting TCP socket Options Exception [Errno 111] Connection refused
Failed to connect into Visonic Alarm. Check Settings.

When using Ethernet, this means there is no connection to the Ethernet device. Either you have the wrong IP address or the wrong port.

If you have this in your log file

[Controller] Visonic Plugin has suspended all operations, there is a problem with the communication with the panel (i.e. no data has been received from the panel)

Then the integration has not received any data from your alarm panel in the first 30 seconds after starting the integration. This likely indicates a problem with your wiring in the panel or the hardware setup. Please check this before proceeding.

If you have this in your log file

[Controller] Visonic Plugin has suspended all operations, there is a problem with the communication with the panel (i.e. data has not been received from the panel in 600 seconds)

Then the integration did start receiving data but then it stopped and nothing has been received from the alarm panel in the last 600 seconds (10 minutes). Has the connection been broken, a wire became disconnected for example.

Then look for this

ERROR Connection Lost : disconnected because the Ethernet/USB connection was externally terminated.

If you see this then something is disconnecting the communication between the integration in Home Assistant and the hardware device in your panel. This could be for many reasons, renewing DHCP leases in your router, bad wifi signal in your property etc etc. but it is not something that I can help with. The operating system on the hardware that you run Home Assistant is telling my integration that the connection to the panel has been broken but there is no way of knowing why.

If you do not see the above and you still have problems then…

This is a complex integration with a complex interaction with the alarm panel, if it doesn’t work then I need a log file to help me work out what is going wrong.

Please do not post a message saying "it doesn’t work"
Instead, please describe the error, what you have done about it and …
I always need the relevant part of the Home Assistant Log File to help you
Set your home assistant logger settings like this. Upload the relevant part of the log file to pastebin or dropbox and leave me a link in a post in this thread and I’ll take a look.

That’s all for now


Hi again,

Got the integration to work for a couple of days after my previuous posts in the other topic. However, I then ended up with new issues when the panel and HA stops talking with eachother.

What I’ve done so far:

  • Deleting integration from HA (both from integration and HACS and reinstalled)
  • Tried both 5650 and AAAA as download codes. Both seem to work for a while before HA looses the connection.
  • Tried both baud rates, 9600 is the only one working.
  • Tried another USB/TTL wiring (switched where wires where attached on the board of the PM panel)
  • Complete re-starts of HA+panel according to instructions in wiki.
    None of these things help me. Deleting the integration and reinstalling help me for an hour or so but nothing seem to permanently fix this.

I’ll send you the log @davesmeghead. Can’t describe how grateful I am for your support and this integration.

Hi @davesmeghead ,
What is the state when the Siren rings ? I don’t find…
Many thanks

A few days ago, I updated to and things seemed to be working well until this morning. When checking the panel to see what was going on, it flagged a communication error. A Supervisor Restart resulted in the same problem after a few minutes, so I reset the panel. It’s working again in Standard Mode, but not without errors.

Here’s the log:

Here’s the HA configuration:

Thanks in advance.

Edit: I’ve rebooted twice since the original post. The first put me in Standard Plus mode, the second got me in Powerlink.

Hi @davesmeghead ,
I have another problem. Impossible to arm or disarm alarm After last upgrade…

I have just uploaded a bug fix to Github

This release contains 2 bug fixes
First of all it fixes a bug in the case where data is received from the panel and then stops for a long period of time (I have set this to 10 minutes)
Secondly, it recognises what I suspect is a bug in the PowerMaster firmware so it doesn’t send EPROM data PDUs correctly every time, sometimes they are less than the correct number of bytes. I initially thought this was only PowerMaster 33 panels but I’ve seen it in PowerMaster 10 panels also

I think you have a problem with your set up. The integration achieves PowerLink Mode but at 17:02:59 the integration stops receiving any data from your panel. The integration keeps trying to receive for several hours after that. As you are using USB I suggest that you check to see if the software driver is going to sleep. I have updated my code as it wasn’t detecting this condition correctly, if it hasn’t received any data within a 10 minute period then it restarts the integration and attempt to reconnect (although this may not be successful).

Are you sure that you have the configuration settings ticked to allow remote arm and disarm. This could also be due to a disconnect as per the above problem. I’d need a log file to check further. as I said in the first post, when reporting a problem then please upload a log file to illustrate that problem.

The integration initially connected to the panel and achieved PowerLink Mode. It then receives the same packet for 40 consecutive messages in a row and I assume this to be the panel in error so I restart the integration. After this restart the downloading of the EPROM fails and so it only goes to Standard Mode. This is a known problem for PowerMaster 33 panels but I’ve never seen it before with PowerMaster 10 panels. I’ve added you panel and model to the list in the code so it bypasses failed EPROM data (in a limited way).
But that doesn’t resolve the same packet in a row for 40 times. If it happens again then please edit and change the SAME_PACKET_ERROR value on line 72, try making it a very large number such as 10000 and lets see what happens.
As an aside, you need to untick auto sync time in the config as PowerMaster panels cannot do this. The time on your panel also needs setting manually.

1 Like

The panel does not tell the integration when it is sounding the siren so you need to set this configuration to be the same as the settings on your panel when it triggers the siren.

The Home Assistant Entity alarm_control_panel.visonic_alarm has an attribure called Panel Siren Active that is either True or False. You could create an Entity from this Attribute.

The Panel Siren Active Attribute is set to True based on the configuration setting

This is described on the wiki in Note 6

Hi, ok. Thanks for answer.

So if i want to do a automation when Siren is trie, is this correct :

That should work yes.

In my case I wanted more detailed information about the situation so I created a Home Assistant event as described here on the wiki. I include lots of event data that I can use in the Automation Action.

This is my automation that creates a persistent notification on Home Assistant and “pings” my mobile phone with an alert. I have to upload it as 2 screengrabs.

See here on the wiki for automation examples


I installed and set the clock and date while in Installer Mode. It appeared to reset when I exited. I have yet to change the value on line 72 of, but performed a Server Restart to see if the new protocol helps. It seems to alternate between Standard and Download mode.

I’ve rolled back to and it’s doing the same thing. It’s as if the panel is in some new state. I let it run for a while and see if it changes to a stable mode. If you think I should do anything different, let me know.

In the meantime, here’s the log after the update to

As always, thanks.

It’s trying to download EPROM data but getting an access denied, this is usually when it stops recognising the download code. It’s currently using the default 5650, please try overriding the download code to AAAA. You’ll need to delete the integration and add it (do not delete the files, just delete it from the integrations page) so that you can set the download code.
Although, it’s interesting that the panel is asking to auto enroll, perhaps I should check this in the code i.e. if download fails due to an access denied AND the panel asks to auto enroll then I should perhaps continue with the auto enroll instead of waiting for the download to progress, I’ll think about it.

EDIT: I’ve just looked closer and you’ve turned off “Auto Enroll Supported” in the settings, please tick this. Your panel is asking to auto enroll and you’ve disabled it. Try this first :slight_smile:

Ugh. Yes, it’s working now. I did see the enrollment issue in the log, but I didn’t delete/reintegrate when I updated to I just copied the 14 files, figuring the configuration wasn’t changed. Is this the wrong thing to do? That said, I did reintegrate when I rolled back to, and now when I restored

Once again, I feel embarrassed.

Thanks for spending time to look at the log and the reply.

That’s OK, your first log file showed up a few problems so please keep an eye on it over the next few days. The config settings functionality hasn’t changed in a while so it should reuse previous settings, although I’m not 100% sure on this as it depends on the internal workings of HA.

I’m concerned about 2 things at the moment and I don’t think they are related to each other.

First of all, the downloading of the EPROM. I initially thought that this is only a problem with PowerMaster 33 Model 71 panels so I did a quick workaround for only that panel, but now that your panel has also shown up the same issue then it’s something to look out for. I added your panel to workaround. The workaround doesn’t fix it, it tolerates it and ignores the problem.
With your panel, in your first log file I saw the integration perform a normal start and then a restart that was provoked from receiving the same data 40 times in a sequence. The first start was OK, the EPROM downloaded OK, the second time it started showing problems part way through the download. I download the EPROM 128 bytes at a time and there are several of these to download. I might consider performing retries if I get a failure.

The second issue I’m looking at is receiving the same PDU data many times in a row and I recently changed my restart check from 20 to 40 before I restart the integration. I have had this in the past with my panel but it’s very difficult to provoke it to do it. When it has happened to me in the past I’ve tried everything to stop it and the only solution I found was to re-trigger an EPROM download so I decided to trigger a restart of the whole integration. If this is happening to users more regularly then perhaps I need to look at it again and take some action other than an integration restart.

That’s all for now :slight_smile:

Hi @davesmeghead ,
My automation doesn’t work.
And i don’t have “visonic_alarme_panel_state_update”. I just have “alarm_control_panel.vidonic_alarm”

Thanks for the comprehensive reply. The PowerMaster 33, 20, and 10 are all from a common product line, so I’m not surprised they have the same quirks.

Currently, I’m not using the alarm much as I’ve been staying close to home due to the pandemic. So there’s not much to keep an eye on other than to observe its behavior when I occasionally use it or upgrade the integration. I could configure the debug logs, but they can get very big unless I restart the supervisor every once in a while (which might be more useful to determine if communication is reliably established).

There might be another option. If there are specific filter attributes for which I can make template variables (e.g. timeouts, et. al.), I could record these values and log them. Those data would then be persistent in the HA recorder database. Is that something worth doing? If the idea has merit, just let me know what to record.

Moreover, if you have a state variable that’s used in establishing communication, it too could be recorded if you made it a filter attribute. I believe there’s a way to asynchronously record value change vs. continuous sampling; it would minimize the data volume. Maybe you’re doing this already.

If recovery is automated, the events would remain silent unless logging is enabled. If logged, it takes proactive action to sort through it. As suggested, if you can detect the events and create a metadata attribute, it can be recorded in HA and/or generate a notification.

As an aside, you might give some thought to a status panel that can display communication activity and error events. Here’s something from my software-defined router:


Perhaps there’s a Lovelace card that can handle the task.

It is not a State or an attribute of an Entity.

It is a Home Assistant Event called visonic_alarm_panel_state_update. If you look closely at the automation in my post above I set the trigger type to Event and use an attribute of the event called condition being set to 3. Think of the condition as an attribute of the event, I create many more of these as part of the Event including the sensor that triggered the event. Here on the wiki is a description of them all.

You can see the event working if you go to “Developer Tools” > Events.
Type visonic_alarm_panel_state_update in the “Event to subscribe to” and click “Start Listening”. It looks like nothing is happening but now do things with the alarm, trigger sensors etc and you’ll see the event that is present on the Home Assistant Event Bus.

It shows condition set to 1, this means a sensor has been triggered and it tells you which sensor (Zone) and that it was violated (motion).

Click stop listening when you’re done :slight_smile:

Don’t be put off by this and I understand it is complicated and difficult to understand and I don’t understand it all yet. Just copy the settings in my previous post exactly and try it.

To save you typing here is the yaml action

service_template: persistent_notification.create
  title: Alarm Siren
  message: >-
    {% set ety =['Entity']|string %} {% if ety == 'None' %}
    Alarm siren from unknown sensor {% else %} The Sensor that triggered the
    Siren is the {{ state_attr(ety, 'friendly_name') }} {% endif %}

It’s a good idea and it’s something I do with my system although I mainly rely on the HA log files. I restart my Home Assistant at most every 10 days or so anyway, the log file does get quite large but it’s not too bad. There are 4 attributes of the alarm panel entity that I monitor:

Exception Count
Watchdog Timeout (Total)
Watchdog Timeout (Past 24 Hours)
Download Timeout

Exception Count tells me if the integration has restarted the comms with the panel so if it’s more than 0 then I know to look at the log file. The 3 timeouts are also important and I do check out the log file as well. I create HA Entities from the 4 attributes so I can easily log and manipulate them. All except the “Watchdog Timeout (Past 24 Hours)” are cumulative and so I can check them easily and I don’t really need the history, I use them as indicators to look at the log file.

To be honest the main issue I have is the number of different panel types that I try to support and their variability. Each panel has its own timings, firmware nuances etc etc (software bugs don’t exist, what we have is special functionality :slight_smile:). I’m 100% rock solid with my own panel (a PowerMax Pro Plus i.e. panel type 4 model 71) but I recognise that is not the case with the other 7 or so panel types. If I did an integration for most other devices then there is either only 1 type or it has a manufacturer defined API that we could use. I picked an integration with no manufacturer API, no manufacturer defined protocol and several different panel types across a span of 2 decades. Do you see what I mean.

Overall I have no real idea of how many people are using this integration and what the spread of panel types is across those users. From the posts in the forum I estimate maybe a 100 users but it’s difficult to tell as some people could use it and never create a post. When people report genuine problems then I try to fix them in a generic way so it applies to all panel types. The PowerMaster panel introduced a few new status messages from the panel and as I don’t have this panel type it’s very difficult to investigate. I have tried in the past with different users but it’s difficult without me seeing a direct cause and effect i.e. I do something to the panel or trigger a sensor and then I see the status message come from the panel.

Anyway, enough of my ramblings.
I should probably add some of this discussion to the wiki :upside_down_face:

Excuse my ignorance, but how can I check whether the usb software driver fall asleep?

Btw, I downloaded the integration through HACS but could not find v. Did you include the fixes in the version?


Thanks for the information. I’ll spend some time setting it up and looking for a card to to present the current values. In addition, I’ll try to add Panel Mode to the group. If I get it working, I’ll post it here. I’ll also set up the logs and accumulate some data. The communication has been stable the last couple of days, so I don’t expect to see much, if anything. Still, it’s not clear what happened when I upgraded to HA behavior changes over time and there have been recent updates.

Yes, this has been a persistent issue. Perhaps I’ll keep an eye out for a used panel on eBay. It’s times like this that make me think I should’ve done that a couple of years ago.

Thanks again.

Many thanks @davesmeghead ,all are ok…everything’s fine.