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

Zipato Mini Keypad RFiD - Fibaro HC2 LUA


Question

Hello,

 

I like to start a scene at every keypress on my Zipato Mini Keypad with RFiD

 

Example:

 

Zipato Away + PIN >>> Start scene Arm
Zipato Home + TAG >>> Start scene DisArm
Zipato Away + TAG >>> Start scene Arm
Zipato Home + PIN >>> Start scene DisArm

 

This works fine, no problem so far but if i'm also using my smartphone it doesn't work

 

1) Yesterday Alarm Disarmed by Zipato-Home-key + PIN
2) Today Alarm Armed by Smartphone
3) Today i try to disarm by Zipato-Home-key + TAG >>> NO TRIGGER 

 

Fibaro HC2 doesn't start a scene at step-3 because 'value' was not changed, for the system i pushed the home-key again (step 1 and 3)

How do i trigger a scene with FIBARO LUA every time a key was pushed?

 

-----------------------

 

Every key-press is send to Fibaro HC2 as it shows in the status screen

 

[23:11:56] ID 299: locked by user 2
[23:24:50] ID 299: unlocked by user 2
[23:24:58] ID 299: locked by user 2
[23:25:25] ID 299: locked by user 2
[23:25:43] ID 299: locked by user 2
[23:25:54] ID 299: unlocked by user 2
[23:27:46] ID 299: locked by user 2
[23:27:52] ID 299: locked by user 3
[23:27:57] ID 299: unlocked by user 2
[23:31:03] ID 299: locked by user 2
[23:31:13] ID 299: unlocked by user 2
[23:47:04] ID 299: locked by user 1
[23:47:11] ID 299: unlocked by user 1

 

-----------------------

 

SCENE HEADER:

 

--[[
%% properties
299 value
%% events
%% globals
--]]

 

Can somebody help?

 

Edited by xirilius
Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I'm almost in the same boat as you are except i wasn't able to transfer the pins from the controller to the keypad, can you please describe how did you do this? And also how did you trigger a scene when pressing home/away?

Link to post
Share on other sites
  • 0

@xirilius

what i have done is create a scene for my alarm system which is triggered by variable changes, eg variable 'alarm' set to 'arm' or 'disarm'.

then i create a scene for the keypad which just changes these variables to either 'arm' or 'disarm'.

i also then created the 2 extra scenes for use on smartphones, 1 for 'arm' and 1 for 'disarm'.

this way i can use any combination to 'arm' or 'disarm' the alarm and which works perfectly fine.

cheers

Link to post
Share on other sites
  • 0
2 minutes ago, morpheus75 said:

@xirilius

what i have done is create a scene for my alarm system which is triggered by variable changes, eg variable 'alarm' set to 'arm' or 'disarm'.

then i create a scene for the keypad which just changes these variables to either 'arm' or 'disarm'.

i also then created the 2 extra scenes for use on smartphones, 1 for 'arm' and 1 for 'disarm'.

this way i can use any combination to 'arm' or 'disarm' the alarm and which works perfectly fine.

cheers

Can you tell me how you registed the pin codes? I don't know how to do this.

 

Thank you

Link to post
Share on other sites
  • 0

@abpostelnicu

there was a thread on here which showed how to register the keyfobs and pin codes. on the hc2 about a year ago when i set it up at a clients house i couldnt name the tags or the PIN code but i used the following scene:

 

fibaro:call(ID,'setUserCodeDec','1','Occupied','143,40,28,11,1,32,2,128,0,0')
fibaro:call(ID,'setUserCodeDec','2','Occupied','143,24,148,18,1,32,2,128,0,0')
fibaro:call(ID,'setUserCode','3','Occupied','4321') 

 

where ID is the RFID keypad.

 

if i remember correctly when you scan the tags the number appears in the window at the top of the browser

Link to post
Share on other sites
  • 0
3 minutes ago, morpheus75 said:

@abpostelnicu

there was a thread on here which showed how to register the keyfobs and pin codes. on the hc2 about a year ago when i set it up at a clients house i couldnt name the tags or the PIN code but i used the following scene:

 

fibaro:call(ID,'setUserCodeDec','1','Occupied','143,40,28,11,1,32,2,128,0,0')
fibaro:call(ID,'setUserCodeDec','2','Occupied','143,24,148,18,1,32,2,128,0,0')
fibaro:call(ID,'setUserCode','3','Occupied','4321') 

 

where ID is the RFID keypad.

 

if i remember correctly when you scan the tags the number appears in the window at the top of the browser

Excuse me but i own a HCL so i don't have access to native LUA code.

Link to post
Share on other sites
  • 0
1 minute ago, abpostelnicu said:

Excuse me but i own a HCL so i don't have access to native LUA code.

then im sorry i dont know.

Link to post
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.

×
×
  • Create New...