The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => AD2USB Plugin for the Honeywell/Ademco Vista Alarm Panels => Topic started by: hugheaves on August 21, 2014, 10:42:20 am

Title: AD2USB over network / ethernet
Post by: hugheaves on August 21, 2014, 10:42:20 am
I recently moved my Vera Lite to a location that doesn't have access to my alarm bus wiring. Rather than rewire, I decided to use an extra Raspberry Pi as a USB to ethernet bridge, and then patched the AD2USB plug-in to communicate over the network to the Raspberry Pi  / AD2USB. (All credit goes to @futzle for the code to make this work - the patch was almost a straight cut and paste job from the Caddix plugin)

My alarm  system connection now looks like this:

[Vista 20P]   <---Alarm Bus--->   [AD2USB]   <---USB--->   [Raspberry Pi ]  <---Ethernet---> [Vera Lite]

Everything's been up and running for a couple of weeks now without any issues.

To set this up, I had to install ser2net on the Raspberry Pi. As I'm running Raspbian, I just used apt to install the package:

Code: [Select]
# apt-get install ser2net

Once ser2net was installed, I added a line to /etc/ser2net.conf to make the AD2USB available over the network:

Code: [Select]
9999:raw:600:/dev/ttyUSB0:115200 8DATABITS NONE 1STOPBIT

On the Vera side,  once running the patched AD2USB plugin, I set the IP address of my raspberry Pi, and the port number from the ser2net config above in the IP address field of the plug-in configuration. I also needed to clear the "IODevice" field. See the attached screenshots showing where to set these values.

I've attached a patched L_VistaAlarmPanel1.lua (and a patch file) below. If anyone else gives this a try, upload the L_VistaAlarmPanel1.lua to your Vera, and let me know if it works.

Note that the patched file is for UI5 only. I don't have a UI4 device to develop or test with.

Hugh
Title: Re: AD2USB over network / ethernet
Post by: pentium on August 21, 2014, 12:36:13 pm
This is awesome.  Thank you so much for sharing. 

If I could ask one more thing.  I have the vista 20 p, the ad2usb, and the veralite.  What else would I have to buy to do this.  And by that I am requesting any model number or source or identifying information that I would need to duplicate your system.  Would I need to program the raspberry? 
Title: Re: AD2USB over network / ethernet
Post by: hugheaves on August 21, 2014, 02:02:33 pm
This is awesome.  Thank you so much for sharing. 

If I could ask one more thing.  I have the vista 20 p, the ad2usb, and the veralite.  What else would I have to buy to do this.  And by that I am requesting any model number or source or identifying information that I would need to duplicate your system.  Would I need to program the raspberry?

You'd just need a raspberry pi board, and possibly a USB power supply, SD card, and case if you don't already have them. The raspberry pi can be found many places for around $35. Googling will show up sources for a case as well.

It's very easy to setup / program. More information is on the official website:

http://www.raspberrypi.org/

If you're going to buy one, I'd recommend getting the "B+" model, which is the latest version. It fixes some power supply issues that the older models suffered from.

Once you have one, there are a number of other "automation" tasks you can do with it. I use mine to control a sprinkler system as well.
Title: Re: AD2USB over network / ethernet
Post by: pentium on August 22, 2014, 05:41:37 pm
thank you again, please stay tuned.  I have a raspberry kit on the way that will be here sunday.  hoping to have this working by the next friday.  if you think of any tips or tricks, please feel free to load me up before i start.
Title: Re: AD2USB over network / ethernet
Post by: pentium on August 24, 2014, 07:26:17 pm
I received my new PI, and followed your instructions.  It was easier than I thought.

My problem right now is that there is nothing on the screen when i choose to set the serial configuration.

Also when it is rebooting, it says that the alarm connection is down.

I think I am really close and just need a way to input the information into the serial configuration screen that was there when it was connected directly.

Regarding the lua file that you attached, i downloaded it, and then went to the luup files option, and uploaded the file.  Not sure if i selected reload, so i went back and did that.

