Step by step guide: Visonic Powermax Pro integration
Moderator: leecollings
-
- Posts: 6
- Joined: Thursday 19 March 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2284
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Tnx for the guide, been looking for integrating the visonic Powermax into Domoticz for a longer time. I've recieved a rfxcom trx868 already for my sensors, but alarm status is something i still miss.
I have a few questions though:
1. I run Domoticz on my Synology nas. Is it possible to use a RPI to connect to the Powermax and run pmaxd, and connect to it trough IP from the synology domoticz? I guess i should just edit the lua script? (local visonic=assert(io.popen('curl http://ip/cgi-bin/jsongetxplstate.cgi'))) where IP is the raspberry?
2. One step further: Would it be possible to run pmaxd on synology, so i wouldnt need the RPI anymore?
3. How long can an usb cable be before having connections issues with the usb to rs232 adapter? It would be nice if i would't have to install the rpi next to the alarm panel, since it is in the middle of my hallway.
Regards,
Oliver
I have a few questions though:
1. I run Domoticz on my Synology nas. Is it possible to use a RPI to connect to the Powermax and run pmaxd, and connect to it trough IP from the synology domoticz? I guess i should just edit the lua script? (local visonic=assert(io.popen('curl http://ip/cgi-bin/jsongetxplstate.cgi'))) where IP is the raspberry?
2. One step further: Would it be possible to run pmaxd on synology, so i wouldnt need the RPI anymore?
3. How long can an usb cable be before having connections issues with the usb to rs232 adapter? It would be nice if i would't have to install the rpi next to the alarm panel, since it is in the middle of my hallway.
Regards,
Oliver
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Step by step guide: Visonic Powermax Pro integration
1. Yes, just change IP to your actual ip of RPi. I am running two RPi where one is next to Visonicopaulzen wrote:Tnx for the guide, been looking for integrating the visonic Powermax into Domoticz for a longer time. I've recieved a rfxcom trx868 already for my sensors, but alarm status is something i still miss.
I have a few questions though:
1. I run Domoticz on my Synology nas. Is it possible to use a RPI to connect to the Powermax and run pmaxd, and connect to it trough IP from the synology domoticz? I guess i should just edit the lua script? (local visonic=assert(io.popen('curl http://ip/cgi-bin/jsongetxplstate.cgi'))) where IP is the raspberry?
2. One step further: Would it be possible to run pmaxd on synology, so i wouldnt need the RPI anymore?
3. How long can an usb cable be before having connections issues with the usb to rs232 adapter? It would be nice if i would't have to install the rpi next to the alarm panel, since it is in the middle of my hallway.
Regards,
Oliver
3. USB can be 10 meters same for RS232.
You can have 10 meters to USB converter then have 10 meter from USB converter to Visonic, totally 20 meters. Try it before you make it as a permanent installation.
-
- Posts: 6
- Joined: Thursday 19 March 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2284
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Ok tnx, one more thing, maybe a stupid question,bit I'm not used to creating these kind of tweaks . What Cables should i use for connecting the visonic to the module? Where can i get these single pin Cables?
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
You can use any cable that fits to the pin, but I think almost everyone is using cables with dupont connection.opaulzen wrote:Ok tnx, one more thing, maybe a stupid question,bit I'm not used to creating these kind of tweaks . What Cables should i use for connecting the visonic to the module? Where can i get these single pin Cables?
https://www.ebay.com/itm/221464799105
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Hi opaulzen,
About your question if can install pmaxd on your Synology. You probably can, but my advice is to refrain from installing anything on your NAS that's not from Synology. Personally I wouldn't want to risk making my NAS unstable, brick or anything in that direction.
The cables are called jumper cables. Have a look over herehttps://www.kiwi-electronics.nl/compone ... afe-female
About your question if can install pmaxd on your Synology. You probably can, but my advice is to refrain from installing anything on your NAS that's not from Synology. Personally I wouldn't want to risk making my NAS unstable, brick or anything in that direction.
The cables are called jumper cables. Have a look over herehttps://www.kiwi-electronics.nl/compone ... afe-female
-
- Posts: 6
- Joined: Thursday 19 March 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2284
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Already foundation the Cables, tnxs. Will start as door as i get them.
Just one more thing: how does this solution affect my powermax system? What happens if my rpi crashes? I've read about other solutions where the powerlink2 module is emulated (Vera/Domotica used this serial connection). With these setups it seems that the powermax complains if there is something wrong with that connection, since it sees a module error.
As I understand the solution described in this guide uses a different port, and won't affect the powermax itself if the rpi fails (besides from domoticz not being able to communicate with it). Is this assumption correct?
Just one more thing: how does this solution affect my powermax system? What happens if my rpi crashes? I've read about other solutions where the powerlink2 module is emulated (Vera/Domotica used this serial connection). With these setups it seems that the powermax complains if there is something wrong with that connection, since it sees a module error.
As I understand the solution described in this guide uses a different port, and won't affect the powermax itself if the rpi fails (besides from domoticz not being able to communicate with it). Is this assumption correct?
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
The alarm system is not effected in any way. As far as I know, the powermax is not even aware, that something is connected. It is also not required to include the Pi as is required with the powerlink
Re: Step by step guide: Visonic Powermax Pro integration
I'm about start working on integrating my Powermax Plus with Domiticz, I've got the hardware (USR-TCP232 Serial to ethernet) to communicate with the Powermax. I'm running Domoticz from an Ubuntu 14.04 LTS, some of the comments in this thread is related to Rpi. Will I ru into some difficulties trying this on an Ubuntu server? I don't have any programming skills but can run CLI and understand some of the basics of Linux.
My goal is to integrate the alarm panel in Domoticz if possible.
If you have any good ideas to share when it comes to running this on Ubuntu, please share them here..
My goal is to integrate the alarm panel in Domoticz if possible.
If you have any good ideas to share when it comes to running this on Ubuntu, please share them here..
-
- Posts: 34
- Joined: Wednesday 10 December 2014 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Rijssen, The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
I'd like to try to connect my powermax plus to domoticz, but I see that mt powermax serial connector consists of 2x6 pins...already fried my 1st ch340
who knows the pin layout and what pins to use before I try again? Is there some (foolproof) way for me to check/find out?
who knows the pin layout and what pins to use before I try again? Is there some (foolproof) way for me to check/find out?
Connected to:
-Pi3; Aeon Labs Z-Stick; Fibaro Switches, Roller Shutter and Motion Sensors; Qubino Dimmers; P1 Port + Youless, MiLight; HUE Bridge; Forest shuttle Z-Wave; RFLink + KAKU; Voltcraft CO20; Everspring floodsensors; GreenWave PN-6; NEO Sensors
-Pi3; Aeon Labs Z-Stick; Fibaro Switches, Roller Shutter and Motion Sensors; Qubino Dimmers; P1 Port + Youless, MiLight; HUE Bridge; Forest shuttle Z-Wave; RFLink + KAKU; Voltcraft CO20; Everspring floodsensors; GreenWave PN-6; NEO Sensors
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Today I changed my IP range in my router.
After this change my RPi with Visonic integration started to get crazy.
Sometimes it doesn't respond at all and 9 out of 10 tries(jsongetxplstate.cgi) it doesn't give me status(disarm/armed) and the webpage Alarm.html is not showing correct data.
Anyone that can give me a hint or you seen this before?
I have restarted RPi many times without success.
When I try ./pmaxd -fvvvvvvvv it is extremly slow, take ~20 minutes to list my devices(11) 2 days ago it took ~1 minute to list them.
After this change my RPi with Visonic integration started to get crazy.
Sometimes it doesn't respond at all and 9 out of 10 tries(jsongetxplstate.cgi) it doesn't give me status(disarm/armed) and the webpage Alarm.html is not showing correct data.
Anyone that can give me a hint or you seen this before?
I have restarted RPi many times without success.
When I try ./pmaxd -fvvvvvvvv it is extremly slow, take ~20 minutes to list my devices(11) 2 days ago it took ~1 minute to list them.
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Step by step guide: Visonic Powermax Pro integration
Now it seems to be OK again.
I change timeout from 2000 to 3000 in conf file, after change I tried webpage and CGI but same bad result. I left it to be 3000 and now it is OK. Maybe I stressed it or something.
Webpage and CGI is answering correct every time now.
I change timeout from 2000 to 3000 in conf file, after change I tried webpage and CGI but same bad result. I left it to be 3000 and now it is OK. Maybe I stressed it or something.
Webpage and CGI is answering correct every time now.
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
@Booster. Best to have a look on domoticaforum.eu, and hopefully they have an example with your config.
No foolproof ( ) method, you need the correct pins.
No foolproof ( ) method, you need the correct pins.
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
I was wrong CGI sometimes give bad answer. I done have any clue what is wrong.Flopp wrote:Now it seems to be OK again.
I change timeout from 2000 to 3000 in conf file, after change I tried webpage and CGI but same bad result. I left it to be 3000 and now it is OK. Maybe I stressed it or something.
Webpage and CGI is answering correct every time now.
Think I will reinstall RPi from scratch
-
- Posts: 6
- Joined: Thursday 19 March 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2284
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
After editing Makefile (and tabbing al the spaces) and using the make command I keep getting te following error:
gcc -I /FLU -fsigned-char -c pmaxd.c
pmaxd.c:16:24: fatal error: libconfig.h: No such file or directory
#include <libconfig.h>
^
compilation terminated.
Makefile:16: recipe for target 'pmaxd.o' failed
make: *** [pmaxd.o] Error 1
any ideas?
gcc -I /FLU -fsigned-char -c pmaxd.c
pmaxd.c:16:24: fatal error: libconfig.h: No such file or directory
#include <libconfig.h>
^
compilation terminated.
Makefile:16: recipe for target 'pmaxd.o' failed
make: *** [pmaxd.o] Error 1
any ideas?
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Step by step guide: Visonic Powermax Pro integration
It says that It doesn't find libconfig.h
Run this and try again, I had to do the same
sudo apt-get install libconfig-dev
Run this and try again, I had to do the same
sudo apt-get install libconfig-dev
Last edited by Flopp on Sunday 29 May 2016 16:41, edited 2 times in total.
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Thanks Flopp. Indeed the libconfig-dev needs to be installed. I will adjust the guide to reflect this
-
- Posts: 1
- Joined: Monday 30 May 2016 10:31
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Hello everyone...i am new to this forum. I used a module with a ch340 chip, since I could not make it work with 2303 chip. .The Powermax Pro has a port (2x5) labeled PC, see pictures below. This is the port to use, since it’s voltage is 3,3v and that is the voltage that usb-serial port can handle. Don’t use the dual serial port which is an optional component of the Powermax pro series. The serial port has a voltage of 12v, connecting the serial usb module to this port will fry the module immediately.
-
- Posts: 6
- Joined: Thursday 19 March 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2284
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
ok,
libconfig is ok now
I seem to have an issue with the cabling, cant arm or disarm with visonic driver.
Triple checked but not really sure what is going on. The device gets connected and it sees all the zones, but i cannot disarm or arm.
Thought it was a driver issue on windows10 with the ch340, but apperently not.
After I run pmaxd i get these errors:
DEBUG: [Thu Jun 2 19:17:59 2016 main:0453]Sarting main loop....
DEBUG: [Thu Jun 2 19:17:59 2016 packetManager:0336]Timeout while waiting packet: assumig packet is complete......
DEBUG: [Thu Jun 2 19:17:59 2016 calculChecksum:0164]checksum: 00FE
ERR: [Thu Jun 2 19:17:59 2016 deFormatBuffer:0200]checksum NOK calculated:00FE in packet:0000
ERR: [Thu Jun 2 19:17:59 2016 packetManager:0356]Packet not correctly formated
libconfig is ok now
I seem to have an issue with the cabling, cant arm or disarm with visonic driver.
Triple checked but not really sure what is going on. The device gets connected and it sees all the zones, but i cannot disarm or arm.
Thought it was a driver issue on windows10 with the ch340, but apperently not.
After I run pmaxd i get these errors:
DEBUG: [Thu Jun 2 19:17:59 2016 main:0453]Sarting main loop....
DEBUG: [Thu Jun 2 19:17:59 2016 packetManager:0336]Timeout while waiting packet: assumig packet is complete......
DEBUG: [Thu Jun 2 19:17:59 2016 calculChecksum:0164]checksum: 00FE
ERR: [Thu Jun 2 19:17:59 2016 deFormatBuffer:0200]checksum NOK calculated:00FE in packet:0000
ERR: [Thu Jun 2 19:17:59 2016 packetManager:0356]Packet not correctly formated
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Step by step guide: Visonic Powermax Pro integration
Hi opaulzen,
Must be a cabling issue, and that makes it complicated. Please recheck the domoticaforum.eu , there is a lot of info over there related to this issue.
This guide only works for the Powermax Pro. If you have different type of Visonic alarm, then the port layout and labeling is different. In that case domoticaforum.eu can help you.
Must be a cabling issue, and that makes it complicated. Please recheck the domoticaforum.eu , there is a lot of info over there related to this issue.
This guide only works for the Powermax Pro. If you have different type of Visonic alarm, then the port layout and labeling is different. In that case domoticaforum.eu can help you.
Re: Step by step guide: Visonic Powermax Pro integration
Hi,
First of all... thanks for all your work and effort you put into this.
I have run into a couple of issues i can't seem to resolve. I am not a programmer but with Google as my friend I usually get further but now this is not the case.
Please know i can successfully execute all commands (arm/disarm) via the alarm.html website.
1) I have the following error:
016-06-20 19:19:01.665 Error: EventSystem: in script_device_etc.lua: /home/pi/domoticz/scripts/lua/JSON.lua:383: html passed to JSON:decode():
2) Whatever i try to do i can't get xPL_Hub to run after a reboot. I tried all the steps but when use "Top" it's not shown. pmaxd is shown.
3) When in Domoticz pressing the ARM or DISARM button nothing happens and there is no log entry.
Can you help me?
First of all... thanks for all your work and effort you put into this.
I have run into a couple of issues i can't seem to resolve. I am not a programmer but with Google as my friend I usually get further but now this is not the case.
Please know i can successfully execute all commands (arm/disarm) via the alarm.html website.
1) I have the following error:
016-06-20 19:19:01.665 Error: EventSystem: in script_device_etc.lua: /home/pi/domoticz/scripts/lua/JSON.lua:383: html passed to JSON:decode():
2) Whatever i try to do i can't get xPL_Hub to run after a reboot. I tried all the steps but when use "Top" it's not shown. pmaxd is shown.
3) When in Domoticz pressing the ARM or DISARM button nothing happens and there is no log entry.
Can you help me?
Who is online
Users browsing this forum: No registered users and 0 guests