ad2usb plugin discussion

Posted on
Sun Nov 08, 2020 12:40 pm
hamw offline
Posts: 1215
Joined: Mar 31, 2008

Re: ad2usb plugin discussion

After a lot of trial and error, it turns out that i had to install a fresh copy of the plugin. The old plugin, which was working with the 20SE board, would not accept the changes for the 20p and hold them. So for instance I set to keypad 23, but the plugin was constantly resetting to 31. After I finally guessed the problem, deleted the plugin and installed a fresh version, everything is working as expected.

Hope this may help someone else. Any ideas why the plugin would be "sticky"?

On another topic, I have set different codes for the alarm, so the workers use XXXX, and the family uses YYYY. In the documentation it states that we can log arming events to the user code. How do I implement that?

Posted on
Mon Nov 09, 2020 6:12 am
berkinet offline
User avatar
Posts: 3476
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin discussion

hamw wrote:
After a lot of trial and error, it turns out that i had to install a fresh copy of the plugin. ...
...Hope this may help someone else. Any ideas why the plugin would be "sticky"?

...On another topic, I have set different codes for the alarm, so the workers use XXXX, and the family uses YYYY. In the documentation, it states that we can log arming events to the user code. How do I implement that?
Glad to hear you fixed it. It sounds like the installed copy of the plugin somehow became corrupted. That is usually a sign of disk issues.

I would love to answer your second question. But, as I am not at the relocation where I am running the plugin, and for the moment cannot even access it, I really can't give you the answer to your question. Did you search through the release posts on this thread? I have usually documented such changes. If you don't find anything, I will look at the code to see what I can.

Posted on
Wed Nov 11, 2020 2:31 pm
roquej offline
User avatar
Posts: 479
Joined: Jan 04, 2015

ad2usb plugin discussion

I have encountered an interesting problem. I have a Vista 20P. It has been connected to AD2PI for several years without an issue. One of the zones is the garage door. I created a trigger that executes when the zone goes to FAULT. However, when the trigger executes, I get:

AD2USB Alarm Interface Error advancedReadZoneMessage: Unable to update state table for zone 04, address 18.

When it happens, the zone loses its state, and the trigger fails. Again, it triggers but causes the zone to go haywire and the actions fail. I have tried using the masquerade plugin but got the same behavior.

Any suggestions?

Thanks in advance.

JP

Posted on
Sun Jan 17, 2021 11:29 pm
classicmac offline
Posts: 9
Joined: Jan 09, 2007

Re: ad2usb plugin discussion

I have a AD2USB set up with ser2sock and the ad2usb plugin. First of all thanks for all of your work on this plugin. It is exactly what I was looking for.

The only issue I'm having is that I periodically get error messages in my Indigo logs.

Code: Select all
   AD2USB Alarm Interface Error    Error on line 791
   AD2USB Alarm Interface Error    panelMsgRead: Error: list.remove(x): x not in list

I have tried turning debugs up to intense debugs but it doesn't provide information related to those errors. When debugs are set to intense I do get these lines logged. I'm guessing they aren't the cause of the errors because the errors don't show up when those lines are logged.

Code: Select all
 AD2USB Alarm Interface Debug    calling basic
 AD2USB Alarm Interface Debug    Zone:8, Key:****D

Anyone have ideas on how to figure out what is causing the errors?

Some additional information. I have a Vista 20P with 2 partitions. My first partition has my security zones. The second I don't arm and has motion sensors I use to alert me when there is motion around the exterior of my home. Please let me know if any other information would be helpful in diagnosing the errors.

Posted on
Tue Jun 01, 2021 6:20 pm
jltnol offline
Posts: 668
Joined: Oct 15, 2013

Re: ad2usb plugin discussion

Not sure if this is allowed here, but if anyone needs a NuTech AD2USB devices, send me a PM. I have a brand new one for sale. <Hope I'm not breaking any forum rules>

Posted on
Fri Jun 11, 2021 8:15 am
7rdr7 offline
Posts: 95
Joined: Aug 16, 2017
Location: Washington DC Metro

Re: ad2usb plugin discussion

Hey Guys,
Has anyone seen errors like this?
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
AD2USB Alarm Interface Error panelMsgRead: Error: invalid literal for int() with base 10: '0bf'
AD2USB Alarm Interface Error Error on line 733
Periodically I'll get a few hundred of these errors. It goes away if I power cycle the AD2PI module. It seems to cause/effect LRR alarms on my Vista21IP panel.
Would appreciate any ideas?
Thanks.

Found source: LRR failure (Long Range Radio)

Posted on
Tue Aug 03, 2021 7:46 am
roquej offline
User avatar
Posts: 479
Joined: Jan 04, 2015

Re: ad2usb plugin discussion

Posted the issue in the AlarmDecoder forum, but hoping the experts here know the issue.

