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

Counting number of Motion


Question

Posted

Hello everybody,

Is it possible to count, how often several motionsensors had breached in a definied time? Could you tell me, how I can write it in a variable?

 

I want to include a few of my motionssensors in my alarm system. But the alarm should not be triggered by one single motiondetection. I want to avoid a false alarm.

 

Thank you very much for your support.

15 answers to this question

Recommended Posts

  • 0
Posted

Hi!

 

theoretically yes, in practice you'll retrograde motion sensors battery in one day.

Fibaro had a page about this case, but now page removed.

Please login or register to see this link.

 

 

 

 

 

 

Please login or register to see this link.

  • 0
  • Inquirer
  • Posted

    I thought about a LUA function, which counts the value of a variable +1 with every triggering of scene.

    • 0
    Posted (edited)
    2 hours ago, Ansgar said:

    I thought about a LUA function, which counts the value of a variable +1 with every triggering of scene.

     

    Are you looking global params?

    /fibaro/en/panels/variables.html

    Edited by 10der
    • 0
    Posted
    4 hours ago, 10der said:

    Hi!

     

    theoretically yes, in practice you'll retrograde motion sensors battery in one day.

    Fibaro had a page about this case, but now page removed.

    Please login or register to see this link.

     

     

     

     

     

     

    Please login or register to see this link.

    The link doesnt work, page not found

    • 1
    Posted
    9 hours ago, samuel said:

    The link doesnt work, page not found

     

    Please login or register to see this link.

     

     

    • 0
    Posted (edited)

    @Ansgarbreached could mean:

    from 0 change to 1, or

    always 1

     

    You cannot avoid people keep motion and sensor never goes back to idle, right?).  So my 2 cents, how many times a sensor is being triggered might not be a good way of avoid false alarm.

     

    but how long is a motion sensor being triggered is possible by using while loop.

     

    Please login or register to see this code.

     

     

    Edited by Sirhideo
    • 0
  • Inquirer
  • Posted
    6 hours ago, Sirhideo said:

    You cannot avoid people keep motion and sensor never goes back to idle, right?).  So my 2 cents, how many times a sensor is being triggered might not be a good way of avoid false alarm.

     

    Yes - probably you're right. Thank you for your support. I think I will try to use your script.

    Additionally I will check - if there is motion in two rooms (next to each other) at the same time. So then Alarm is not just triggering if someome stays longer than a specific time in a room.

    • 0
    Posted

    Hi... i would like to check and compare the pulse received from the universal binary sensor, in particular:

    - sensor is connected to a limit switch to detect the rotation of a food feeder (every pulse is a sector of the feeder and a quantity of food)

    - with a vd I would like to set a quantity of food (60 gr or 70 of 80 gr)

    - at the correct time the fibaro switch turn on and the rotor start dosing the food.. one sector (one pulse) is 10 gr food

    - scene has to count 6 pulses or 7 or 8 (or whatever) and once reached the required quantity turn off the switch

    - between the pulses the switch has to turn off for few seconds (10 seconds) and then turn on get a pulse and turn off for other 10 seconds.. a sort of pauses between the pulses

    Is there somebody able to help me?

    Thank you

    • 0
    Posted
    2 minutes ago, alexpelli said:

    Hi... i would like to check and compare the pulse received from the universal binary sensor, in particular:

    - sensor is connected to a limit switch to detect the rotation of a food feeder (every pulse is a sector of the feeder and a quantity of food)

    - with a vd I would like to set a quantity of food (60 gr or 70 of 80 gr)

    - at the correct time the fibaro switch turn on and the rotor start dosing the food.. one sector (one pulse) is 10 gr food

    - scene has to count 6 pulses or 7 or 8 (or whatever) and once reached the required quantity turn off the switch

    - between the pulses the switch has to turn off for few seconds (10 seconds) and then turn on get a pulse and turn off for other 10 seconds.. a sort of pauses between the pulses

    Is there somebody able to help me?

     

    yes, ZUNO. as example you can use sketch for electric counter or water-meter

     

    Please login or register to see this link.

    • 0
    Posted

    Thank you very much 10der@... I appreciate... unfortunately I'm not so expert in lua script.. do you have any example in lua?

    • 0
    Posted
    4 minutes ago, alexpelli said:

    Thank you very much 10der@... I appreciate... unfortunately I'm not so expert in lua script.. do you have any example in lua?

    no. sorry. it not LUA.

    it's custom z-wave device. 

    ok, Drop it!

    • 0
    Posted
    7 hours ago, alexpelli said:

    spasibo

     

    I am russian. 
     

    btw, tomorrow I can talk why I can’t help you here. Understand me, you task is not easy and you can’t be done this task only with LUA. Your task requires some technical skills for example soldering and wiring Arduino ZUNO, more than you should develop on C-land for ZUNO... and when you will have device and pair this device with HC2 yes I can help you create VD for example 

    • 0
    Posted

    Thank you.

    i’m traveling often in Russia for work.

    I use a Fibaro universal binary sensor connected to a limit switch. Very simple... system already works and I receive status 1 or 0. I just need to count how many “1” and compare to a global variable. Like l set “7” in global variables and the scene counts seven sensor triggers and switch off the plug.

    • 0
    Posted

    IMHO On the left hand discretion of scene is not enough for your requirements on right hand if your create LUA loop with 1ms it’s (IMHO) freezing your HC2

    if discretion second is ok yes you can count ticks from binary sensor 

    and another notice here 

    you may flood zwave network also you may lose packets so, bad ideas as for me 

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