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 scene only once or twice


Question

Posted (edited)

Hello,

Anyone can give an idea how to run a scene only one time?

 

For example:  if bedroom temperature is under 20 celsius send a push notification.

 

I set this and i receive continuous push notification if temperature is for example 17 celsius, and i want only 1 notification.

 

An example will be welcome for block scenes and also in LUA where i can set how many push notification/emails receive when scene trigger.

 

Thank you

Edited by MDC

3 answers to this question

Recommended Posts

  • 0
Posted

block scene, for only one notification:

 

- trigger on variable = 0 and temperature below 20, send push and at the end of the scene set the variable to 0

- create another scene, setting the variable back to 1, if the temperature is above 20

 

Lua scene:

 

both temp check in same scene, with decrease of the variable

 

For number of push messages, with lua as above, with block you can create e.g. 3 scenes, checking for 3,2,1 (and temperature) and 0 if above 20 setting back to 3 the variable

  • Like 1
  • Thanks 1
  • 0
  • Inquirer
  • Posted
    1 hour ago, tinman said:

    block scene, for only one notification:

     

    - trigger on variable = 0 and temperature below 20, send push and at the end of the scene set the variable to 0

    - create another scene, setting the variable back to 1, if the temperature is above 20

     

    Lua scene:

     

    both temp check in same scene, with decrease of the variable

     

    For number of push messages, with lua as above, with block you can create e.g. 3 scenes, checking for 3,2,1 (and temperature) and 0 if above 20 setting back to 3 the variable

     

    Thank you,

    in block scenes i figured out, but in lua i need an example, i try but not trigger....i convert block in lua and merge but not work :)) sorry, i'm bigginer in lua.

    • 0
    Posted
    On 5/17/2018 at 9:17 PM, tinman said:

    block scene, for only one notification:

     

    - trigger on variable = 0 and temperature below 20, send push and at the end of the scene set the variable to 0

    - create another scene, setting the variable back to 1, if the temperature is above 20

     

    Lua scene:

     

    both temp check in same scene, with decrease of the variable

     

    For number of push messages, with lua as above, with block you can create e.g. 3 scenes, checking for 3,2,1 (and temperature) and 0 if above 20 setting back to 3 the variable

    Can you please explain what variable must to do? Or give an example? 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...