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

Variable in virtual device


Shad

Question

Hey fibaro,

I have a good question because I can't find a way.

I have a variable where is update with:

Please login or register to see this code.

But I need to use that in virtual device, but when i make the lua where is working in the scene, that do nothing.

So I want to know if:

- Virtual device have access with %% global and call this variable

or

- In the scene if I make local variable, does it possible to use in virtual device

scene:

Please login or register to see this code.

in virtual device I want use the local video.

Does It have a way to do something like that?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Shad, you can usel local variablas

Please login or register to see this code.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • I will try tonight.

    Thx

    [ Added: 2013-03-21, 23:04 ]

    Sorry I don't find how to use. So here exemple of one scene:

    Please login or register to see this code.

    And here my virtual device.

    Please login or register to see this code.

    The variable I want to use in virtual device is IdName from the scene.

    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.

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