Any suggestions?
Title: Re: AD2USB over network / ethernet
Post by: xuniman on September 03, 2014, 08:18:35 pm
I have a similar setup with a AD2USB plugged into the USB port of a Raspberry PI and the Pi on my network. I was able to get the Vera3 to see the PI by loading ser2net on the Pi using hugheaves instructions in this post.

My one problem was that even when using the modified lua file I wasn't able to get the Vera to see the pi on the ip:port. I needed to go into my serial setup field and enter the Raspberry Pi ip:port (and the 115200,N,8,1) into the GC100 serial port information section that was created when I added a GC100 unit to the system. The Vera3 doesn't actually talk to the GC100 serial port, it goes directly the the ser2net connection on the pi and all of the communications work.

I don't know if you can install the GC100 app on a Vera3 without actually having the device. If it's possible that would solve the issue of needing to have the USB port active.
Title: Re: AD2USB over network / ethernet
Post by: hugheaves on September 04, 2014, 07:50:14 am
I received my new PI, and followed your instructions.  It was easier than I thought.

My problem right now is that there is nothing on the screen when i choose to set the serial configuration.

Also when it is rebooting, it says that the alarm connection is down.

I think I am really close and just need a way to input the information into the serial configuration screen that was there when it was connected directly.

Regarding the lua file that you attached, i downloaded it, and then went to the luup files option, and uploaded the file.  Not sure if i selected reload, so i went back and did that.

Any suggestions?

Hey pentium. Very sorry for the late reply. I didn't get notice that you'd responded to this thread.

I've added a couple of screen shots to the first post that should help. You've got to set the IP address / port and also clear the "IODevice" field in the advanced settings.

Give that a try, and let me know if that fixes it for you.

Hugh
Title: Re: AD2USB over network / ethernet
Post by: hugheaves on September 04, 2014, 07:59:07 am
I have a similar setup with a AD2USB plugged into the USB port of a Raspberry PI and the Pi on my network. I was able to get the Vera3 to see the PI by loading ser2net on the Pi using hugheaves instructions in this post.

My one problem was that even when using the modified lua file I wasn't able to get the Vera to see the pi on the ip:port. I needed to go into my serial setup field and enter the Raspberry Pi ip:port (and the 115200,N,8,1) into the GC100 serial port information section that was created when I added a GC100 unit to the system. The Vera3 doesn't actually talk to the GC100 serial port, it goes directly the the ser2net connection on the pi and all of the communications work.
they'
I don't know if you can install the GC100 app on a Vera3 without actually having the device. If it's possible that would solve the issue of needing to have the USB port active.

xuniman,

Thanks for the feedback. I'm guessing what happened was that the AD2USB plugin may have still had an "IODevice" set in it's configuration, even though it was using the IP address / port. I haven't tried it, but if you configured an IO Port in the GC10 plugin, it may have "grabbed" the port settings from the AD2USB plugin and cleared them.

In reality, you can forget about the GC100. All you have to do is clear the "IODevice" field in the advanced settings of the AD2USB plugin.

Hugh
Title: Re: AD2USB over network / ethernet
Post by: roquej on September 04, 2014, 08:48:39 am
Works!!  Thank you! 

JR
Title: Re: AD2USB over network / ethernet
Post by: xuniman on September 05, 2014, 11:54:16 am
Yes, the IO port has been cleared and I no longer need the GC100 entry for the communications to work. Thanks for the plug in modifications.
Title: Re: AD2USB over network / ethernet
Post by: kevinnutech on September 05, 2014, 04:05:49 pm
Just a note from us at Nu Tech/AlarmDecoder:   You are able to use ser2sock from our raspberry pi image with the ser2net connection from the Vera.  To achieve this, you run ser2sock in raw device mode (via configuration file or -0 on command line).   Benefits of ser2sock over ser2net is multiple connection support - so many devices can connect in and use the AD2 device with ser2sock.
Title: Re: AD2USB over network / ethernet
Post by: chasiu on September 25, 2014, 03:22:26 pm
Has anyone noticed the Pin Code not being saved after a reboot?  I don't recall having to enter it in again after rebooting the Vera before I loaded the patch L_VistaAlarmPanel1.lua. 

