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

Triggering variable name from fibaro:getSourceTrigger?


Question

Posted

Hi,

Hoping somebody can help me with this LUA code. I've got a Scene that is triggered by any of a list of Global variables having their value set to "true". When the scene is triggered I want to use fibaro:getSourceTrigger to find out the name of the variable that sets off the scene. Here's the Lua code I've got:

Please login or register to see this code.

The problem is:

Please login or register to see this code.

is always returning...

Please login or register to see this code.

Whereas I am expecting it to return the name of the Global variable that caused the Scene to trigger - i.e.

Please login or register to see this code.

Does anyone know if I'm doing something wrong in the Lua code, or if this is a bug on Fibaro's side? I'm using v3.548

Thanks!

Recommended Posts

  • 0
Posted

Hi GrZeCh,

I have the same problem.

[ Added: 2013-09-02, 08:41 ]

Hi,

A.Socha, have you got an alternative solution for my problem ? i create a plugin will report status of xbmc in variable for each action (On, Off, Play Movie, Pause Movie, Play Song...) its works variable change when action of xbmc change and i would like to active scene when start a movie (close the light, the roller shutter...). So actually i can't do that

Please login or register to see this image.

/emoticons/default_icon_sad.gif" alt=":-(" /> because the scene won't start when variable change with api.

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