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


Recommended Posts

Posted

Hi All,

 

on v4.048. I have one Pushover scene (from SDeath tutorial) and set global variable 'pushoverBody' in various ways. I can see the global being changed from '0' to a message but the main scene, which is supposed to be called on basis of global change, is NOT being called! Yet, if I manually start the scene, I get the pushover message. So I know all the code works but the global is not calling the scene.

 

Any ideas, not personally used globals like this myself before so I don't know what issue could be e.g.:

 

--[[ 

%% properties 
%% globals 
pushoverBody 
--]] 
 
fibaro:debug("scene called");
 
 
KR, Dave
Posted

I got a lot of scenes that runs on global vars and they work as they should.

Posted

Did you create or delete & create the global variable after the scene? In that case you have to save the scene again. I guess, when you save, the name under the %%globals is turned into an ID that refers to the variable. If you delete the variable and recreate it with the same name, the scene isn't fixed up. Or something along those lines.

Posted

global variables triggers a scene only when changed from another scene or VD  - if you are changing variable value from "Variables Panel" directly it won't invoke a scene.

  • Topic Author
  • Posted

    Hi All,

    Thanks for replies. Not had a chance to look at in last day or two.

    Both VD, scene and global were created in v3.590 (where I couldnt use https), in advance of my move to v.4. I wonder if this has anything to do with it and, if I create scene again, if it will work?

    Just a thought. Apart from that its not been deleted or changed in any way and works fine bar the trigger! Its done via a VD so should trigger it.

    Any further ideas appreciated though I will try scene delete/save tomorrow.

    KR Dave

    • 3 months later...
    Posted

    If you use lua code setSceneEnabled

    let scene active state change form false to true

    trigger will not work

    it should be save again

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

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