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

LUA Scene event trigger - how it works?


Question

Posted

Hello,

I need trigger my scene with event from ZIPATO keypad device even if the device doesn't change their value.

Can anybody help me with using this option?

I cannot find informations about this setting.

Thanks

 

--[[

%% autostart

%% properties

%% events

%% globals

--]]

3 answers to this question

Recommended Posts

  • 0
Posted

for trigger by event the any event need to be occurs on device. Not only change value but change of any property like energy, power, working mode, state etc.. Check properties for triggers by

Please login or register to see this code.

and lock in properties section.

Maybe with information from this subject:

it's help you

  • 0
  • Inquirer
  • Posted

    Hi,

    thank you for answer and link to topic.

    All parameters from device api I can put into %% properties and it works.

    What I need is to start scene by system event. It looks like this:

     

    {"id":8188583,"type":"DEVICE_EVENT","timestamp":1538650961,"deviceID":340,"deviceType":"com.fibaro.doorLock","event":{"type":"AccessControlEvent","data":{"id":340,"type":"Keypad","status":"Unlock","description":"ZTX_ACCESS_CONTROL_EVENT_KEYPAD_UNLOCK_OPERATION","name":"Martin RFID","slotId":2}}},{"id":8187886,"type":"DEVICE_PROPERTY_CHANGED","timestamp":1538647963,"deviceID":340,"deviceType":"com.fibaro.doorLock","propertyName":"secured","oldValue":0.0,"newValue":255.0,"icon":null}

     

    I need syntax for scene trigger by event.

    Thank you very much

     

    PS:

    This is necessary because ZIPATO keyboard has two stages, secured and unsecured, and it is not possible to unsecure home if state of keyboard is home. This can occurs when I use secure home local from keyboard and remote from app too. then is not possible control Zipato while it is at sleep mode.

    • 0
  • Inquirer
  • Posted (edited)

    Hello,

    I found this

    for event

    {"type":"event","event":{"data":{"name":"Martin RFID","description":"ZTX_ACCESS_CONTROL_EVENT_KEYPAD_UNLOCK_OPERATION","type":"Keypad","status":"Unlock","slotId":2,"id":340},"type":"AccessControlEvent"}}

     

    works this scene setting

    --[[

    %% autostart

    %% properties

    %% events

    340 AccessControlEvent

    %% globals

    --]]

     

    then is scene triggered from this deviceID and type.

     

    Edited by marbe

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