OK, I’m stumped and need some help. Thanks for this integration - really looking forward to ‘hopefully’ getting it working
I moved into a house which has a Visonic Powermax Complete unit installed. I have decided to go for the Wemos method and followed your guide flashed the Wemos with ESP and added to HA. In HA I can switch the blue lights on/off so I can see this is working OK. I then connect the Wemos to the panel and I ‘think’ I have it connected properly; but on adding the integration through HACS and then configuring I get the notification that it cannot connect to the alarm panel and therefore is not getting configured in HA.
I tried a loopback test to check the Wemos which I think looks successful:
2022-01-04 09:56:22 DEBUG (MainThread) [custom_components.visonic.client] init self.config = PyConfiguration.DownloadCode {'type': 'ethernet', 'host': '192.168.1.90', 'port': '10077', 'language': 'EN', 'force_standard': False, 'force_autoenroll': True, 'sync_time': True, 'download_code': '', 'exclude_sensor': [], 'exclude_x10': [], 'motion_off': 120, 'siren_sounding': ['intruder'], 'panel_state_notifications': ['connectionproblem', 'sirensounding'], 'arm_without_usercode': False, 'force_numeric_keypad': False, 'arm_away_instant': False, 'arm_home_instant': False, 'allow_remote_arm': True, 'allow_remote_disarm': True, 'allow_sensor_bypass': False, 'override_code': '4612', 'panellog_logentry_event': False, 'panellog_complete_event': False, 'panellog_reverse_order': False, 'panellog_csv_add_title_row': False, 'panellog_xml_filename': 'visonic_log_file.xml', 'panellog_csv_filename': 'visonic_log_file.csv', 'panellog_max_entries': 10000}
2022-01-04 09:56:22 DEBUG (MainThread) [custom_components.visonic.client] Exclude sensor list = [] Exclude x10 list = []
2022-01-04 09:56:22 DEBUG (MainThread) [custom_components.visonic.client] connect_to_alarm self.config = {'type': 'ethernet', 'host': '192.168.1.90', 'port': '10077', 'language': 'EN', 'force_standard': False, 'force_autoenroll': True, 'sync_time': True, 'download_code': '', 'exclude_sensor': [], 'exclude_x10': [], 'motion_off': 120, 'siren_sounding': ['intruder'], 'panel_state_notifications': ['connectionproblem', 'sirensounding'], 'arm_without_usercode': False, 'force_numeric_keypad': False, 'arm_away_instant': False, 'arm_home_instant': False, 'allow_remote_arm': True, 'allow_remote_disarm': True, 'allow_sensor_bypass': False, 'override_code': '4612', 'panellog_logentry_event': False, 'panellog_complete_event': False, 'panellog_reverse_order': False, 'panellog_csv_add_title_row': False, 'panellog_xml_filename': 'visonic_log_file.xml', 'panellog_csv_filename': 'visonic_log_file.csv', 'panellog_max_entries': 10000}
2022-01-04 09:56:22 DEBUG (MainThread) [custom_components.visonic.client] Visonic Connection Device Type is ethernet {<PyConfiguration.DownloadCode: 0>: '', <PyConfiguration.ForceStandard: 9>: False, <PyConfiguration.ForceAutoEnroll: 1>: True, <PyConfiguration.AutoSyncTime: 2>: True, <PyConfiguration.PluginLanguage: 3>: 'EN', <PyConfiguration.MotionOffDelay: 4>: 120, <PyConfiguration.SirenTriggerList: 5>: ['intruder'], <PyConfiguration.B0_Enable: 6>: False, <PyConfiguration.B0_Min_Interval_Time: 7>: 5, <PyConfiguration.B0_Max_Wait_Time: 8>: 30}
2022-01-04 09:56:22 DEBUG (MainThread) [custom_components.visonic.pyvisonic] Setting TCP socket Options
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] Initialising Protocol - Using Home Assistant Loop
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Standard set to False
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Enroll set to True
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Sync Time set to True
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Language set to EN
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Motion Off Delay set to 120
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Siren Trigger List set to ['intruder']
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Enable set to False
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Min Interval set to 5
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Max Wait Time set to 30
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Connection] Connected to local Protocol handler and Transport Layer
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [StartDownload] Starting download mode
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:23 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Controller] download_counter is 1
2022-01-04 09:56:23 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 1
2022-01-04 09:56:24 DEBUG (MainThread) [custom_components.visonic.client] ........... connection made
2022-01-04 09:56:24 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Stop) raw data 0d 0b f4 0a waiting for message response []
2022-01-04 09:56:24 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:24 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0B] Stop data is
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Ack) raw data 0d 02 fd 0a waiting for message response []
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Resetting expected response counter, it got to 0 Response list length before 0 after 1
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype02] Ack Received data =
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Setting Download Mode to true
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Start Download Mode) waiting for message response ['0X3C']
2022-01-04 09:56:26 WARNING (MainThread) [custom_components.visonic.pyvisonic] [data receiver] Warning : Construction of incoming packet unknown - Message Type 0X24
2022-01-04 09:56:26 WARNING (MainThread) [custom_components.visonic.pyvisonic] [data receiver] Received Unknown PDU 0x24
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Ack) raw data 0d 02 fd 0a waiting for message response ['0X3C']
2022-01-04 09:56:26 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype02] Ack Received data =
2022-01-04 09:56:29 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:29 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:29 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:29 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 2
2022-01-04 09:56:34 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:34 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:34 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:34 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 3
2022-01-04 09:56:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:39 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 4
2022-01-04 09:56:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.samsung_tv_remote is taking over 10 seconds
2022-01-04 09:56:44 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:44 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:44 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:44 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 5ing
2022-01-04 09:56:49 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:49 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:49 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:49 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 6
2022-01-04 09:56:49 INFO (MainThread) [aioesphomeapi.reconnect_logic] Successfully connected to 192.168.1.90 @ 192.168.1.90
2022-01-04 09:56:54 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:54 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:54 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:54 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 7
2022-01-04 09:56:59 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:56:59 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:56:59 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:56:59 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 8
2022-01-04 09:57:04 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 09:57:04 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 09:57:04 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 09:57:04 WARNING (MainThread) [custom_components.visonic.pyvisonic] [handle_msgtype0F] LOOPBACK TEST SUCCESS, Counter is 9
Wiring into the panel looks like this:
With the 3rd wire on the unit (TX going to the RX on the wemos, and 4th RX going to the TX on the wemos)
The debug logging shows the following (filtered on just the Visonic stuff):
2022-01-04 10:36:13 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration visonic which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-04 10:43:21 DEBUG (MainThread) [custom_components.visonic.pyvisonic] Initialising Protocol - Protocol Version 1.0.12.2
2022-01-04 10:43:21 DEBUG (MainThread) [custom_components.visonic.client] Initialising Client - Version 0.6.13.0
2022-01-04 10:43:21 DEBUG (MainThread) [custom_components.visonic.config_flow] Visonic ConfigFlow init
2022-01-04 10:43:21 DEBUG (MainThread) [custom_components.visonic.config_flow] Visonic async_step_user
2022-01-04 10:43:21 DEBUG (MainThread) [custom_components.visonic.config_flow] Visonic in async_step_user - trigger user input
2022-01-04 10:43:22 DEBUG (MainThread) [custom_components.visonic.config_flow] async_step_device {'type': 'Ethernet'}
2022-01-04 10:47:09 DEBUG (MainThread) [custom_components.visonic.config_flow] Visonic ConfigFlow init
2022-01-04 10:47:09 DEBUG (MainThread) [custom_components.visonic.config_flow] Visonic async_step_user
2022-01-04 10:47:09 DEBUG (MainThread) [custom_components.visonic.config_flow] Visonic in async_step_user - trigger user input
2022-01-04 10:47:10 DEBUG (MainThread) [custom_components.visonic.config_flow] async_step_device {'type': 'Ethernet'}
2022-01-04 10:49:38 DEBUG (MainThread) [custom_components.visonic.config_flow] Detected a powermax so not asking about B0 parameters
2022-01-04 10:49:38 INFO (MainThread) [homeassistant.setup] Setting up visonic
2022-01-04 10:49:38 INFO (MainThread) [homeassistant.setup] Setup of domain visonic took 0.0 seconds
2022-01-04 10:49:38 DEBUG (MainThread) [custom_components.visonic.client] init self.config = PyConfiguration.DownloadCode {'type': 'ethernet', 'host': '192.168.1.90', 'port': '10077', 'language': 'EN', 'download_code': '5650', 'force_standard': False, 'force_autoenroll': True, 'sync_time': True, 'exclude_sensor': [], 'exclude_x10': [], 'motion_off': 120, 'siren_sounding': ['intruder'], 'panel_state_notifications': ['connectionproblem', 'sirensounding'], 'override_code': '4612', 'arm_without_usercode': False, 'force_numeric_keypad': False, 'arm_away_instant': False, 'arm_home_instant': False, 'allow_remote_arm': True, 'allow_remote_disarm': True, 'allow_sensor_bypass': False, 'panellog_logentry_event': False, 'panellog_complete_event': False, 'panellog_reverse_order': False, 'panellog_csv_add_title_row': False, 'panellog_xml_filename': 'visonic_log_file.xml', 'panellog_csv_filename': 'visonic_log_file.csv', 'panellog_max_entries': 10000}
2022-01-04 10:49:38 DEBUG (MainThread) [custom_components.visonic.client] Exclude sensor list = [] Exclude x10 list = []
2022-01-04 10:49:38 DEBUG (MainThread) [custom_components.visonic.client] connect_to_alarm self.config = {'type': 'ethernet', 'host': '192.168.1.90', 'port': '10077', 'language': 'EN', 'download_code': '5650', 'force_standard': False, 'force_autoenroll': True, 'sync_time': True, 'exclude_sensor': [], 'exclude_x10': [], 'motion_off': 120, 'siren_sounding': ['intruder'], 'panel_state_notifications': ['connectionproblem', 'sirensounding'], 'override_code': '4612', 'arm_without_usercode': False, 'force_numeric_keypad': False, 'arm_away_instant': False, 'arm_home_instant': False, 'allow_remote_arm': True, 'allow_remote_disarm': True, 'allow_sensor_bypass': False, 'panellog_logentry_event': False, 'panellog_complete_event': False, 'panellog_reverse_order': False, 'panellog_csv_add_title_row': False, 'panellog_xml_filename': 'visonic_log_file.xml', 'panellog_csv_filename': 'visonic_log_file.csv', 'panellog_max_entries': 10000}
2022-01-04 10:49:38 DEBUG (MainThread) [custom_components.visonic.client] Visonic Connection Device Type is ethernet {<PyConfiguration.DownloadCode: 0>: '5650', <PyConfiguration.ForceStandard: 9>: False, <PyConfiguration.ForceAutoEnroll: 1>: True, <PyConfiguration.AutoSyncTime: 2>: True, <PyConfiguration.PluginLanguage: 3>: 'EN', <PyConfiguration.MotionOffDelay: 4>: 120, <PyConfiguration.SirenTriggerList: 5>: ['intruder'], <PyConfiguration.B0_Enable: 6>: False, <PyConfiguration.B0_Min_Interval_Time: 7>: 5, <PyConfiguration.B0_Max_Wait_Time: 8>: 30}
2022-01-04 10:49:38 DEBUG (MainThread) [custom_components.visonic.pyvisonic] Setting TCP socket Options
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] Initialising Protocol - Using Home Assistant Loop
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Standard set to False
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Enroll set to True
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Force Auto Sync Time set to True
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Download Code set to 56 50
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Language set to EN
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Motion Off Delay set to 120
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] Siren Trigger List set to ['intruder']
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Enable set to False
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Min Interval set to 5
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Settings] B0 Max Wait Time set to 30
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Connection] Connected to local Protocol handler and Transport Layer
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [_clearList] Setting queue empty
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [StartDownload] Starting download mode
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Exit) raw data 0d 0f f0 0a waiting for message response []
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 10:49:39 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Controller] download_counter is 1
2022-01-04 10:49:40 DEBUG (MainThread) [custom_components.visonic.client] ........... connection made
2022-01-04 10:49:40 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Controller] download_counter is 2
2022-01-04 10:49:41 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Stop) raw data 0d 0b f4 0a waiting for message response []
2022-01-04 10:49:41 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Command has a wait time after transmission 1.5
2022-01-04 10:49:41 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Controller] download_counter is 3
2022-01-04 10:49:42 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Resetting expected response counter, it got to 3 Response list length before 0 after 1
2022-01-04 10:49:42 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Setting Download Mode to true
2022-01-04 10:49:42 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Start Download Mode) waiting for message response ['0X3C']
2022-01-04 10:49:46 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [Controller] Trigger Panel Download Attempt - Not yet received the panel details
2022-01-04 10:49:46 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [StartDownload] Starting download mode
2022-01-04 10:49:46 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Resetting expected response counter, it got to 5 Response list length before 0 after 1
2022-01-04 10:49:46 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Setting Download Mode to true
2022-01-04 10:49:46 DEBUG (MainThread) [custom_components.visonic.pyvisonic] [sendPdu] Sending Command (Start Download Mode) waiting for message response ['0X3C']
2022-01-04 10:50:09 ERROR (MainThread) [custom_components.visonic.pyvisonic] [Controller] Visonic Plugin has suspended all operations, there is a problem with the communication with the panel (i.e. no data has been received from the panel)
2022-01-04 10:50:09 DEBUG (MainThread) [custom_components.visonic.client] Visonic update event 10 {'condition': 10}
I have tried to go into the installer menu, but as this is a maintained unit I don’t have the code (I tried the defaults so the installer must have set their own code).
Any ideas what I’ve done wrong? Thanks and appreciate any assistance that can be given.