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

Popp Keypad / LUA change user code


Question

Posted

Hello all,

I'm trying to configure a Popp Keypad as a user code reciver to check the code by fibaro LUA, not as an arming alarm panel. My objective is to change codes remotely and those codes checked by the home center to open (or not) a door.

Popp Keypad seems to work a security devices when added to home center 2, so you must put pins in his config panel from fibaro devices or set them by lua code.

 

Please login or register to see this image.

/monthly_2019_04/image.png.928cf4c70a97203d3808109625826b1d.png" alt="image.png.928cf4c70a97203d3808109625826b1d.png" />

 

The command is:  fibaro:call(id, "setUserCode", "1", "Available", "9999", "");

 

 

 

The problem is, when i call this command, the Popp Keypad waits a Wake Up, so when i wake up it manually the pin config panel from fibaro stucks himself and the command: print(fibaro:getValue(id, "userCodes")), prints me an ethernal "update":"InProgress"

 

image.png.3ce5b8367e89ce2baaa54df4b2b145c2.png

 

image.png.4c84ba571c76f3fc6ed81cbe93d8af93.png

 

If i refresh the page, the synchonization seems stuck and dont let me writte any pin manually, so i have to resynchronice again losing any pin code set.

In other words, im unable to st pin codes by LUA in my Popp Keypad.

Anyone knows how to solve this?

 

Thanks

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

Hei, i had some problems with Zipato mini keypad and used following link :

Please login or register to see this link.

. Sincere thanks to all at Smarthome SK.

Use only  Setting the RFID key caseLUA Script 1 -LUA Script 2-LUA Script 3.

Dont use script for pin codes.

Follow all direction for the above three steps- Run LUA Script 2 again after you put in your pin codes.

In LUA Script 3 enter code for pin : se my picture below. (only test numbers)

User codec 1 and 2 are my RFID Tags.

User Codec 3 and 4 are pin codes.

 

To find pin code ,go to devices and keypad, press digits on keypad and just push the Home or Away button . In the dialogue window of the Fibaro system this chain is displayed and it looks like this [143,56,144,13,1,32,2,128,0,0]. This is your pin code.

Please login or register to see this image.

Please login or register to see this attachment.

Edited by MARCUSP.I.L
  • 0
  • Inquirer
  • Posted (edited)

    Thank you so much for you answer @MARCUSP.I.L

    Popp Keypadd seems to work differently, on lua code, it only let me put "setUserCode" scripting, not "setUserCodeDec", so if i try to write "setUserCodeDec" the lua line is ignored and nothing changes. On other hand, when i put the correct pin (pin i set in the device config) it shows on fibaro dialog window just what you see in the screen below. If i try to put a wrong code, nothing is displayed.

     

    Please login or register to see this image.

    /monthly_2019_04/image.png.28bb8f8b20f47eb37aaee36522c5c88a.png" />

     

    I need to use script for pin codes because the other way to set the pin codes to the Popp Keypad is manually from the device config page and the idea is to set the codes remotely from a mobile phone. So doing it in lua (virtual device) is the easy way to set them up.

     

    What i have in mind is i have some error or im not wirtting correctly what Popp Keypadd wants in this sentence:

     

    Please login or register to see this code.

    I don't know why, but antthing i writte (aparently incorrect) doesn't work to update the keypad. Tryed:

    Please login or register to see this code.

    And nothing seems to update the keypad, seems infinite stuck updating it.

     

    image.png.7fead7d951ec9e2c666412df1f6ce029.png

     

    If i put manually the pin codeon the device config panel, the pin code works and is updated in 5-10 secs. if i do it by lua, it stucks on updating.

     

    To add some more info, i have this device

    popp-clavier-a-code-z-wave-600x600.jpg

     

    Edited by Ultimattum
    • 0
    Posted

    Hei, ok , different devices  so i am not surprised..

    I am a beginner and can't help you further, sorry.

    I have been reading on the forum and it looks like it can be done. 

    You can set up a virtual divide that can be run from your phone, change pin codes and give status.

    I would imagine that you want to enable the outside keypad with  temporary codes so that visitors can come and go ?

    I found a link that might help ? It's Spanish so perhaps the developer can assist.

    Perhaps you can post your final solution as i wish to buy a lock and keypad soon..

     

     

    • 0
    Posted
    On 4/10/2019 at 9:33 AM, Ultimattum said:

    Thank you so much for you answer @MARCUSP.I.L

    Popp Keypadd seems to work differently, on lua code, it only let me put "setUserCode" scripting, not "setUserCodeDec", so if i try to write "setUserCodeDec" the lua line is ignored and nothing changes. On other hand, when i put the correct pin (pin i set in the device config) it shows on fibaro dialog window just what you see in the screen below. If i try to put a wrong code, nothing is displayed.

     

    Please login or register to see this link.

     

    I need to use script for pin codes because the other way to set the pin codes to the Popp Keypad is manually from the device config page and the idea is to set the codes remotely from a mobile phone. So doing it in lua (virtual device) is the easy way to set them up.

     

    What i have in mind is i have some error or im not wirtting correctly what Popp Keypadd wants in this sentence:

     

    Please login or register to see this code.

    I don't know why, but antthing i writte (aparently incorrect) doesn't work to update the keypad. Tryed:

    Please login or register to see this code.

    And nothing seems to update the keypad, seems infinite stuck updating it.

     

    Please login or register to see this link.

     

    If i put manually the pin codeon the device config panel, the pin code works and is updated in 5-10 secs. if i do it by lua, it stucks on updating.

     

    To add some more info, i have this device

    Please login or register to see this link.

     

    Hi! After a lot of time have you do this pin code managing done by LUA successfully? 

     

    I have to solve a situation and I found the Popp keypad for the job, but I need to manage the pin codes by LUA scripts as you would like to do it.

    Did you do it finally? :)

     

    Thanks!

    Kind Regards

    Gábor

    • 0
    Posted (edited)

    Hello! I have the same issue with Danalock v3 lock and HC3. Did you found any solution?

    Edited by Prokopis Bor

    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...