We have moved at community.getvera.com

Author Topic: AD2USB Pin and trigger  (Read 2673 times)

Offline theknee

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
AD2USB Pin and trigger
« on: November 20, 2013, 07:52:09 am »
Hello,

I got a vista 20 and Vera3 with the AD2USB, I programmed few scenes witch use a trigger, I found recently when, when the trigger did not get is signal, I had to put back the PIN and hit store. right after this everything trigger properly. I think this is happening when I unplug the AD2USB from the Vera, but i'm sure about the reason...

Did i miss something in the setup, can I script something to put the pin automatically?

Offline SteveZ

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: +4/-1
Re: AD2USB Pin and trigger
« Reply #1 on: November 20, 2013, 12:35:37 pm »
There was a post a while back where someone has a luup code that runs at start up that stores the code, or what I do is use the advanced tab, detailed alarm state i think its called and enter my pin in the box.

Offline jimpapa

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +28/-1

Offline jimpapa

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +28/-1
Re: AD2USB Pin and trigger
« Reply #3 on: January 17, 2014, 01:32:56 am »
And.... It does not work for me.

I followed the docs in the thread I opted above....PIN will not be loaded after restart.


I put this here because this post has over 150 views.  So it looks like a bunch of us want to have this happen on our systems.  But the discussion is in the link above... I have not heard back from those who got it working.  They may be long gone. 

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: AD2USB Pin and trigger
« Reply #4 on: January 17, 2014, 10:28:07 am »
And.... It does not work for me.

I followed the docs in the thread I opted above....PIN will not be loaded after restart.


I put this here because this post has over 150 views.  So it looks like a bunch of us want to have this happen on our systems.  But the discussion is in the link above... I have not heard back from those who got it working.  They may be long gone.

I've posted for help on this too.  I have tried the code in the forum to no avail.  My system is set up for 2 partitions, I wonder if that has anything to do with my issue.


Offline jimpapa

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +28/-1
Re: AD2USB Pin and trigger
« Reply #5 on: January 17, 2014, 10:59:30 am »
well.. here is What DOES work.. (just tried this)

Create a scene called: store PIN

click on advanced
pick the device:
  Ademeco Vista Alarm Panel,  click ADD

Select Store PIN code and enter your PIN


I can verify that after reboot and you manually run this scene the PIN IS stored and available

I am trying to get this scene to run upon vera reboot and asked for help in another thread.

that just deals with running a scene on vera boot up.  If that works (so far no) I will post a link to that solution.

In the meantime, i guess you could add this code to a scene as long as it runs first .. so when you try to arm via a scene .. you can make sure the PIN is stored...

« Last Edit: January 19, 2014, 10:47:11 am by jimpapa »

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: AD2USB Pin and trigger
« Reply #6 on: January 17, 2014, 11:33:45 am »
terrific, thanks.

great approach.

Let me know how it works.

Offline jimpapa

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +28/-1
Re: AD2USB Pin and trigger
« Reply #7 on: January 17, 2014, 11:44:10 am »
it WORKS:

http://forum.micasaverde.com/index.php/topic,22573.0.html

Change the {SceneNum=31} from 31 to your "store PIN code" scene

Code: [Select]
function DeferredScene()
   luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "RunScene", {SceneNum=31}, 0)
end
luup.call_delay("DeferredScene", 15)

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: AD2USB Pin and trigger
« Reply #8 on: January 17, 2014, 11:51:44 am »
Yes!  I copied your approach and it worked.  This solves a big issue for me.  THANKS!

Offline jimpapa

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +28/-1
Re: AD2USB Pin and trigger
« Reply #9 on: January 17, 2014, 12:06:02 pm »
Big help form RichardTSchaefer and RexBeckett!