Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

AccessControlEvent as trigger


Quallenboxer
 Share

Question

Can anybody post an example how to use an AccessControlEvent as trigger in HC3?

Should be working with the new firmware but nothing happens when i try it as trigger for my zipator keypad :-(

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

sure ^^ here example for Zipato RFID, with 3 users:

 

Please login or register to see this image.

/monthly_2020_07/image.png.4b707efc1537dd696d88c5fe28bb9608.png" />

 

in my case, user 1 and 3 are PIN based users, the user 2 is RFID tag.

 

 

The trigger section (i wish to trigger in single scene, for all users, and evaluate later the data. This might be of course splitted into multiple scenes)

Please login or register to see this code.

 

code section (as example only, if one split the trigger section code above, and evaluate immediately status and user, code might be simply action taken on specific status / user)

 

Please login or register to see this code.

result is like that:

 

image.png.03bd7c49cf501ba809dc51a6cc5a0e0d.png

 

so one can easily identify which user opened/closed the Lock/RFID Lock. Normally there is log, like 

 

Please login or register to see this code.

which is nothing else than device 80, with type of Keypad, got unlocked via Keypad, by user with sloid 3 (which will get translated in the trigger engine as "userid", it does not have anything to do with Fibaro user ID!).

The name and slotId can be for sure decoded manually by reading refreshState (if necesssary), for me is enought to know which user id did something, i don't need to read the name.

 

Possible values for:

status: Lock, Unlock, Jammed

type: Keypad, Manual, Remote

userId: numeric values, taken from Lock/RFID

 

 

One can of course emulate events, to test scenes/QAs, with simply lua code, e.g.

 

Please login or register to see this code.

EDIT: Such emulation can be of course useful for own QAs or linked devices, to send specific trigger into exicting RFID/Alarm scene 

Edited by tinman
Link to comment
Share on other sites

  • 0

mein Beispiel:

Please login or register to see this code.

Die Trigger wie Tinman das schon geschrieben hat...mein Script kann bis zu 3 RFID-LEser arbeiten und bis zu zwei Türschlösser öffnen (z.B. Nuki oder Danalock)

  • Like 1
Link to comment
Share on other sites

  • 0

@SvenG. da hier keine deutschsprachige Sektion gibt, habe ein Link zu deiner Szene auch in

Please login or register to see this link.

gepostet 

  • Like 1
Link to comment
Share on other sites

  • 0

ich werde noch ein wenig daran arbeiten und es dann auch bei euch reinstellen...hatte ich gestern nur mal schnell für mich erarbeitet und habe heute dann auch vom HC2 aufs HC3 geschwenkt...aber habe ziemliche Probleme...alle 4 CPUs gehen andauernd auf 100% :(

Link to comment
Share on other sites

  • 0

since 5.050.13 the trigger has changed, type is now device, not even anymoret:

 

Please login or register to see this code.

 

Advantage of this change: one can use it now like other events, even with generic anyValue trigger (and evalutae userid in "do" part of the scene):

 

Please login or register to see this code.

 

some more attention maybe to soft reconfigure devices, if trigger is still not working -> 

 

 

Edited by tinman
  • Like 1
Link to comment
Share on other sites

  • 0

now for for HC3 with firmware 5.070 (I have 3 Zippato RFID reader version 0.28)

 

Please login or register to see this code.

 

Edited by SvenG.
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...