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

Scene Help needed


Question

Posted

Hi All,

 

I have a scene running which notifies me and my Mrs when the washing machine is finished its cycle as it is in another building away from the main house.  I don't know LUA programming so have it running using blocks.

 

My problem is, when the machine is finished it sits at 1.9w, but also during its cycle it often sits at 1.9w, but only for a short period.  This means we get notifications before it has finished.  I need to put a delay on, which then sends the notification only when the machine is at 1.9w for say longer than 180s, but don't know how.

 

It seems that if I add 180s to the block identifying the w threshold, then it still sends multiple alerts, but just delays each by 180s.

 

Any help would be much appreciated, and I am happy to change to LUA if this is the only way and someone could help me with the coding?

 

Thanks.

 

Please login or register to see this attachment.

 

2 answers to this question

Recommended Posts

  • 0
Posted

Hey @palomaray,

 

I am more of a LUA guy myself, but a possible solution for you is to add 180s delay to the washing machine power consumption comparison as you mentioned previously, then check it again with no delay. See the image below I created as an example:

 

Please login or register to see this attachment.

 

I tested this out briefly and it seemed to work as intended. When the variable and the first consumption comparison were true the 180s delay would begin. If the consumption comparison was still true at the end of the delay then the last part of the scene would execute and if not the scene ended.

 

During the delay, if the consumption increases making the comparison false it does not kill the scene. It will continue to run until the delay has expired and execute the second consumption comparison. This should only be an issue for you if the washing machine has returned to 1.9W consumption while the delay expires. I'm sure you can find a delay time that will not let this happen.

 

Well, this isn't a foolproof scene but it is something simple to try before making the switch to LUA. Just add the second consumption comparison in there and give it a try. If you have any questions feel free to ask!

 

Let me know how it works out!

  • 0
  • Inquirer
  • Posted
    17 minutes ago, devfern24 said:

    Hey @palomaray,

     

    I am more of a LUA guy myself, but a possible solution for you is to add 180s delay to the washing machine power consumption comparison as you mentioned previously, then check it again with no delay. See the image below I created as an example:

     

    Please login or register to see this attachment.

     

    I tested this out briefly and it seemed to work as intended. When the variable and the first consumption comparison were true the 180s delay would begin. If the consumption comparison was still true at the end of the delay then the last part of the scene would execute and if not the scene ended.

     

    During the delay, if the consumption increases making the comparison false it does not kill the scene. It will continue to run until the delay has expired and execute the second consumption comparison. This should only be an issue for you if the washing machine has returned to 1.9W consumption while the delay expires. I'm sure you can find a delay time that will not let this happen.

     

    Well, this isn't a foolproof scene but it is something simple to try before making the switch to LUA. Just add the second consumption comparison in there and give it a try. If you have any questions feel free to ask!

     

    Let me know how it works out!

    Thank you for this, it seems to make sense, and setting the time is simple enough as it only drops to 1.9 momentarily between various parts of cycles.

     

    Many thanks for your help, I'll give it a try and see how I get on.

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