Can I try this with UI7?  I couldn't use the AD2USB before with UI7 because I couldn't get the serial port to configure.  But now it is using network I thought maybe it may work.  Will the patch work with UI7 or can anyone make a modified patch?
Title: Re: AD2USB over network / ethernet
Post by: pentium on September 25, 2014, 03:25:26 pm
Just in case it applies, i have this in my startup lua, changing the xxxx with my actual pin number.  and the device number replacing my 34.

luup.call_action("urn:micasaverde-com:serviceId:VistaAlarmPanel1", "StorePinCode", "xxxx", 34)
Title: Re: AD2USB over network / ethernet
Post by: chasiu on September 25, 2014, 03:31:09 pm
So do I click on Edit Startup Lua and enter the code and hit GO?  And is the device number the keypad number?

Just in case it applies, i have this in my startup lua, changing the xxxx with my actual pin number.  and the device number replacing my 34.

luup.call_action("urn:micasaverde-com:serviceId:VistaAlarmPanel1", "StorePinCode", "xxxx", 34)
Title: Re: AD2USB over network / ethernet
Post by: pentium on September 25, 2014, 03:38:53 pm
The device number is the number assigned to your device ademco vista partion 1.  look on the left in the advanced tab.

i think the answer to the other question is yes.  i didn't remember the go part, but pretty sure the save button will light up and you will need to click that.  Then refresh your browser. 
Title: Re: AD2USB over network / ethernet
Post by: andreimios on April 03, 2015, 06:32:25 am
Hi all,

