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 with power usage and warning


Question

Posted

Currently i'm struggling with the following scene, this scene should power off the wall plug when there's more then 15 minutes no power usage higher then 25 watt.

Please login or register to see this image.

 

Warning with to many instances.

2vijd6p.png

 

I've checked the block scene a few times but i can't find the mistake why it sometimes work after a few hours, could someone give me some advice?

5 answers to this question

Recommended Posts

  • 0
Posted

I guess what happens is that every time the energy consumtion drops below 25w the scene starts, wait for 900s and then turn the TV off.

 

So what can happen is that during a turn off, there are running energy meassurments, at full run its at eg 100w, you turn it off, it drops to 22w, then 5w and then eventually 0w.

This all in a few nano seconds. Eg. turn of a light and you can see that are multiple energy reports during a full ON to full OFF.

 

This would couse the scene to execute twice, at 22w and at 5w.

 

In LUA you can block this by setting a check on scene execution to isolate one execution only, while its running. But not with block scenes i guess.

Or is this what will come in the Beta release?!?

  • 0
Posted

First of all in general the scene executed every single energy report.... 

In addition as KristianO has mentioned your scene condition  (in case the power report is below 25W) executes scene instance for 15 minutes. Since the power reports are frequent, you end up with too many instances (as reported by the system).

Once the system starts to kill the instances, you never could be sure when your condition will work.

By the way your scene is wrong to what you have described - it just starts to count 15 minutes in the moment that power is < 25W and not if the power is below 25W for entire 15 minutes.

for example:

Power goes to 20W - your condition executed and counts 15 minutes. 

After one minute someone is using the device (I assume the TV) and new report is 100W.... your scene does nothing and continues to countdown and will turn TV OFF, even that current consumption is grater than 25W.

 

You need to use LUA .... and even so this is not a simple task. 

  • 0
  • Inquirer
  • Posted

    Currently i'm running 4.062 beta version and i've set the max running instances to 1.

    Is it possible to change the energy report interval?

    If i change this scene to 5 seconds instead of 900 seconds there shouldn't be an issue anymore with more then 1 running instance?

     

    Sorry for my basic questions but i'm currently new and don't have any expierence with domotica or lua scripting.

    • 0
    Posted

    Please set the max. instances to 2 at least.

    Regarding the 5 seconds, it depends how many reports you'll receive during this time....

    But try it, it should all work now.

    • 0
  • Inquirer
  • Posted

    Thanks for the reply i shall try this and let you know if it works!

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