Visonic Powermax and Powermaster Component

If you go to “Developer Tools” and find one of the sensors, for example “binary_sensor.visonic_z01”. You should see the state set to either “off” or “on”, these are the standard HA settings for a binary sensor.

When I edit an Entities Card in the Frontend then PIRs show as “Clear” or “Detected”, Door sensors show as “Closed” or “Open”. I’m not sure how to change these default labels but I assume that it’s in the Frontend somewhere. I just show the Badges so it’s not something I’ve looked at myself.

You can set the device_type in the customize section of your configuration and that does make a difference (a few posts back, 1316 I think) but you would need to experiment yourself.

Hi, I searched the entire thread but not able to find if you shared the new card config or not?
Can you please share this as I really like the card, specially showing low battery section
Thanks

My old Powermax died this week so I’ve just replaced it with a Powermaster 10.

I’m hoping to get some Home Assistant integration going pretty sharpish, but there’s a lot to take in here. The wiki provides a few options that I can see, but is anyone able to advise the most seamless way of hooking the Powermaster 10 up? I already have a Raspberry Pi 3 spare that I can use. From what I can tell, using a Pi via WiFi seems to be the easiest setup?

My previous model connected to my MQTT server via a WEMOS, it was a bit clunky but it worked (kind of). But any pointers out of the gate would be awesome.

Do you have a wired connection (Ethernet or USB) between the panel and the device with Home Assistant? If not then you’re relying on a wifi connection. Wifi relies on a good signal to your router from where the alarm panel is located.
If wifi then there are a couple of options still including raspberry pi. The problem with a RPi is the power supply that it needs but other users have done this. If the Wemos is based on a ESP8266 then you may be able to use it.

Hi,

I have a Pi 3 running HA and used a £6.45 USB connector which came with all the wires required.

Your alarm panel would need to be close to the Pi though.

I have tried to share the link from the amazon app but it doesn’t work!!

https://www.google.com/aclk?sa=L&ai=DChcSEwidw8rDwPDqAhXN7e0KHRR-Ca0YABAFGgJkZw&sig=AOD64_28etvMA1ezlMbJljPMkMG9ngXB1g&ctype=5&q=&ved=2ahUKEwjPtMLDwPDqAhXSh1wKHZuXBlAQwg96BAgJEAo&adurl=

Make sure the correct usb is selected in the visonic config, the default is USB1 but mine was connected on USB0

I believe it is ESP8266 based, but the issue I have is that last time around, I powered it by soldering to the board itself which I’d rather not do this time around. Plugging something in and powering it up separately from the alarm panel would be preferable.

My WiFi is pretty strong near the panel, so I’m happy with the WiFi route. I think I’ll go this way. Thanks for your help!

That looks perfect. I think I’ll pick that up and go from there. Thanks!

Look at that post :

I bought some dupont cables and hooked a USB > Serial device up to my Pi as recommended here, but having a bit of trouble getting ser2net to work by the looks of it.

I’ve connected it as mentioned on the git wiki 3.75v pin on the panel to the Vcc (3.3v), gnd to gnd and Tx to Rx, Rx to Tx.) but it doesn’t seem to be picking up any data from the panel.

My ser2net config reads as follows

10628:raw:600:/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A700eRHw-if00-port0:9600 8DATABITS NONE 1STOPBIT

It mentions changing this to the proper serial port but I’m not smart enough to figure out what that is, so I think that could be where I’m going wrong. If it’s /dev/ttyUSB0, should it read as follows?

10628:raw:600:/dev/ttyUSB0/usb-FTDI_FT232R_USB_UART_A700eRHw-if00-port0:9600 8DATABITS NONE 1STOPBIT

I never installed ser2net, my adaptor was automatically found when I plugged it in. Run lsusb, mine was shown as dev/tty/USB0. Check the correct usb port is selected in the Visonic initial config setup as I believe it defaults to dev/tty/USB1

I only connected the RX to TX, TX to RX and GND to GND as the adaptor is powered by the USB when plugged in to the RasPi

Reading this page may help

https://www.raspberrypi.org/forums/viewtopic.php?t=257630

Hey, thanks for the response. The Pi connected with the adaptor to my panel isn’t running Home Assistant, so I’m not sure it would discover it automatically. Unless I’m misunderstanding something? It does show as /dev/ttyUSB0, but the setup on HA doesn’t allow me to choose as I’m not connecting via USB.