Unifi Dream Machine Pro Thread Management is affecting my AD2PI. It seems the AD2PI is considered a thread. The result is that the AD2PI goes unstable and must be rebooted every few hours. The AD2PI is connected to Indigo, but even if you reboot the plug-in, it doesn't work. The only thing that solved the issue is rebooting it the AD2PI.

If I disable Thread Management, everything works fine.

Any ideas what type of thread management prevention could cause the issue? Or way is the AD2PI considered a thread?

JP

Posted on
Thu Aug 05, 2021 9:03 am
roquej offline
User avatar
Posts: 479
Joined: Jan 04, 2015

Re: ad2usb plugin discussion

Just in case it helps someone. The reason Unifi Thread Management was causing the AD2PI to reboot and go unstable was the setting:

RPC
UNIX RPC service-related exploits and outdated functionality.

This is under Security/Threat Management/Hacking.

Turn it off and everything works.

JP

Posted on
Mon Sep 13, 2021 1:35 am
hensed offline
Posts: 44
Joined: Feb 01, 2012
Location: Oakland, CA

Re: ad2usb plugin discussion

Well, this weekend I had the bright idea to update the Mac Mini that I have been using to run indigo with a brand new M1 Mac Mini. Well, surprise! I ran into some issues, but trying to get the important stuff resolved first - Alarm Control.

While installing Ser2sock on my machine. I've come across an issue where Mac OS Big Sur no longer allows you to write into the /system/library/launchitems folder. I'm able to get ser2sock connection, but for some reason I am unable to write to the panel. The auto-config keeps setting my keypad to "A" instead of 18.

I get "UI dynamic list function returned illegal ID string" error when the action dialog window opens to enter write-to-panel field info. There is no partition to select in to dropdown.

Posted on
Wed Sep 22, 2021 12:42 am
hensed offline
Posts: 44
Joined: Feb 01, 2012
Location: Oakland, CA

Re: ad2usb plugin discussion

Weird... why is my changedBy always unknown?

Posted on
Fri Oct 15, 2021 11:12 pm
hensed offline
Posts: 44
Joined: Feb 01, 2012
Location: Oakland, CA

Re: ad2usb plugin discussion

ok, I seemed to have chased away all my demons except for this one. Every time one of my virtual zones is faulted by a trigger, the alarm panel correctly reports the fault, but the virtual zone will not fault (or do anything) in indigo. I will get this error each time tho:

Code: Select all
 AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 430, in virtZoneManage
KeyError: key vZonePartitionNumber not found in dict


I've done a reset of the AD2USB, the vista 20p panel and the indigo server.

Posted on
Sat Oct 16, 2021 3:42 am
berkinet offline
User avatar
Posts: 3476
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin discussion

hensed wrote:
... I will get this error each time tho:

Code: Select all
 AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 430, in virtZoneManage
KeyError: key vZonePartitionNumber not found in dict


I've done a reset of the AD2USB, the vista 20p panel and the Indigo server.
This sounds like a corrupted Indigo device in the database. Try deleting and recreating the virtual zone device.

Posted on
Sat Oct 16, 2021 10:15 am
hensed offline
Posts: 44
Joined: Feb 01, 2012
Location: Oakland, CA

Re: ad2usb plugin discussion

I was thinking some type of corruption too. I deleted half my virtual zones (and their triggers) and re-created them. Still getting the same error, and no indigo-side fault. What I did find that was new - if I toggle off/on on the "Comm Enabled" box, I get this message:

Code: Select all
AD2USB Alarm Interface Error    Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2021.1/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1278, in deviceUpdated
  File "plugin.py", line 329, in deviceStartComm
  File "plugin.py", line 162, in advancedBuildDevDict
KeyError: key logSupervision not found in dict


here's my debug log:
Code: Select all
AD2USB Alarm Interface          virtZoneManage Called
   AD2USB Alarm Interface          virtZoneManage: Received:configured : True
delayAmount : 900
description : change a virtual zone's state
deviceId : 1510977745
pluginId : com.berkinet.ad2usb
pluginTypeId : virtualZoneActons
props : com.berkinet.ad2usb : (dict)
     virtualAction : 0 (string)
replaceExisting : True
textToSpeak :
   AD2USB Alarm Interface          virtZoneManage: Sent message:L280
   AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 430, in virtZoneManage
