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


Fibaro Motion Sensor


Recommended Posts

Guest pablotibis
Posted

I just recently the "Fibaro motion sensor" via lua would like to make a condition like:

if (difference between last violation Motion Sensor and current date / time)> 30 min then

You know why the interface does not display the date / time last violation?

Posted

I just made this code,

it can check how long one or multiple sensors have not been breached, it saves it in the variable panel. In this way you can use in a scene if or how long you have been away:

Please login or register to see this code.

It uses several variables:

Sleepstate

Presentstate

AwayMinutes

AwayHours

AwayDays

in combination with the following scene you know when you are away:

Please login or register to see this attachment.

Posted

Couldn't you just check the device parameter called lastBreached (or something like that) and then just subtract it from the current time? When this value exceeds 1800000 (30 min * 60 sec * 1000 ms) then half an hour has gone between it was last breached and current time. I plan to use something similar to turn off my tv and dvr when there has been no activity in the room for 60 minutes.

Posted

You probably could, but i am running the Alpha and there the lastbreach is always 0.

Posted

I just tested it. The lastBreached is the time at last breach in seconds since 1.1.1970. So I did a proof-of-concept:

Please login or register to see this code.

The variable "diff" is the time between current time and last breached in seconds. So for 30 minutes you just do "diff*60*30".

*** EDIT ***

So I got inspired and made the scene. This scene will turn off plug with id 4 when 7200 seconds have elapsed since motion sensor 51 was last breached:

Please login or register to see this code.

Guest pablotibis
  • Topic Author
  • Posted

    Thanks a lot, try these solutions immediately ....

    Another question, I have a Roomba, the other day the motion sensor is activated by the movement of Roomba, is it possible? I need to change something? Today I do the test again and I'll let you know.

    Posted

    Sounds. Bit strange. The detector picks up on temperature differences so only if a large "blob" of heat enters the sensors field of vision should it react. I don't know how hot the roomba gets (I'd like one, but it can't cope with the thresholds between our rooms) but I wouldn't imagine that it runs very hot?

    Posted

    I think most detectors just simply detect changes in IR radiation through a fresnel lens which divides the sensor into segments. When an object moves it leaves one segment and enters another which triggers the sensor as there are rapid and big changes in IR radiation. Slow variations are not detected but a detector usually does not care if it is a decrease in IR radiation or and increase. This means than when for instance a Roomba (even if the Roomba is room temp itself) passes by it may cover a spot on the floor which has been heated by the sun and this is detected as a fast decrease in IR radiation and consequently triggers the sensor. This is normal.

    Posted

    Why does the fibaro motion sensor video clearly show it being used on an outdoor patio? I'm sure we were told indoor use only!

    I tried this on my patio and got constant false alerts until I moved it back indoors!

    Any comments fibaro? In or out? If in only I suggest you modify your video!

    Posted
    I think most detectors just simply detect changes in IR radiation through a fresnel lens which divides the sensor into segments. When an object moves it leaves one segment and enters another which triggers the sensor as there are rapid and big changes in IR radiation. Slow variations are not detected but a detector usually does not care if it is a decrease in IR radiation or and increase. This means than when for instance a Roomba (even if the Roomba is room temp itself) passes by it may cover a spot on the floor which has been heated by the sun and this is detected as a fast decrease in IR radiation and consequently triggers the sensor. This is normal.

    Great explanation! I didn't know it segmented the room in that way. I thought it saw everything as one big segment.

    Guest pablotibis
  • Topic Author
  • Posted

    Confirmed again today reported roomba as a moving violation, that solutions could be adopted? any ideas?

    [ Added: 2014-05-21, 10:55 ]

    I tried the test code, but in the line:

    last = fibaro: getValue (51, "lastBreached")

    fibaro by vacuum as a result and not a value? is a problem for my version? I have no display of last beta.

    Thank you.

    Posted

    lastBreached is not availble in 3.5x version. Not in 3.901 alpha eighter....

    Posted

    So how can You explain that

    Please login or register to see this image.

    /emoticons/default_icon_question.gif" alt=":?:" />

    Please login or register to see this attachment.

    Posted

    IN GUI yes, but not when you run fibaro:getValue(122, "lastBreached")

    Value is empty (0)

    Ohh!

    Please login or register to see this image.

    /emoticons/default_icon_eek.gif" alt=":shock:" />

    on one new motion sensor i did get the value but not the one i did test on first. Strange

    Please login or register to see this image.

    /emoticons/default_icon_question.gif" alt=":?:" />

    Posted

    I have it on all my detectors with firmware 3.580... But they are all Aeon... Perhaps it is different for the Fibaro unit? It sounds stupid that they would remove it... It is a very useful function! Perhaps someone should file a bugzilla on it? As I don't have the bug, I won't though...

    Posted

    I don't have a lastbreached for all 6 motion sensors in HC2: 3.901 Alpha

    Please login or register to see this attachment.

    Posted

    Found out that it is different versions in my motion sensors.

    Version 2.4 gives a value on last breach but not version 2.6

    reported to bugzilla:

    Please login or register to see this link.

    [ Added: 2014-05-22, 19:28 ]

    Solved with a restart of HC2, at least on 3.5xx version.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

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