ad2usb plugin discussion

Posted on
Tue Nov 12, 2013 6:38 pm
philc offline
Posts: 159
Joined: May 17, 2011

Re: ad2usb plugin

Berkinet,
Thanks for that - funny, wouldn't have thought the neighbors even bothered...
That's an interesting concept: install an alarm device but not configure it to the alarm panel. I guess that would give you some flexibility in installation - the insteon open/close sensor are hideously huge - and allow you to take advantage of pet immune IR sensors, etc. Hmmm, I'll have to think about that.
Best,
Phil

Posted on
Wed Nov 13, 2013 5:30 pm
philc offline
Posts: 159
Joined: May 17, 2011

Re: ad2usb plugin

Berkinet,
Seeing AD2USB throwing this error:

AD2USB Alarm Interface Error You are running v1.0.4. A newer version, v1.0.4


and that's it. Only does it on startup

Best,
Phil

Posted on
Wed Nov 13, 2013 6:31 pm
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin

philc wrote:
...Seeing AD2USB throwing this error:
AD2USB Alarm Interface Error You are running v1.0.4. A newer version, v1.0.4

:oops: You caught me. I am working on the next release and am in the process of upgrading the version checker to use @travis' logger class. Just ignore the messages. (same for the acpupsd plugin)

Posted on
Fri Nov 15, 2013 4:05 pm
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

ad2usb plugin beta v1.0.4g available

Beta version 1.0.4g of the ad2usb plugin is now available. This release contains several changes.

For more information and a download link, please see the announcement.

Posted on
Fri Nov 15, 2013 7:35 pm
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin beta v1.0.4h available

Beta version 1.0.4h of the ad2usb plugin is now available. This release fixes panel alarm setting Actions that were broken in the 1.0.4g release and a few other goodies.

For more information and a download link, please see the announcement.

Posted on
Sat Nov 16, 2013 4:56 am
bradmiller offline
Posts: 24
Joined: Jul 08, 2013

Re: ad2usb plugin

Since we have to update all our zones, does this mean there's no going back to an older version if we find problems?

I don't mind helping with testing, just want to ask what I'm getting into.

Thanks
Brad

Posted on
Sat Nov 16, 2013 10:48 am
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin

bradmiller wrote:
Since we have to update all our zones, does this mean there's no going back to an older version if we find problems?

I don't mind helping with testing, just want to ask what I'm getting into.

Going backwards should work, but I haven't tested it. This release seems stable here, for me and I did the changes in small steps, testing carefully after each one. So the likelihood of a major problem is small, especially for the 10, 15 & 20 series.

Posted on
Sun Nov 17, 2013 1:54 am
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

ad2usb plugin beta v1.0.4i available

Beta version 1.0.4i of the ad2usb plugin is now available. This release adds support for zone groups - the ability to group 2 or more zones into a virtual zone.

This release represents the end of this feature cycle. I will now be concentrating on bug fixes and resolving any minor usability problems that may have crept in during the recent changes. Please do not hesitate to post any ideas you have to help make this release more useful to you.

For more information and a download link, please see the announcement.[/quote]

Posted on
Sun Nov 17, 2013 3:17 pm
ELWOOD offline
Posts: 120
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: ad2usb plugin

Richard

Upgraded to 1.0.4h yesterday and to 1.0.4i today. Redefined all alarm devices that seemed to work. Except the state column on the server does show the color balls, but on the client no color balls.

The main problem is with the keypads. My panel is a vista128, configured with 2 partitions. From the old plugin I had one keypad (device 18) setup for the ad2usb module. That is the pad address I used to configure the plugin.



Added two new keypads to the panel, partition 1 (device 06) and partition 2 (device 07) added new keypad for pt 2 to the plugin without trouble, window give place to set partition and enter device address. But trying to enter new pad for pt 1 window only gave place to enter partition no spot for device address.

Untitled 7.png
Untitled 7.png (19.39 KiB) Viewed 288 times



Also got the following errors in the log:

