But I found this project which enabled me with python to enable disable the alarm from the cli using python by connecting to the api of the Visonic go app
So I thought to create a integration by myself using the api if this is easily possible. I am not a programmer or something like this. So is there any easy way to do this? How should I start what is the best tool for it and so on. Is there any good guide how to get there ? I am quite new to home Assistent and never tried to do something like a integration. So I would be thankful for any help I can get.
I also tried postman and could arm disarm and get the device details and so on.
What is the easiest way ? Working with Rest API from scatch or using the python module from github to start.
I had the same problem. There is an integration that works with the rest api already, which is this.
However, i found it quite basic and didnt include all the functionality i wanted. So i developed my own version. I tried to get the original api developer to update their version but got no response, so it is just in my repo atm. I am planning to release it at some point in the future and will keep updating it as i find more capabilities. You are welcome to clone the repo and use if you wish.
Hi your integration looks fantastic.
it also supportes multiple partitions as far as I could read this from the source code.
It seems that this integration can deliver everything I need.
I just can’t get it working so far.
I just did the configuration in the Integration.
I entered in the webgui the following information:
hostname, email, pw.
The Login works I get the correct pannel ID.
Than I entered the User Code and I get a No device or entities Error.
Any hint why ? I typed the same information in like in my other tests (Rest, other integrations…) So this should be correct.
I assume you have multiple partitions? Looking through code, as I said above, not really supporting multiple partitions. Give me a few days and I will make some amends to see if we can support this.
Are you able to download the diagnostics? The three dots menu on the screen in your screenshot and download diagnostics option. This may help me see how the data is presented.
Hi,
I have now the sensors, the Partitions and the panel. But I can’t arm or disarm.
Also the Sensors don’t have a name just a number and I can not see the state or status.
If I click on device info for a sensor: I get this message: Device / service not found.
So, I enabled partitions on my alarm to better test this. If you update the code now, it should be working to allow arm/disarm for each partition.
I need to think more about a way to arm both partitions at once as the HA alarm panel entity expects a status and there isn’t one for the -1 ALL partition when multi partitions are enabled. So for now, you will have to arm each one individually but I am sure I will find an answer in the next few days.
In the Visonic-Go App and in the Python script I can also see the window and door contacts and if a window is open. Maybe it is also possible to integrate this also. So that we can see if a window or door is open and which sensor it is. They al beling to the Contact + AUX Sensors.
Cool it is now working. The contact sensors should have shown up but there was a typo in the name - I have them as AUX_CONTACT instead of CONTACT_AUX. Update again and they will show with their open/closed status.
NOTE: You will not see bypass switch as your panel is set to no bypass, but if you chnage it to manual bypass, you will get this on each sensor
Hi,
thx Mark, currently I don’t have any bypass switches. Just the Door and Window Sensors.
The Window Sensors are now in Home Assistant. But the Sensor State of all the CONTACT Sensors is Unknown. I opened the door multiple times and let it open for a few minutes, but no changes.
Sorry about this, wrote this some time ago and have forgotten all the bits to add new device types (I may have to simplify it! ) and its quite hard to test when I don’t have the same devices/setup.
Another update is available and this should now show the status of your contact sensors.
sure no problem I am very happy that we could get this working so fast an quick.
Awesome now its perfect for my needs. Thx so much.
To Arm all Partitions would be also a nice feature.
But this is already so great.
@keamas, you may find this breaks with the 2023.8.0 and above realeases of HA. I have provided an updated fixed version in the master branch, so if you just update it will work again.
Wooow you are so fast. I didn’t Update so fast ;-).
But just did the Update of HA and the Visonic Integration.
So far everything works great. Thx for Updatin the Repo so fast.
Hello MSP1974,
I tried your application with a DSC WP8030 alarm, which is a copy of the Visonic Powermaster 30 alarm. I can arm and disarm the alarm, the sensors have been identified by the application, the bypass control works well, but they are all an “unknown” status.
Can you help me ?
Sincerely