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!



Smart Home Forum by FIBARO Team

Scene LUA startSource eventID adding


Recommended Posts


I use LUA scene with event trigger


%% autostart

%% properties

%% events

340 AccessControlEvent

%% globals



This works well and is very useful, thanks.


As start source at

local startSource = fibaro:getSourceTrigger();

I get this table:


{"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"}}


But there is not information about eventide, which started this scene instance. This is necessary to check, if this scene instance is last, when more instances were started at same time, eg. at group actions, arming or disarming.

Is possible to add this information – eventID, to start source trigger information? On best with timestamp event information.

At system events is this information included.


{"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}}},


Thank you very much.

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.

Reply to this topic...

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