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

Run a scene via the API and Do NOT "neglecting conditional part."


Question

Posted

I want the ability to run a scene via the API, but it must not override the conditional element of the scene. I cannot seem to find the endpoint that allows this, the only two that I can find are;

Please login or register to see this attachment.

And this both run and effectively doesn't care about the conditional element of a scene.

 

Any ideas?

Thanks

6 answers to this question

Recommended Posts

  • 0
Posted
5 minutes ago, Jamie said:

 it must not override the conditional element of the scene
..

Any ideas?

 

 

you can't, this is how Fibaro has been designed.

  • 0
Posted

Could you define the conditions in the scene itself? 

  • 0
  • Inquirer
  • Posted
    2 minutes ago, SmartHomeEddy said:

    Could you define the conditions in the scene itself? 

    I don't think you can but conditioning into the DO THE FOLLOWING, only in the left hand side. Its seems like a perfectly normal request. Why should I rely on a some additional logic to determine if the scene should be run. I get the neglect bit but it should be a flag and optional.

     

    Does anyone know how to get a feature request added?

     

    Thanks

    Please login or register to see this image.

    /monthly_2022_01/image.png.d4670cbf744518204a9bdf2236b056ea.png" />

    • 0
    Posted (edited)

    Ah, blockscene. You could do it with a Lua scene. 
     

     

    Edited by SmartHomeEddy
    • Like 2
    • 0
    Posted
    6 minutes ago, Jamie said:

    Why should I rely on a some additional logic to determine if the scene should be run. I get the neglect bit but it should be a flag and optional.

     

    Does anyone know how to get a feature request added?

     

    because Fibaro designed trigger section like that, and honestly i don't see reason to disable override condition to allow scenes "turn light in jan 2029 at 15:00".

    There is sourceTrigger available, convert your scene to LUA and use sourceTrigger to check in do section if you really need no override. 

    • Like 1
    • 0
  • Inquirer
  • Posted
    On 1/21/2022 at 7:42 PM, tinman said:

     

    because Fibaro designed trigger section like that, and honestly i don't see reason to disable override condition to allow scenes "turn light in jan 2029 at 15:00".

    There is sourceTrigger available, convert your scene to LUA and use sourceTrigger to check in do section if you really need no override. 

    Hi, my scenario is the api could be called, but I would want to check if the gate is already opened etc. No point opening it if its already opened. I might have a play with LUA as like @SmartHomeEddy says you should be able to make the checks with LUA. Though I am not so sure you can call LUA from the API...  I did wonder if i can use the API to set a variable that with be used in the scene logic rather than run a scene direct via the API

     

    Thanks

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