I guess I don’t need the power pin, so I’ll take that out and double check my wirings.

How are you connecting it?

So I have the USB-Serial adaptor wired to the IP pins on my panel, which is connected to a Raspberry Pi running ser2net (via USB). My understanding was I could use this integration to connect to the Pi (over WiFi) to transmit the data over the network to my HA instance.

Ser2net is showing the following message, which seems fairly damning

pi@raspberrypi:~ $ ser2net -d
ser2net[4988]: Unable to create network socket(s) on line 73

What are you running HA on and have you tried connecting the usb directly to what is running HA to see if that works?

I have HA running on Docker on a QNAP NAS. I haven’t tried that but I can test it and report back.

Edit: Can’t seem to get that to work either. lsusb shows Device 008 as the adaptor correctly, but I can’t get the integration to read it at all, it just shows an unknown state in HA. I’m clearly missing something obvious!

[~] # lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 002: ID 1005:b155 Apacer Technology, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

try ls -l /dev/tty* and see if the adaptor is shown as being connected at dev/ttyUSB0

There are no ttyUSB devices listed. Just a bunch of tty* devices.

[~] # ls -l /dev/tty*
crw-rw-rw- 1 admin administrators 5,  0 2020-08-01 01:00 /dev/tty
crw------- 1 admin administrators 4,  0 2020-08-01 00:00 /dev/tty0
crw--w---- 1 admin administrators 4,  1 2020-08-01 00:14 /dev/tty1
crw------- 1 admin administrators 4, 10 2020-08-01 01:00 /dev/tty10
crw------- 1 admin administrators 4, 11 2020-08-01 01:00 /dev/tty11
crw------- 1 admin administrators 4, 12 2020-08-01 01:00 /dev/tty12
crw------- 1 admin administrators 4, 13 2020-08-01 01:00 /dev/tty13
crw------- 1 admin administrators 4, 14 2020-08-01 01:00 /dev/tty14
crw------- 1 admin administrators 4, 15 2020-08-01 01:00 /dev/tty15
crw------- 1 admin administrators 4, 16 2020-08-01 01:00 /dev/tty16
crw------- 1 admin administrators 4, 17 2020-08-01 01:00 /dev/tty17
crw------- 1 admin administrators 4, 18 2020-08-01 01:00 /dev/tty18
crw------- 1 admin administrators 4, 19 2020-08-01 01:00 /dev/tty19
crw--w---- 1 admin administrators 4,  2 2020-08-01 00:14 /dev/tty2
crw------- 1 admin administrators 4, 20 2020-08-01 01:00 /dev/tty20
crw------- 1 admin administrators 4, 21 2020-08-01 01:00 /dev/tty21
crw------- 1 admin administrators 4, 22 2020-08-01 01:00 /dev/tty22
crw------- 1 admin administrators 4, 23 2020-08-01 01:00 /dev/tty23
crw------- 1 admin administrators 4, 24 2020-08-01 01:00 /dev/tty24
crw------- 1 admin administrators 4, 25 2020-08-01 01:00 /dev/tty25
crw------- 1 admin administrators 4, 26 2020-08-01 01:00 /dev/tty26
crw------- 1 admin administrators 4, 27 2020-08-01 01:00 /dev/tty27
crw------- 1 admin administrators 4, 28 2020-08-01 01:00 /dev/tty28
crw------- 1 admin administrators 4, 29 2020-08-01 01:00 /dev/tty29
crw------- 1 admin administrators 4,  3 2020-08-01 01:00 /dev/tty3
crw------- 1 admin administrators 4, 30 2020-08-01 01:00 /dev/tty30
crw------- 1 admin administrators 4, 31 2020-08-01 01:00 /dev/tty31
crw------- 1 admin administrators 4, 32 2020-08-01 01:00 /dev/tty32
crw------- 1 admin administrators 4, 33 2020-08-01 01:00 /dev/tty33
crw------- 1 admin administrators 4, 34 2020-08-01 01:00 /dev/tty34
crw------- 1 admin administrators 4, 35 2020-08-01 01:00 /dev/tty35
crw------- 1 admin administrators 4, 36 2020-08-01 01:00 /dev/tty36
crw------- 1 admin administrators 4, 37 2020-08-01 01:00 /dev/tty37
crw------- 1 admin administrators 4, 38 2020-08-01 01:00 /dev/tty38
crw------- 1 admin administrators 4, 39 2020-08-01 01:00 /dev/tty39
crw------- 1 admin administrators 4,  4 2020-08-01 01:00 /dev/tty4
crw------- 1 admin administrators 4, 40 2020-08-01 01:00 /dev/tty40
crw------- 1 admin administrators 4, 41 2020-08-01 01:00 /dev/tty41
crw------- 1 admin administrators 4, 42 2020-08-01 01:00 /dev/tty42
crw------- 1 admin administrators 4, 43 2020-08-01 01:00 /dev/tty43
crw------- 1 admin administrators 4, 44 2020-08-01 01:00 /dev/tty44
crw------- 1 admin administrators 4, 45 2020-08-01 01:00 /dev/tty45
crw------- 1 admin administrators 4, 46 2020-08-01 01:00 /dev/tty46
crw------- 1 admin administrators 4, 47 2020-08-01 01:00 /dev/tty47
crw------- 1 admin administrators 4, 48 2020-08-01 01:00 /dev/tty48
crw------- 1 admin administrators 4, 49 2020-08-01 01:00 /dev/tty49
crw------- 1 admin administrators 4,  5 2020-08-01 01:00 /dev/tty5
crw------- 1 admin administrators 4, 50 2020-08-01 01:00 /dev/tty50
crw------- 1 admin administrators 4, 51 2020-08-01 01:00 /dev/tty51
crw------- 1 admin administrators 4, 52 2020-08-01 01:00 /dev/tty52
crw------- 1 admin administrators 4, 53 2020-08-01 01:00 /dev/tty53
crw------- 1 admin administrators 4, 54 2020-08-01 01:00 /dev/tty54
crw------- 1 admin administrators 4, 55 2020-08-01 01:00 /dev/tty55
crw------- 1 admin administrators 4, 56 2020-08-01 01:00 /dev/tty56
crw------- 1 admin administrators 4, 57 2020-08-01 01:00 /dev/tty57
crw------- 1 admin administrators 4, 58 2020-08-01 01:00 /dev/tty58
crw------- 1 admin administrators 4, 59 2020-08-01 01:00 /dev/tty59
crw------- 1 admin administrators 4,  6 2020-08-01 01:00 /dev/tty6
crw------- 1 admin administrators 4, 60 2020-08-01 01:00 /dev/tty60
crw------- 1 admin administrators 4, 61 2020-08-01 01:00 /dev/tty61
crw------- 1 admin administrators 4, 62 2020-08-01 01:00 /dev/tty62
crw------- 1 admin administrators 4, 63 2020-08-01 01:00 /dev/tty63
crw------- 1 admin administrators 4,  7 2020-08-01 01:00 /dev/tty7
crw------- 1 admin administrators 4,  8 2020-08-01 01:00 /dev/tty8
crw------- 1 admin administrators 4,  9 2020-08-01 01:00 /dev/tty9
crw--w---- 1 admin administrators 4, 64 2020-08-01 00:14 /dev/ttyS0
crw------- 1 admin administrators 4, 65 2020-08-01 00:07 /dev/ttyS1
crw------- 1 admin administrators 4, 66 2020-08-01 01:00 /dev/ttyS2
crw------- 1 admin administrators 4, 67 2020-08-01 01:00 /dev/ttyS3

