Homeassistant create a rest api integration diy Visonic alarm system

Hello Mark,

Your work is highly appreciated!

I just installed the repo and did the configuration to integrate my Panel.
I can see the devices and the status of the Panel, but cannot Arm or change any state of the panel for that matter.

Checking the Entity - it is marked as “Read Only”

Not sure why - I have PowerMaster 10

John

Can you provide a diagnostics and any log errors. Also a screenshot showing the entity (presume alarm panel entity) where it is showing read only. Thx

It could be as a result of this:

This entity ('alarm_control_panel.visonic_alarm') does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.

Can you provide the diagnostic download. I need that to look into this. You can post it to a github issue. Its redacted for any sensitive info.

You made my day! It works with DSC Neo alarms as well, The various arming/disarming functions works like a charm as well as the tags.

For some reason hardwired zones does not show up. By design?

I’m so sorry, but I’m not sure how to provide the “diagnostic download”.
I do know it’s possible for devices, but this integration provides entities only, no devices or integration block.

Is there a way to download this diagnostics from the entity?

On the 3 dots in settings → devices and services → visonic alarm as per below.

If that is not there then you are not using the right integration.

Edit: Actually, i dont think you are using the right integration as the name is Visonic Alarm System, not Visonic/betel/tyco as in your image. I would remove all this and follow these instructions to install this particular one. As said above in this thread, it works but is not fully released.

:man_facepalming:

Yes indeed I had the wrong integration.
Thank you very much, the integration works great, I can arm and disarm nicely!

John

Hello Marc,
Have you found some time to add sensor status to your Visonic alarm app?
Many Thanks
Best Regards

Not yet i’m afraid. Much on the go atm with a big house refurb and significant updates to a couple of other integrations i write and support. I cant tell my wife she has no kitchen for xmas because i’ve been playing with the alarm integration! :grin:

Maybe i’ll get some time in the new year. Don’t hold out for too much though as not sure how much status info you can get from the cloud api due to timing delays and only doing a periodic update call. I dont think there is any push capability from the cloud api.

Good morning,
I understand your priorities very well. Good luck with the work in your home. A lovely Christmas gift for your wife.
I hope to be able to see you again next year around the Visonic application.
Happy New Year and Merry Christmas.

Thank you for this integration! Works perfectly!
I just encountered 2 bugs:
1/ When the alarm is activated and you enter the house, the alarm status is unknown instead of being “disarming” or “pending”.
2/ The detectors are in unknown status.

And another great update is to see the battery status of sensors :slight_smile:

Happy New Year and Merry Christmas!

Hi all, I’m looking into trying to get msp1974’s integration working for our Visonic alarm and I’ve got HACS installed and the integration installed but I’ve not worked with RESTful. Can anyone guide me on how I need to do that?

I looked at the code and it seems to be set for a pool alarm system, so I just need a bit a pointer on which lines I need to change and which to leave well alone!!

Thanks in advance!

William

Will,

It should just work as long as you have a Powerlink module in your alarm and have setup an account with a monitoring service. What issue are you having?

Hi @msp1974,
I tried running your integration, but ran in to some issues. No contact sensors where detected. Did some troubleshooting and found that my sensors report as “CONTACT_V” -added contact_v to const.py and they appeared in HA, bypass seem to work -but state is just showing as “unknown”. Any input on what needs to be done to get open/closed state working?

sensor sample from diagnostics:

      "717781": {
        "device_number": 19,
        "device_type": "ZONE",
        "enrollment_id": "104-1084",
        "id": 717781,
        "name": "Office        Window",
        "partitions": [
          1
        ],
        "preenroll": false,
        "removable": true,
        "renamable": true,
        "subtype": "CONTACT_V",
        "traits": {
          "bypass": {
            "enabled": false
          },
          "rarely_used": {
            "enabled": false
          },
          "rssi": {},
          "soak": {
            "enabled": false
          }
        },
        "warnings": [
          {
            "in_memory": false,
            "severity": "TROUBLE",
            "type": "OPENED"

Let me have a look. Its been a while since i reviewed the code. Will come back to you,

1 Like

Sorry for taking a while. I think the issue is in the api (as well as the change you made in the integration).

I’ll make an update next week for you to download.

2 Likes

OK, if you update from the git repo again, it should work. I have also fixed a couple of other issues while I was there.

  1. Deprecation warning regarding awaiting config setup.
  2. New issue from 2024.8 onward, where default requires a pin to be entered and this integration does not.

Let me know how you get on.

it works! thanks a lot for the quick release. I’ll do some more testing to make sure everything is working as it should.

@keamas @Herooo @Scoopien @dede76 @jbasila @Casca80 ,

I assume you are all still running this version of the Visonic alarm integration. If not, don’t worry about the rest of this message.

So, I was never happy with how it worked as it was a pull rest api from Visonic and missed a lot of useful info and functionality because of the limitations of periodic polling and also the limitations of the Visonic api.

Anyway, so I have been working on a little project for some time now in collaboration with @davesmeghead who has a great integration to work with PowerMax/PowerMaster alarms by using a direct serial or custom serial to IP module.

This project is basically a HA addon called Visonic Proxy and is designed to support Visonic Powermaster alarms with a Powerlink module. This creates a fake PowerManage server for your alarm to connect to, and proxies this on to the real PowerManage server to allow continued use of the Visonic apps while having a significantly better HA experience. Things such as motion and contact sensor status, which zone triggered an alarm etc

Whilst this is still probably beta, I think it is in a state to test in the wild and see what we find and wondered if some of you would be willing to help with that.

The required addon (the Visonic Proxy) and install instructions are here - GitHub - msp1974/visonic_proxy

A new custom component (has to be installed manually atm as not on HACs but you all did that with this one) is here - GitHub - msp1974/visonic_powerlink

Daves custom component should also work but I don’t want to barage him with issues at this stage, so try with mine.

Let me know and let me know if you need any help getting it installed and working (as this will form part of the beta to release improvements).

Thanks in advance.

Oh and a screenshot to tempt you!