The only thing I can suggest is that you send me your log file. If you set your visonic logs to debug, zip the log file and post it here I’ll take a look.
I already had de debug mode activated to see if I could find anything strange in the pyvisonic log.
Attached the home assistant log file and the test.py log file (PM10.log).
Hope this helps.
Thanks so far.
BTW I did change the log format extension to xml otherwise I could not upload it. It is zip format!
. Hass.xml (54.0 KB)
From the home-assistant log file i’ve found out that:
You’ve tried several times to set the alarm with the code 1111. That code has been denied by the panel as an invalid code. There are a couple of main reasons for this
Is this code correct? As it is in Powerlink mode and you have a Powermaster10 which I haven’t been able to test with, the EPROM decode may be incorrect.
This could also be because the panel is not “Ready”, it says this here in the log file:
[custom_components.pyvisonic] Model PowerMaster10 PowerMaster Yes LastEvent None Ready No
Does the display on the front of the panel itself say that it’s ready and can you set it (arm home or arm away) without going through the HA component, i.e. set it directly?
You have a single sensor that is not enrolled. Are you sure that you have enrolled it in to the panel? This is panel specific so you would need to follow the panel instructions for sensor enrolment.
To get detailed and geeky My Component receives this data from your panel:
The first 4 “00” are the enrolled bits for the 32 zones (4 bytes is 32 bits).
The second 4 “00” are the bypass bits for the 32 zones (4 bytes is 32 bits).
According to this data, there are no sensors fully enrolled in your panel.
That is why I’m asking whether you can set your panel directly from the keypad/keyfob.
On a positive note, the panel is getting in to Powerlink mode, it downloads the EPROM data and decodes it. It also says that it’s Disarmed and you cannot arm it because it is not “Ready”.
Overall, since there is only a single sensor that is not enrolled, this maybe why the panel is not “Ready”.
On the PM10.log, I have no idea what’s going on. The Panel just repeatedly sends A5 status messages and blocks all communication. I have only once had this myself and I couldn’t work out what was going on but I left it overnight and the next morning it was OK again. I’d like to think that it was a security protocol inside the panel that believed I was tampering with it and it blocks all communication but I don’t think it’s that sophisticated.
Let me know if you make any progress and if you can set the alarm with your keyfob/panel
Thanks for your help, recabled and it’s now connected. Can’t get it into Powerlink mode but I think this is due to it not clearing the Vera from the panel despite do a restart.
Thanks for the comprehensive answer. I looked at the panel and tried to arm, but indeed it’s not possible. Strange, because 3 weeks ago I had no problem doing this in Vera. Did a software reset in the ‘Installer mode’, but still got ‘zone open’. I removed the door contact and still. Doesn’t make any difference.
The only thing I can think of is that I have two hardwired zones, which are not connected to anything. Probably they need a resistor to close the zone.
I don’t know why it is trying to use the ‘1111’ code, that should only be applicable in standard mode. Am I right.
Will have a further look into the open zone problem, however it does not indicate which zone.
Hi,
I have a regular PowerMax system, that I am trying to connect to HA using the Visonic component and the Ethernet USR-TCP232-E2. I think the issue is related to the RS-232 part, as the USR-TCP web UI displays the following a few seconds after restarting Home Assistant:
Module Name: USR-TCP232-E2
Firmware Revision: 3014
Current IP Address: 10.0.1.3
MAC Address: ****
Run Time: 0day: 0hour: 52min: 8
TX Count(ETH): 0/0 bytes
RX Count(ETH): 37/0 bytes
Conn Status(ETH)A: CONNECTED( 1)/LISTEN
Conn Status(ETH)B: IDLE/IDLE
The TTL1 is configured like this:
Baud Rate: 9600 bps
Data Size: 8 bit
Parity: None
Stop Bits: 1 bit
Flow Control: None
UART Packet Time: 0 ms
UART Packet Length: 0 chars
Sync Baudrate(RF2217 Similar): checked
Enable Uart Heartbeat Packet: unchecked
Socket A Parameters
Work Mode: TCP Server | None
Local/Remote Port Number: 23 / 23
PRINT: unchecked
Socket B Parameters
Work Mode: NONE
and I have configured the component in configuration.yaml with:
using pins 2…4 as RXD, TXD, GND. I’ve also tried swapping RXD and TXD with no luck.
The HA UI says
Visonic Alarm Panel
2 hours ago
visonic alarm panel
standby February 11, 2019, 6:00 PM February 11, 2019, 8:40 PM
PluginVersion 0.0.7.1
Comm Exception Count 0
Mode Standard
Panel Last Event None
Panel Alarm Status None
Panel Trouble Status None
Panel Siren Active No
Panel Status Unknown
Panel Status Code -1
Panel Ready No
…
I assume that 1111 is your normal arm/disarm code. My Component gets this by going in to Powerlink mode and downloading it from the panels EEPROM so I can use it without you entering it. I could output it to the log file but I don’t as it’s a security problem. I just didn’t know if you had it as an override in your configuration.yaml file.
OK, good luck. As you realise, until you can get the panel working and being able to directly arm and disarm then there’s no point in running my Component.
So, the regular Powermax is not one that I’m familiar with the wiring, perhaps someone else could help?
and I’m also not familiar with the settings in the new E2, again perhaps someone else could help?
It looks like your RS232 is set up correctly for baud rate etc. I think you’re correct with the Enable Uart Heartbeat Packet being disabled. I’m not sure what the Sync Baudrate setting does though, maybe try setting it to disabled.
On the Socket A Parameters. I suggest you don’t use port 23 as that’s the telnet port. Try setting the port to 10042, something higher than 10000 then it’s out the way. Also remember to change it in the configuration.yaml file. Also, what are the TCP Server Work Mode options and the TCP Server detail options. I have mine (with an earlier device) set to TCP in STA (station) mode as transparent.
Perhaps you could do as I suggest and set your logger to debug the pyvisonic file (see my post 157 how to do this). Have a look in the log file and unless you can see lines such as this:
[custom_components.pyvisonic] [data receiver] Received message …
That may be the case, true. It is more likely to be a timing issue with HA and the panel, it all depends on what other Components you have in your system. Have you tried stopping HA and using test.py from a command line to see if that gets in to powerlink. If it does go in to powerlink then leave it for 5 minutes, stop it and then start HA again, see if it retains powerlink. Having said that, if you’re happy with standard mode then go for it.
One question for my own peace of mind. I’m wiring my PowerMaster 10 this weekend following instructions here; we’ll see how it goes. Problem is, I’ll be using a USR-WIFI232A module, and voltage in is 3.3V. Voltage out in the PowerMaster is 3.7V, which is 12% higher. I’m assuming it will run hotter, but… will I fry it?
Hi and welcome. Although I don’t use the wifi module I do exactly that with the voltages and mine has been OK for several years with no problems. On my Github page, to quote “I connected the 3.75v pin on the panel to the Vcc (3.3v) on this device”. It is slightly outside the voltage range for the device but I figured that I would try it and see how it goes. For the low cost of the device, I decided that if it breaks I’d buy another and maybe put in a voltage regulator. The problem I had at the time was finding a voltage regulator that would take as low a voltage in as 3.75volts and still output 3.3volts
Thanks, my module will probably have a shorter lifespan, but then again, as you said, it’s just a fews dollars. It doesn’t seem to get extremely hot. I’ll install during the weekend, PowerMaster 10, with 5 motion sensors (2 with snapshot cameras). I’ll let you know how it goes.
I can’t see on the picture where you are connecting th USR-TCP232 module on. Normally it’s at the connector used for the serial/PC connector board.
There is some useful information in here (https://forum.athom.com/discussion/1264/app-visonic-powermax-app-1-1-1/p5). Hope this helps.
Regarding the settings of your E2; is 10.0.1.3 an IP address from your local range? It seems one of the default IP;s from UST-IOT.
Work mode seems okay, put the local and remote port should not be the same. Change the remote port to some value >10000 (eg. 21011). Also change this in the HA configuration file.
Connected another PowerMaster 10 panel, with another software version (v16 instead of v18 from the other on). It shows ‘trouble’ on the panel, but I can arm/disarm it, also in HA. Attached the log file (xml=zip)
The trouble seems to be caused by ‘not connecting’ the telephone line.
Unfortunately I can’t see the panel details when I click on the wrench in the HA Visonic panel. The information is avai
lable in the HA log though.
You’re correct about the telephone line, it’s all through the log file.
As I’ve looked at your log file there’s a bug that I’ve fixed that seems to be specific to your panel so full marks for creating that one I’ve squashed that bug and uploaded release 0.0.8.1 to github. Apart from the exception it caused, it would mean that the messaging was out of sync for a while so ohter messages might be missed.
Also, in HA go to developer tools, look at the states and filter entities on visonic. Do you see all the panel attributes?
Hi, there’s no received data from the panel so the communication still isn’t working. Are you sure that you have the IP address right, it needs to be on the same network as your house and HA? Can you get a command prompt from where you run HA and ‘ping’ the device?
Thanks for your response! In my picture the module is at the very top, connected with black and white wires to the 4 “RS-232” pins just below it.
I checked your linked article, but I am afraid that is about a PowerMax+ and not a “regular”
Added a magnetic sensor to the panel. Works great, but not showing all information about the sensor details in de binary screen. Missing zone type, sensor type, zone type name, zone name and zone chime. Is this related to the panel being a PowerMaster or is it the same with the PowerMax?
It should work with the powermaster too. The only reason that it wouldn’t I think is that it is a zone number above 30. PowerMax series only have a max of 30 sensors numbered 1 to 30 and I only decode those. Powermaster, I think, has more than that so these must be in a different message that I don’t decode.
Whatever it is, if you turn debug on and send me the logs I’ll take a look. Zip the log file and rename it to a .xml extension to upload it here.