Nov 17, 2013, 3:10:32 PM
SQL Logger creating table device_history_882533072 for "new device"
AD2USB Alarm Interface Error Keypad Address Error = invalid literal for int() with base 10: ''. Data: keypadAddressField=47000c10, panelAddress=7, bitPosition=1
AD2USB Alarm Interface Error Keypad Address Error = invalid literal for int() with base 10: ''. Data: keypadAddressField=80000000, panelAddress=7, bitPosition=1
AD2USB Alarm Interface Error Keypad Address Error = invalid literal for int() with base 10: ''. Data: keypadAddressField=47000c10, panelAddress=7, bitPosition=1


This keeps repeating until I delete that key pad.

Looking at the other partition numbers on the above window only pt 2,3,4,5 have a place to enter the device address, 1,6,7,8 show only partition number as in above window.

Let me know what additional information or logs you might need or did I just mess up my new configurations.

Thanks as alway Elwood

Posted on
Sun Nov 17, 2013 3:21 pm
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin

Elwood. Thanks for the report. will look into the issues you noted. In the meantime, If your keypad address 18 is assigned to a partition, and it should normally be, you can use that device for the associated partition. In fact, the configUI is not supposed to let you define more than one keypad per partition.

Posted on
Sun Nov 17, 2013 3:56 pm
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin

berkinet wrote:
Elwood. Thanks for the report. will look into the issues you noted. In the meantime, If your keypad address 18 is assigned to a partition, and it should normally be, you can use that device for the associated partition. In fact, the configUI is not supposed to let you define more than one keypad per partition.


Also, Right now, the plugin assumes that the keypad address for Partition 1 is always the address of the ad2usb. That means the ad2usb's keypad address must be assigned to partition 1. I did it this way to make configuration easier for the majority of user's who have only one partition. If this creates problems, let me know and I can make the keypad address field available for partition one as well.

Posted on
Sun Nov 17, 2013 5:01 pm
hamw offline
Posts: 901
Joined: Mar 31, 2008

Re: ad2usb plugin

I loaded the new version "i" and redefined all my devices. I then changed the alarm device to another plugin type, saved and then re-enabled. Went into the config panel and kept it set up for a single partition. The plugin seems to load but throws this error set:

Code: Select all
  AD2USB Alarm Interface          The configuration changes require a plugin reload. Reloading now...
  Reloading plugin "AD2USB Alarm Interface 1.0.4i"
  Stopping plugin "AD2USB Alarm Interface 1.0.4i" (pid 1058)
  AD2USB Alarm Interface          Plugin preferences have been updated
  AD2USB Alarm Interface          ad2usb communication closed
  Received INSTEON                "Thermostat Fam Room" temperature changed to 68.0
  Stopped plugin "AD2USB Alarm Interface 1.0.4i"
  Starting plugin "AD2USB Alarm Interface 1.0.4i" (pid 1062)
  AD2USB Alarm Interface          Log level preferences are set to "Normal".
  AD2USB Alarm Interface          Log level preferences are set to "Normal".
  Started plugin "AD2USB Alarm Interface 1.0.4i"
  AD2USB Alarm Interface          Log level preferences are set to "Normal".
  Error                           script error: Can’t make characters 12 thru -1 of "" into type text. (-1700)
  AD2USB Alarm Interface          ad2usb opened for communication at socket://127.0.0.1:15003

Nov 17, 2013 5:41:30 PM

***** I pressed an indigo touch button to quickarm the system:

  AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 528, in panelQuckArmWrite
<type 'exceptions.KeyError'>: key keypadAddress not found in dict

  AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 499, in panelMsgWrite
<type 'exceptions.KeyError'>: key keypadAddress not found in dict

  AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 528, in panelQuckArmWrite