KeyError: key vZonePartitionNumber not found in dict

   AD2USB Alarm Interface Debug    no panel status change
   AD2USB Alarm Interface          validatePrefsConfigUi Called
   AD2USB Alarm Interface          validatePrefsConfigUi: Received: UiValuesDict : (dict)
     ad2usbAddress : 127.0.0.1 (string)
     ad2usbCommType : IP (string)
     ad2usbConfigRead :  (string)
     ad2usbDeduplicate : true (bool)
     ad2usbEmulationLabel :  (string)
     ad2usbEmulationSpace :  (string)
     ad2usbExpander_1 : false (bool)
     ad2usbExpander_2 : false (bool)
     ad2usbExpander_3 : true (bool)
     ad2usbExpander_4 : true (bool)
     ad2usbExpander_5 : false (bool)
     ad2usbKeyPadAddress : 18 (string)
     ad2usbLrr : false (bool)
     ad2usbPort : 15003 (string)
     ad2usbRelLabel :  (string)
     ad2usbSerialPort : /dev/cu.usbserial-DT04GKQ5 (string)
     ad2usbVirtRelay_1 : false (bool)
     ad2usbVirtRelay_2 : false (bool)
     ad2usbVirtRelay_3 : false (bool)
     ad2usbVirtRelay_4 : false (bool)
     ad2usbZxpLabel :  (string)
     infoLabel :  (string)
     isAdvanced : true (bool)
     logArmingEvents : true (bool)
     logUnknownDevices : false (bool)
     makeSpace1 :  (string)
     makeSpace2 :  (string)
     makeSpace3 :  (string)
     modeNotes1 :  (string)
     msgControl : 1 (string)
     msgTestFail1 :  (string)
     msgTestFail2 :  (string)
     msgTestSuccess :  (string)
     panelPartitionCount : 1 (string)
     pcSep1 :  (string)
     pcSep2 :  (string)
     restartClear : false (bool)
     sectionLabel1 :  (string)
     sectionLabel2 :  (string)
     sectionLabel3 :  (string)
     showDebugInfo1 : 1 (string)
     simpleSeparator1 :  (string)
     simpleSeparator2 :  (string)
     simpleSeparator3 :  (string)
     updaterEmail :  (string)
     updaterEmailSubject : apcupsd plugn update available (string)
     updaterEmailsEnabled : true (bool)
     updaterLastCheck : 1633155584 (real)
     v0 :  (string)
     v1 :  (string)
     v2 :  (string)
     v3 :  (string)
   AD2USB Alarm Interface          validatePrefsConfigUi: validation: ad2usb config string is:CADDRESS=18&EXP=nnYYn&REL=nnnn&LRR=N&DEDUPLICATE=Y
   AD2USB Alarm Interface          validatePrefsConfigUi: Validation: the url is:socket://127.0.0.1:15003
   AD2USB Alarm Interface          validatePrefsConfigUi: Starting config write with:
u'CADDRESS=18&EXP=nnYYn&REL=nnnn&LRR=N&DEDUPLICATE=Y\r':
   AD2USB Alarm Interface          validatePrefsConfigUi: validation: ad2usb config string is: CADDRESS=18&EXP=nnYYn&REL=nnnn&LRR=N&DEDUPLICATE=Y
   AD2USB Alarm Interface Error    advancedReadZoneMessage: Unknown message received:!Reading configuration.

   AD2USB Alarm Interface Error    advancedReadZoneMessage: Unknown message received:!UART init.

   AD2USB Alarm Interface          validatePrefsConfigUi: Completed config write
   AD2USB Alarm Interface          validatePrefsConfigUi completed
   AD2USB Alarm Interface          closedPrefsConfigUi Called
   AD2USB Alarm Interface          Log level preferences are set to "Normal".
   AD2USB Alarm Interface          Plugin preferences have been updated

Posted on
Sat Oct 16, 2021 12:02 pm
berkinet offline
User avatar
Posts: 3476
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin discussion

hensed wrote:
I was thinking some type of corruption too. I deleted half my virtual zones (and their triggers) and re-created them. Still getting the same error, and no indigo-side fault. What I did find that was new - if I toggle off/on on the "Comm Enabled" box, I get this message:…

fortunately, this really looks like a corrupted database problem. You may need to delete the plug-in and all your ad2usb devices and then re-start from scratch. you should probably make a back up of your indigo database first so that you can go back to it if there are problems. Also, if you are comfortable at a low level, you might wish to look for the actual saved devices in the database to see if you can swap a missing data element.

Posted on
Sat Oct 16, 2021 12:43 pm
hensed offline
Posts: 44
Joined: Feb 01, 2012
Location: Oakland, CA

Re: ad2usb plugin discussion

Thank you a million for you help on this so far.

I have created a new test DB, started all services. I started by adding a virtual zone first, but got this message on creation:
Code: Select all
 AD2USB Alarm Interface Error    Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2021.1/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1278, in deviceUpdated
  File "plugin.py", line 329, in deviceStartComm
  File "plugin.py", line 162, in advancedBuildDevDict
KeyError: key logSupervision not found in dict


I want to blame the fact that I am building a new automation scheme on an M1 mac.... maybe I should have gotten an intel machine.....but perhaps that's not it.

Who is online

Users browsing this forum: No registered users and 1 guest

cron