Author Topic: Get Lock Pin User  (Read 10414 times)

Offline silencery

  • Sr. Member
  • ****
  • Posts: 254
  • Karma: +14/-1
Re: Get Lock Pin User
« Reply #15 on: March 21, 2014, 03:06:20 pm »
Awesome! Much prettier than my dirty version :)

Thanks Richard!

Offline shmixx

  • Full Member
  • ***
  • Posts: 171
  • Karma: +2/-1
Re: Get Lock Pin User
« Reply #16 on: March 21, 2014, 03:41:42 pm »
Looks to be working perfect for me too! At first I forgot to put the device number in, corrected that mistake, and WALA!

@RichardT you are the man!!

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10070
  • Karma: +761/-141
Re: Get Lock Pin User
« Reply #17 on: March 21, 2014, 04:03:26 pm »
There is also a String.LockUserID()  if you want the ID!
This file  will be in the next official  release.

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Re: Get Lock Pin User
« Reply #18 on: April 17, 2014, 09:06:54 am »
Am I correct in thinking that this will allow me to have one notification for each lock and VeraAlerts will get the username from the lock for me? If so, which notification option are you choosing?

"A PIN code is entered" makes you choose one particular index number.
"A door is locked or unlocked" will give me alerts when the lock is operated manually


Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10070
  • Karma: +761/-141
Re: Get Lock Pin User
« Reply #19 on: April 17, 2014, 09:14:20 am »
It will only work for:
   "A PIN code is entered" makes you choose one particular index number.
Use * as a pin code.
The alert will tell you wich user actually opened the door.

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Re: Get Lock Pin User
« Reply #20 on: April 17, 2014, 05:47:12 pm »
wildcards.... Thanks

Offline clippermiami

  • Hero Member
  • *****
  • Posts: 1387
  • Karma: +27/-6
Re: Get Lock Pin User
« Reply #21 on: May 22, 2014, 09:31:28 am »
{Deleted}

Solved the problem, formatting of the template string.
« Last Edit: May 22, 2014, 12:43:17 pm by clippermiami »
Two Vera Plus UI7 Linked via HTTP, 90+ Devices. PlugIns: PLEG, DSC, Blue Iris, MySensors,  AutoVera, ImperiHome, VeraAlerts, EventWatcher

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Get Lock Pin User
« Reply #22 on: June 12, 2014, 10:41:31 am »
I've been using this but it is not sending the User Name...

OPEN Front Door Lock {Device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}{Device([139].Lock.sl_UserCode) | String.LockUserName()}

... any ideas why?

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Get Lock Pin User
« Reply #23 on: June 21, 2014, 09:58:19 am »
Anyone have this working? No matter what I try I never get the user  name

Sent from my SAMSUNG-SGH-I747 using Tapatalk


Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Get Lock Pin User
« Reply #24 on: July 12, 2014, 10:00:30 pm »
Richard,
Is there something wrong with my code? It never works for me?

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10070
  • Karma: +761/-141
Re: Get Lock Pin User
« Reply #25 on: July 14, 2014, 01:53:32 pm »
Did you break it down and try something simpler ? Are you sure you have the right device ID?

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Get Lock Pin User
« Reply #26 on: July 14, 2014, 04:37:02 pm »
*UPDATED TESTING*


OPEN Front Door Lock {Device([137].Lock.sl_UserCode)}
... works as expected

OPEN Front Door Lock {Device([137].Lock.sl_UserCode) | String.LockUserName()}
... only provides UserName, not UserCode

OPEN Front Door Lock {Device([137].Lock.sl_UserCode) | String.LockUserName()}{Device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}
... provides no lock data
« Last Edit: July 15, 2014, 10:28:13 am by Aaron »

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Get Lock Pin User
« Reply #27 on: July 23, 2014, 02:25:09 pm »
*UPDATED TESTING*


OPEN Front Door Lock {Device([137].Lock.sl_UserCode)}
... works as expected

OPEN Front Door Lock {Device([137].Lock.sl_UserCode) | String.LockUserName()}
... only provides UserName, not UserCode

OPEN Front Door Lock {Device([137].Lock.sl_UserCode) | String.LockUserName()}{Device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}
... provides no lock data

Richard, any help here?

I'd like VeraAlerts to display only LockUserName - and also follow the tone rules set by the Choose statement.

thanks

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Get Lock Pin User
« Reply #28 on: August 05, 2014, 08:54:16 pm »
no help?

Offline mlawell

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Get Lock Pin User
« Reply #29 on: November 26, 2014, 09:40:32 pm »
This is nice, except when we unlock through the interface. It only alerts with the last user to unlock... how do we filter out or return the user logged into the interface?