<type 'exceptions.KeyError'>: key keypadAddress not found in dict

  Error                           script error: Can’t make characters 12 thru -1 of "" into type text. (-1700)
  Received INSTEON                "Thermostat Fam Room" humidity changed to 46.0
  Reloading plugin "AD2USB Alarm Interface 1.0.4i"
  Stopping plugin "AD2USB Alarm Interface 1.0.4i" (pid 1062)
  AD2USB Alarm Interface          ad2usb communication closed
  Stopped plugin "AD2USB Alarm Interface 1.0.4i"
  Starting plugin "AD2USB Alarm Interface 1.0.4i" (pid 1076)
  AD2USB Alarm Interface          Log level preferences are set to "Normal".
  AD2USB Alarm Interface          Log level preferences are set to "Normal".
  Started plugin "AD2USB Alarm Interface 1.0.4i"
  AD2USB Alarm Interface          Log level preferences are set to "Normal".
  AD2USB Alarm Interface          ad2usb opened for communication at socket://127.0.0.1:15003
  AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 528, in panelQuckArmWrite
<type 'exceptions.KeyError'>: key keypadAddress not found in dict


Nov 17, 2013 5:43:00 PM
  Error                           script error: Can’t make characters 12 thru -1 of "" into type text. (-1700)
  AD2USB Alarm Interface Error    Found dynamic list element (1) with no value - skipping that item

Nov 17, 2013 5:43:39 PM
  AD2USB Alarm Interface Error    Found dynamic list element (1) with no value - skipping that item

  AD2USB Alarm Interface Error    Found dynamic list element (1) with no value - skipping that item
  Error                           script error: Can’t make characters 12 thru -1 of "" into type text. (-1700)
  AD2USB Alarm Interface Error    Found dynamic list element (1) with no value - skipping that item



I went into the control page and opened the action to edit it, thinking I had to assign a partition. The pull down menu is blank and can't be pulled down.

AD2USB Nov 17 2013.tiff
AD2USB Nov 17 2013.tiff (368.61 KiB) Viewed 268 times


The keypad is assigned to partion 1, and the plugin is reading the AD2USB without difficulty.

Here's the debug log.

