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

Function for motion sensor status monitoring and building matrix of daily movement


Sankotronic

Question

Hello LUA gurus!

 

I need your help to build a function that can monitor motion sensors and as result give me in which room was last breach detected. Also will be nice to have possibility to remember sequences of movement during whole 24h and then from that build motion matrix that can be used to mimic lights while we are on holidays.

 

Situation 1: I'm building TTS system form my Angelina. So what I need is that Angelina is aware in which room we are by checking motion sensors status and from that to decide on which Sonos speaker she will give us information.

 

Situation 2: As I already mentioned I need a way to monitor motion sequences in house during 24 hour time and then to analyze collected data and build some kind of table or matrix that can be used to mimic lighting. I prefer if this can be done on HC2 if it is possible, but other solutions are also acceptable, but resulting table or matrix must be stored on HC2 so that it can be used by scenes and VD.

 

 

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • @ReneNL,

     

    Thank you for above code. This code gives me every minute when motion sensor was last breached, actually time in seconds from last breach of motion sensors and it is just first step of what I need but a good start!

    Link to comment
    Share on other sites

    • 0

    You're welcome, it was about time to give something back to you for all the good stuff you are providing ;-). The tricky part of the code above was to get the information sorted in the table, i.e. having the last breach as first entry.

     

    I'm keen to see how you progress on your project.

     

    Rene.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes @ReneNL, above code is very good start foundation for me and thank you for sharing. But I'm afraid that what I want is on the edge with AI :) It will take time to even shape it in my head. As soon as I get more details I will share them here.

     

    Link to comment
    Share on other sites

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