Below is an image of how it’s wired up. There are rx and tx LED indicators on the board that don’t seem to flash at all except when it’s powered on, so something seems off.

Here are some probably not-so-useful logs.

2020-08-03 16:42:53 INFO (MainThread) [custom_components.visonic.pyvisonic] [Connection] Connected to local Protocol handler and Transport Layer


2020-08-03 16:42:53 INFO (MainThread) [custom_components.visonic.pyvisonic] [StartDownload] Starting download mode


2020-08-03 16:42:53 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected because of close/abort.


2020-08-03 16:42:58 ERROR (MainThread) [custom_components.visonic.pyvisonic]                         Calling Exception handler.


2020-08-03 16:42:58 ERROR (MainThread) [custom_components.visonic.client] PyVisonic has caused an exception, no exception information is available


2020-08-03 16:43:03 ERROR (MainThread) [custom_components.visonic.client]  ........... setting up reconnection


2020-08-03 16:43:03 ERROR (MainThread) [custom_components.visonic.client]  ........... attempting reconnection


2020-08-03 16:43:03 INFO (MainThread) [custom_components.visonic.client]           ........... Closing down Current Task


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client]           ........... Current Task Done


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] ........... attempting connection


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Found existing HA alarm_control_panel ['alarm_control_panel.visonic_alarm_2', 'alarm_control_panel.visonic_alarm']


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client]     Checking HA Alarm ID: alarm_control_panel.visonic_alarm_2


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client]        ***** Matched - Alarm Control Panel already exists so keep it ***** : alarm_control_panel.visonic_alarm_2


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client]     Checking HA Alarm ID: alarm_control_panel.visonic_alarm


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client]        ***** Matched - Alarm Control Panel already exists so keep it ***** : alarm_control_panel.visonic_alarm


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.updater


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.dooley_drive_away


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.living_room_thermostat_online


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.living_room_thermostat_fan


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.living_room_thermostat_is_using_emergency_heat


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.front_door_ding


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.front_door_motion


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.living_room_thermostat_is_locked


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.living_room_thermostat_has_leaf


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.motion_sensor_158d0001e56224


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.motion_sensor_158d000225180a


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.door_window_sensor_158d0001b7b672


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.switch_158d0001b19b02


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] Checking HA Entity ID: binary_sensor.upstairs_hallway_sensor_motion


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Standard set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Enroll set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Sync Time set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Download Code set to 56 50


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Language set to EN


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Remote Arm set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Remote DisArm set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Enable Sensor Bypass set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Motion Off Delay set to 120


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Override Code in new settings, the length is 0   isdigit = False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings]     Override Code cleared


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Numeric Keypad set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Arm Without Code set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Siren Trigger List set to ['intruder']


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Enable set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Min Interval set to 5


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Max Wait Time set to 30


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log Max Entries set to 10000


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log Reverse set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log Create Event set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log Final Event set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log XML Filename set to 


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log CSV Filename set to 


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.client] [Settings] Log CSV title Row set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] Setting TCP socket Options


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] Buffer Flushed and Received some data!


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Standard set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Enroll set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Sync Time set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Download Code set to 56 50


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Language set to EN


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Remote Arm set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Remote DisArm set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Enable Sensor Bypass set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Motion Off Delay set to 120


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Override Code in new settings, the length is 0   isdigit = False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings]     Override Code cleared


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Numeric Keypad set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Arm Without Code set to True


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] Siren Trigger List set to ['intruder']


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Enable set to False


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Min Interval set to 5


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Max Wait Time set to 30


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [Connection] Connected to local Protocol handler and Transport Layer