I updated the last plugin version with changes suggested by hugheaves in order to add this feature to the official plugin but I did it "blindly"(we don't have this alarm panel at the office) and I need someone to confirm that works before I update the plugin on apps.mios.com.
I added "overNetwork" variable that is set to "0" by default for using the plugin without the new feature added. You will need to change it to "1" in order to use the "over network" feature (but not before you follow the instructions provided in the first post).

Let me know if the version attached is working and if so, I will update the plugin and release a new version.

Best Regards,

- Andrei -
Title: Re: AD2USB over network / ethernet
Post by: Theboob on April 16, 2015, 03:13:30 pm
Hi there. Just wondering if there are any pros/cons to this setup vs just using an EVL-3 with the other plugin? I'm trying to decide between a DSC or Honeywell panel. And whether to use EVL-3 or not.

Thanks.
Title: Re: AD2USB over network / ethernet
Post by: xuniman on April 29, 2015, 06:20:48 pm
I tried testing this today with your April file above. My Vera with UI7 just went into a reboot loop.

Here is the log snippet:
50   04/29/15 15:12:09.393   luup_log:19003: Honeywell Ademco Vista Alarm Panel Plugin version 2.45 <0x2bfce680>
06   04/29/15 15:12:09.393   Device_Variable::m_szValue_set device: 19003 service: urn:micasaverde-com:serviceId:VistaAlarmPanel1 variable: PluginVersion was: 2.45 now: 2.45 #hooks: 0 upnp: 0 skip: 0 v:0x1184da8/NONE duplicate:1 <0x2bfce680>
01   04/29/15 15:12:09.394   GetLuaInterface can't find device type: 4/0x1333b80 str: 0 <0x2bfce680>
01   04/29/15 15:12:09.395   luup_variable_get interface 0x12fb228 args 4 <0x2bfce680>
50   04/29/15 15:12:09.395   luup_log:19003: (VistaAlarmPanel::getDebugMode) Debug mode disabled. <0x2bfce680>
50   04/29/15 15:12:09.396   luup_log:19003: (VistaAlarmPanel::getNumPartitions) Number of partitions = 1. <0x2bfce680>
09   04/29/15 15:12:09.400   Child_Devices::ProcessChildDevice deleting device 19049 id vista_partition_1 room 0 desc Ademco Vista Partition 1 under 19003 topmost parent 19003 because type o:urn:schemas-micasaverde-com:device:VistaAlarmPartition:2!=n:urn:schemas-micasaverde-com:device:AlarmPartition:2 or file o:D_VistaAlarmPartition1.xml!=n:D_VistaAlarmPartition1.xml embedded o:0!=n:0 ok:0/1 <0x2bfce680>
06   04/29/15 15:12:09.469   Device_Variable::m_szValue_set device: 19050 service: urn:micasaverde-com:serviceId:VistaAlarmPanel1 variable: KeypadAddresses was: EMPTY now:  #hooks: 0 upnp: 0 skip: 0 v:0x1186578/NONE duplicate:0 __LEAK__ this:61440 start:155648 to 0x14c1000 <0x2bfce680>
09   04/29/15 15:12:09.479   Child_Devices::ProcessChildDevice created device 19050 id vista_partition_1 under 19003 topmost parent 19003 <0x2bfce680>
06   04/29/15 15:12:09.481   Device_Variable::m_szValue_set device: 1 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: LastDongleBackup was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bfce680>
01   04/29/15 15:12:09.593   UserData::WriteUserData saved--before move File Size: 27810 save size 27810 <0x2bfce680>
02   04/29/15 15:12:09.594   UserData::TempLogFileSystemFailure start 0 <0x2bfce680>
02   04/29/15 15:12:09.620   UserData::TempLogFileSystemFailure 5026 res:1

I've attached the longer version if that will help. Now I just need to figure out how to get the vera back in service.
Title: Re: AD2USB over network / ethernet
Post by: xuniman on April 30, 2015, 12:07:58 pm
I'll try and post the full log file again.

I tried hugheaves original luup file in post 1 and it causes the same kind of perpetual restart loop.
Title: Re: AD2USB over network / ethernet
Post by: andreimios on May 08, 2015, 04:07:38 am
Hi xuniman,

Thank you for testing this. There was an issue in the L_ file when creating the alarm partition device, device file specified in L_ file was different then the one in D_ file and this caused the reboot loop. I attached another L file that should fix this. Please test this and let me know if it worked. You can PM or email me after you finish the tests.
Thank you again for your support.

All the Bests,

- Andrei -
Title: Re: AD2USB over network / ethernet
Post by: andreimios on May 15, 2015, 03:48:45 am
Hi all,

With xuniman help, a new plugin version that include the support for over network / ethernet implemented by hugheaves. The instructions for configuring the plugin can be found on my earlier post.

All the Bests,

- Andrei - 
Title: Re: AD2USB over network / ethernet
Post by: hugheaves on June 16, 2015, 10:32:27 am
Hi all,

With xuniman help, a new plugin version that include the support for over network / ethernet implemented by hugheaves. The instructions for configuring the plugin can be found on my earlier post.

All the Bests,

- Andrei -

Hi Andrei,

Is this plug-in version supposed to work with UI5, or is it a UI7 only version? I tried version 3.82 to my UI5 veralite using the test-plugin link: http://apps.mios.com/test-plugin.php?id=968&show=versions but I'm getting a Lua error on startup. (see screenshot) There's no obvious Lua error in the logs.

Also, what's the purpose of the "overNetwork" setting? As far as I can tell, it just changes the location of the PIN code storage from /etc/cmh-ludl/havsc to /tmp/havsc. The determination of whether or not to use the network connection seems to be still based on whether or not the "ip" luup variable is set (or not). Currently, my "overNetwork" setting is set to "0', but I'm still connecting over the TCP/IP network to the panel.

Hugh
Title: Re: AD2USB over network / ethernet
Post by: andreimios on June 16, 2015, 10:45:52 am
Hi hugheaves,

Quote
Is this plug-in version supposed to work with UI5, or is it a UI7 only version? I tried version 3.82 to my UI5 veralite using the test-plugin link: http://apps.mios.com/test-plugin.php?id=968&show=versions but I'm getting a Lua error on startup. (see screenshot) There's no obvious Lua error in the logs.

This is due to luup.set_failure at the end of the startup function, it should be there only for UI7. My bad, I forgot to check this.

Quote
Also, what's the purpose of the "overNetwork" setting? As far as I can tell, it just changes the location of the PIN code storage from /etc/cmh-ludl/havsc to /tmp/havsc. The determination of whether or not to use the network connection seems to be still based on whether or not the "ip" luup variable is set (or not). Currently, my "overNetwork" setting is set to "0', but I'm still connecting over the TCP/IP network to the panel.

I tried to include the changes form our first post into plugin and this was the only difference I noticed. I don't have this alarm panel and I don't know how it should work. I did the changes and I asked some users to test it. Based on the feedback I got, I decided to publish the new version, but it seems that it was causing problems for some users, so I removed it from apps. This is another reason for letting you maintain the plugin. I tried to help when I found some time between my task but the result was not the on I expected, so I will let you handle the plugin.

All the Bests,

- Andrei -
Title: Re: AD2USB over network / ethernet
Post by: BillFulton on August 21, 2015, 12:04:42 am
OK, I feel like I must be the only who can't get this to work.

I installed the AD2USB from the App tab (version 3.12) on a Vera Edge running UI7 (1.7.1320). I do not have the IODevice field in the advance/variables tab. It showed for a brief second and when I set it to 0 it disappeared. I do have a commUse field that is set to RS232 and I can't get it change.

I've rebooted, reloaded Luup and refreshed the page many many times.

I have the IP entered correctly.

I have the AD2PI with a PI running perfectly on my network. I can access it from internal and external with my phone or laptop.

The Vera Edge is working fine running several devices and scenes.

Here's the kicker, I can use the Envisalink plugin fine. I prefer to use the AD2Pi and shelve the Envisalink but can't get it to work.

I'm certain I've done everything in this post at least 14 times.

Any help is greatly appreciated.
Title: Re: AD2USB over network / ethernet
Post by: Vandamme23 on August 27, 2015, 05:33:17 pm
I'm using Vera Edge, Raspberry Pi, and a AD2USB... Trying to get the Edge to connect to the AD2USB through the network.  Installed the latest Vera plug-ins and the .lua files from this thread, and can't get the new settings to show...  Any help would be appreciated...  Haven't been able to locate any step-by-step instructions, so I will document my journey here...

I keep finding(through Google) bits and pieces so I'll try to document what I have done so far...

---Raspberry Pi
1. Attach AD2USB to USB port
2. Installed ser2net...  'sudo apt-get install ser2net'
3. Installed monodevelop...  'sudo apt-get install monodevelop'
4. Installed AlarmDecoder Keypad...  download here -  http://www.alarmdecoder.com/wiki/index.php/AlarmDecoder_Keypad
5. Configure and test Alarm using AlarmDecoder Keypad

---Vera
1. Installed AD2USB plugin
2. Uploaded latest, patched L_VistaAlarmPanel1.lua from this thread


Feel free to help out with the next steps...
Title: Re: AD2USB over network / ethernet
Post by: krayola on January 09, 2016, 02:46:43 pm
I'm using Vera Edge, Raspberry Pi, and a AD2USB... Trying to get the Edge to connect to the AD2USB through the network.  Installed the latest Vera plug-ins and the .lua files from this thread, and can't get the new settings to show...  Any help would be appreciated...  Haven't been able to locate any step-by-step instructions, so I will document my journey here...

I keep finding(through Google) bits and pieces so I'll try to document what I have done so far...

---Raspberry Pi
1. Attach AD2USB to USB port
2. Installed ser2net...  'sudo apt-get install ser2net'
3. Installed monodevelop...  'sudo apt-get install monodevelop'
4. Installed AlarmDecoder Keypad...  download here -  http://www.alarmdecoder.com/wiki/index.php/AlarmDecoder_Keypad
5. Configure and test Alarm using AlarmDecoder Keypad

---Vera
1. Installed AD2USB plugin
2. Uploaded latest, patched L_VistaAlarmPanel1.lua from this thread


Feel free to help out with the next steps...

I had to add the overNetwork setting in UI7 manually:

Panel device > Advanced ... New Service/Variable
New Service: urn:micasaverde-com:serviceId:VistaAlarmPanel1
New Variable: overNetwork
New value: 1

I also had to set "ip" on the Params tab to my RPI ser2net ip:port

Then I had to go to the partition device and set the KeypadAddresses to 16,18

I still get "Can't Detect Device" despite it working so far.  Now to sort out the PIN storage problem I'm having.
Title: Re: AD2USB over network / ethernet
Post by: Vandamme23 on January 21, 2016, 10:08:03 am
Thx krayola,  Those final steps have me up and running.  The full rundown is below...

Edge, Raspberry Pi, and a AD2USB.

---Raspberry Pi
1. Attach AD2USB to USB port
2. Installed ser2net...  'sudo apt-get install ser2net'
3. Installed monodevelop...  'sudo apt-get install monodevelop'
4. Installed AlarmDecoder Keypad...  download here -  http://www.alarmdecoder.com/wiki/index.php/AlarmDecoder_Keypad
5. Configure and test Alarm using AlarmDecoder Keypad

---Vera
1. Installed AD2USB plugin (It creates 2 devices, one for Panel, one for Partition)
2. Uploaded latest, patched L_VistaAlarmPanel1.lua from this thread
3.  On the Panel device add the overNetwork setting in UI7 manually:
Panel device > Advanced ... New Service/Variable
New Service: urn:micasaverde-com:serviceId:VistaAlarmPanel1
New Variable: overNetwork
New value: 1
4.  On the Panel device change the 'ip' variable to the ser2net ip:port from your raspberry pi
5.  On the Partition device set the KeypadAddresses to 31(yours may be different)
Title: Re: AD2USB over network / ethernet
Post by: kevinnutech on January 22, 2016, 01:34:59 pm
Just FYI, if you use ser2sock in raw device mode instead of ser2net you can run the AlarmDecoder Keypad software at the same time as the Vera because it can share the socket stream with more than one device at the same time.
Title: Re: AD2USB over network / ethernet
Post by: kevinnutech on March 03, 2016, 01:47:10 pm
Hi,

So I've done a little work on the file in this thread to make it support some firmware changes in the 2.8 branch.  In my lab I've gotten this to work following these instructions:

---Vera
1. Installed AD2USB plugin (It creates 2 devices, one for Panel, one for Partition)
2. Uploaded latest, patched L_VistaAlarmPanel1.lua from this thread
3.  On the Panel device add the overNetwork setting in UI7 manually:
Panel device > Advanced ... New Service/Variable
New Service: urn:micasaverde-com:serviceId:VistaAlarmPanel1
New Variable: overNetwork
New value: 1
4.  On the Panel device change the 'ip' variable to the ser2sock ip:port from your raspberry pi
5.  On the Partition device set the KeypadAddresses to 31(yours may be different)

On the raspberry pi, I use our image from alarmdecoder.com with the ser2sock already running (no need for ser2net or any modifications on the pi side if you are using our image) - I prefer ser2sock as it is multicast, so I will always use that in our lab.

Title: Re: AD2USB over network / ethernet
Post by: mrwildbob on May 06, 2016, 02:25:12 pm
Hi Kevin,

I installed per instructions above.  The plugin works and I am able to control the panel via partition device but I keep getting Can't Detect Device for the panel device.  Any ideas?

Also, after 20 days or so, I have to reboot the RPi becuase Vera/Keypad App is not able to connect to it.  Do you know where I can find any logs that might clue me into why it is failing?  The RPi is up to date.

Thanks

boB
Title: Re: AD2USB over network / ethernet
Post by: kevinnutech on May 09, 2016, 02:48:47 pm
Sorry, no idea on the "Cant detect device" bit - seems to be a vera-ism that doesn't affect actual arming and disarming.

If you are using our image on the pi, there are several places to look:

/var/log/messages
/opt/alarmdecoder-webapp/instance/logs/
/var/log/gunicorn/

Since you are using the pi with ser2sock, you can verify ability to connect from a PC using telnet:  telnet <pi ip address>:10000

If you cannot connect, I would assume that the pi itself is having issues, maybe power related?
Title: Re: AD2USB over network / ethernet
Post by: mrwildbob on May 09, 2016, 03:39:13 pm
Hi Kevin,

Thanks for the reply.  Normally everything is ok with the RPi but I notice after 20+ days, I can not connect to it via vera or AD Keypad Desktop App.  If I log into web interface, it will show the page but does not show the keypad.  If I reboot, then everything works fine.  The RPi seems to be working fine as I have several other RPis without issues.  I checked the logs and didn't see anything that stands out as a problem.  I seems to me like the listener just stops.  Have you seen that before?

boB
Title: Re: AD2USB over network / ethernet
Post by: kevinnutech on May 10, 2016, 03:49:03 pm
Not something I've seen before.  Make sure ser2sock service is continuing to run and has not lost access to the serial port.

Are you using an AD2USB or AD2PI?  AD2USB, perhaps it's having a "usb disconnect" event and having trouble rebinding to the serial port - killing and restarting ser2sock should fix that provided that the usb stays at /dev/ttyUSB0
Title: Re: AD2USB over network / ethernet
Post by: mrwildbob on May 10, 2016, 06:15:41 pm
I am using AD2USB.  I should get myself the AD2PI, that might fix it up.

Thanks

boB
Title: Re: AD2USB over network / ethernet
Post by: pentium on May 10, 2016, 07:04:53 pm
It hasn't happened in a long time so i am not certain, but it seems that everytime i disconnected the ad2usb cable from vera, I would have to go back in and set the serial port up in the vera interface.  UI5
Title: Re: AD2USB over network / ethernet
Post by: mrwildbob on August 28, 2016, 01:18:51 am
Ok, I tried to update Vera firmware to latest (1.7.855) and failed.  Error was to contact support.  Contacted support and they logged into my Vera3 and had to clear the Vera, upgrade it, then restore backup.

Now, getting error on Ademco Vista Alarm Panel "Missing port.Can't Detect Device" and "Vista Alarm Panel : Connection down."  I checked the ip:port and was correct.  (Running AlarmDecoder on RPi)  AlarmDecoder (RPi) works fine and AlarmDecoder Keypad works.  I could telnet into port 10000 and see the messages.  Uninstalled app and reinstalled.  No change.

overNetwork=1 is set
IODevice=0 is set

At this point, it has to be vera.  Anyone have ideas?

boB
Title: Re: AD2USB over network / ethernet
Post by: pentium on August 28, 2016, 07:07:26 am
You probably did but didn't mention it, did you set the baud rate in the serial port configuration to 115200?
Title: Re: AD2USB over network / ethernet
Post by: chasiu on November 22, 2016, 06:38:42 pm
I wanted to update my firmware on my AD2USB from 2.2a.6 to 2.2a.8.2 so I can use it with Honeywell Compass software.  But after upgrading the firmware it does not work with Vera correctly anymore.  I could arm and disarm but it would not update the status or trigger my lights.  After downgrade the AD2USB firmware it worked correctly again.  Is 2.45 still the latest plugin?  Is there anyway to make it work properly with the latest firmware?  I am on UI5.

Thanks!
Title: Re: AD2USB over network / ethernet
Post by: chasiu on November 23, 2016, 11:46:35 am
Is this a fix for my issue?  How do I add this?

http://code.mios.com/trac/mios_vista-alarm-panel-ad2usb/changeset/81/
Title: Re: AD2USB over network / ethernet
Post by: s0c0 on December 10, 2016, 06:20:33 pm
I'm on UI7. I think I have this working. Kept getting the "Cant Connect" error even though everything including sensors were working correctly. But, the "You have one device disconnected" error message on the dash from Vera was driving me nuts. I took a look at the .lua kevin posted @ reply#28. Found this: (Lines #23-27)
Code: [Select]
local SID = {
PANEL = "urn:micasaverde-com:serviceId:VistaAlarmPanel1",
PARTITION = "urn:micasaverde-com:serviceId:AlarmPartition2",
SECURITY_SENSOR = "urn:micasaverde-com:serviceId:SecuritySensor1"
}

I changed Line #25

Code: [Select]
PARTITION = "urn:micasaverde-com:serviceId:AlarmPartition2",to
Code: [Select]
PARTITION = "urn:micasaverde-com:serviceId:AlarmPartition1",
I made this change, uploaded the changed .lua to my vera and the "Cant Connect" message went away. Everything seems to be working.
I don't know if this change broke anything else I may not be using at this time. Such as an actual partition 2 connected to vera.

I am not a programmer, not a developer, and have little idea what I'm doing. I just know that something looked out of place, so I changed it and my problem went away

Hoping someone with some experience can chime in as to if I may have broken anything with this change I have not come across yet. I just know the message was driving me crazy and I wanted it gone, and now it is.
Title: Re: AD2USB over network / ethernet
Post by: kevinnutech on December 12, 2016, 02:25:13 pm
Seems like a valid fix to me!
Title: Re: AD2USB over network / ethernet
Post by: jb2017 on August 13, 2017, 04:07:14 pm
Hoping my comment will bump this thread for others with a Vera Secure experiencing this issue...

The solution described in this thread is the only workaround that could get my AD2NetworkAppliance to work on my Vera Secure. Multiple calls and emails to Vera (the last call ended after an hour with the support tech telling me it 'couldn't be done' and the AD2Network 'wasn't supported') were useless.

Thank you!
Title: Re: AD2USB over network / ethernet
Post by: justroach on October 30, 2017, 11:48:23 pm
Are the modified attachments from this thread still needed or has everything been pulled into the main plugin now? I'm on 3.12.

Thanks!

UPDATE:

I followed Kevin's directions here: http://forum.micasaverde.com/index.php/topic,26672.msg272946.html#msg272946

All working now.

UPDATE2:

I spoke too soon. The status is not being updated. Otherwise I can arm and disarm. Anyone have any great ideas? Thanks!
Title: Re: AD2USB over network / ethernet
Post by: wolfpackt99 on November 30, 2017, 08:21:49 am
i have the alarm decoder webapp running in docker on my nas. everything is working fine. Is this enough to follow the directions to get vera 'overNetwork' working?
Or does the rPi appliance have the serial app running as well?
Title: Re: AD2USB over network / ethernet
Post by: wolfpackt99 on November 30, 2017, 08:51:44 am
i dug through the dockerfile for the rPi.

Looks like i need to add the ser2sock repo as well. I can't simply use the webapp URL in vera.
Title: Re: AD2USB over network / ethernet
Post by: nocarins on February 13, 2018, 03:36:11 am
I am installing ad2pi network appliance  and I am getting "Error:Device not ready" when trying to arm  on Vera Edge UI7? Keypad on web browser and  regular 6160 keypad  works.  Anybody have any idea how to fix.
Title: Re: AD2USB over network / ethernet
Post by: aschwalb on August 08, 2018, 09:22:50 am
I used to have the EVL-3 with my Honeywell and that plug-in is gone (had to replace my Vera).  I take from reading this thread that I can use the AD2USB plug-in with the AD2USB-Pi device and get basically a network based interface for my Ademco/Honeywell alarm to Vera?  Is this working well?  Couldn't tell from the thread if this had settled into maturity...