Code: Select all
Nov 17, 2013 5:54:38 PM
  AD2USB Alarm Interface          Log level preferences are set to "Debug".
  AD2USB Alarm Interface          Log level preferences are set to "Debug".
  AD2USB Alarm Interface          Plugin preferences have been updated
  AD2USB Alarm Interface          closedPrefsConfigUi completed
  AD2USB Alarm Interface Debug    Read msg:
  AD2USB Alarm Interface Debug    panelMsgRead End
  AD2USB Alarm Interface          ad2usb communication closed
  AD2USB Alarm Interface          ad2usb opened for communication at socket://127.0.0.1:15003
  AD2USB Alarm Interface Debug    Entering read loop
  AD2USB Alarm Interface Debug    Read msg: !SER2SOCK Connected

  AD2USB Alarm Interface Debug    panelMsgRead End
  AD2USB Alarm Interface Debug    Read msg: !SER2SOCK SERIAL_CONNECTED

  AD2USB Alarm Interface Debug    panelMsgRead End
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],015,[f71300000015001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment

  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],015,[f71300000015001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],015,[f71300000015001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],015,[f71300000015001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface          panelQuckArmWrite Called
  AD2USB Alarm Interface Debug    Entering Arm-Stay control function
  AD2USB Alarm Interface Debug    Control received: delayAmount : 900
description : arm-stay
deviceId : 0
pluginId : com.berkinet.ad2usb
pluginTypeId : writeArmStayPanel
props : com.berkinet.ad2usb : (dict)
     panelMessage : ***my alarm code*** (string)
replaceExisting : True
textToSpeak :
  AD2USB Alarm Interface Error    Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 528, in panelQuckArmWrite
<type 'exceptions.KeyError'>: key keypadAddress not found in dict

  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],015,[f71300000015001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface          panelMsgWrite Called
  AD2USB Alarm Interface Debug    Entering write control function
  AD2USB Alarm Interface Debug    Control received: delayAmount : 900
description : write to panel
deviceId : 0
pluginId : com.berkinet.ad2usb
pluginTypeId : writeToPanel
props : com.berkinet.ad2usb : (dict)
     keypadAddress :  (string)
     panelMessage : **my panel code** (string)
replaceExisting : True
textToSpeak :
  AD2USB Alarm Interface Debug    Control found mesg: ***my alarm code***  entered as a panel write, not direct address
  AD2USB Alarm Interface Debug    Entering write function with write mesg: ***my alarm code***
  AD2USB Alarm Interface          panelMsgWrite completed
  AD2USB Alarm Interface Debug    Read msg: !Sending.done

  AD2USB Alarm Interface Debug    panelMsgRead End
  AD2USB Alarm Interface Debug    Read msg: [1001010110000000----],018,[f71300000018011c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: !RFX:0749946,84

  AD2USB Alarm Interface Debug    panelMsgRead End
  AD2USB Alarm Interface Debug    Read msg: [1001000110000000----],018,[f71300000018001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c28020000000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1001000110000000----],018,[f71300000018001c28021e00000000],"****DISARMED****  READY TO ARM  "

  AD2USB Alarm Interface Debug    The raw zone type is: [100
  AD2USB Alarm Interface Debug    Error: local variable 'panelAddress' referenced before assignment
  AD2USB Alarm Interface Debug    Read msg: [1000000110000000----],038,[f70400000038001c280200000


Ideas? It looks like the panel address is an issue?

Posted on
Sun Nov 17, 2013 5:25 pm
ELWOOD offline
Posts: 120
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: ad2usb plugin

Richard
OK making progress. My main keypad (device 18) before was able to add in in but could not set its address in partition 1.
Tired to set it to partition 3 which showed an spot to set the address. This gave me an error that that that partition was not
set up, changed the partition to 1 in the same setup window. That worked and the pad is in partition 1. In the device list
it shows its address as 18, be for I could get to show up in the device list but the address did not shop up.
With this change the rest of the zones now seem to be working. My triggers based on the key pad state have to be fixed, looks
like they all defaulted to keypad having state changed. Looks like you added more values to the keypad.
I will keep playing but it looks like most things are now working.
Have you added anything that will allow tracking of the user number used when it the alarm is turned on and off?

Thanks
Elwood

Posted on
Sun Nov 17, 2013 5:53 pm
berkinet offline
User avatar
Posts: 2418
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: ad2usb plugin

hamw wrote:
I loaded the new version "i" and redefined all my devices. I then changed the alarm device to another plugin type, saved and then re-enabled. Went into the config panel and kept it set up for a single partition. The plugin seems to load but throws this error set:…


I think the key error is:
    <type 'exceptions.KeyError'>: key keypadAddress not found in dict

This tells me that the keypad device you are trying to write to has not been updated to the new (post 1.0.4) release or that the changing plugin type trick somehow messed things up. Try creating a new panel device and see if that works better.

The script error:
    script error: Can’t make characters 12 thru -1 of "" into type text. (-1700)

Is being thrown by some other action, probably one that is expecting something missing from your panel device. That should clear itself up when you resolve the first problem or you might need to adjust the script.

Likewise, the problem with the pull-down on the action config is being caused because the panel keypad device was not properly read.

Bottom line: Get a working keypad device for partition 1, using the ad2usb's keypad address (That will happen automatically anyway) and I think things will start to fall into place.

Posted on
Sun Nov 17, 2013 5:56 pm
ELWOOD offline
Posts: 120
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: ad2usb plugin

Update

Looks like triggers related to the alarms "device state changed" have defaulted to "any change in state" after changing back to fault or clear they work.
Getting the green and red device state indicators on the main server but nothing on the client computers.
Getting this error on some wireless zones but not all:

AD2USB Alarm Interface Zone: 076 - -OFFICE VENT WINDOW 076 state changed to: (Clear)
Error device "-OFFICE VENT WINDOW 076" state key onOffState not defined
Error device "-OFFICE VENT WINDOW 076" state key onOffState not defined
Error device "-OFFICE VENT WINDOW 076" state key onOffState not defined
Error device "-OFFICE VENT WINDOW 076" state key onOffState not defined


Elwood

Page 16 of 28 1 ... 13, 14, 15, 16, 17, 18, 19 ... 28

Who is online

Users browsing this forum: No registered users and 2 guests