2020-08-03 16:43:05 INFO (MainThread) [custom_components.visonic.pyvisonic] [StartDownload] Starting download mode


2020-08-03 16:43:05 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected because of close/abort.


2020-08-03 16:43:10 ERROR (MainThread) [custom_components.visonic.pyvisonic]                         Calling Exception handler.


2020-08-03 16:43:10 ERROR (MainThread) [custom_components.visonic.client] PyVisonic has caused an exception, no exception information is available


2020-08-03 16:43:15 ERROR (MainThread) [custom_components.visonic.client]  ........... setting up reconnection


2020-08-03 16:43:15 ERROR (MainThread) [custom_components.visonic.client]  ........... attempting reconnection


2020-08-03 16:43:15 INFO (MainThread) [custom_components.visonic.client]           ........... Closing down Current Task

It appears some connection is happening. Dave maybe to help a bit more with the log info.

It’s the same USB I’ve got so I can confirm it works. I don’t know if the lights flash on mine when data is being transmitted.

If you’ve a spare micro sd card maybe worth downloading a HA image and loading that so HA is running directly on the RaspPi and just test it that way. That’s what I did and it saves you completely screwing up other setting etc

I’m unable to do that unfortunately as I don’t have a spare micro SD.

I’m pretty sure the issue is related to ser2net but I’ve never used it before and I’m struggling to troubleshoot this specific issue. Hoping someone who has a similar configuration can chime in!

Sorry but no connection is being made (and the python asyncio library doesn’t understand why as there is no exception text). Perhaps I should rephrase, a connection is being attempted and then it fails immediately.