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

Creating and triggering a Virtual Motion Sensor


Question

Posted

I'm trying to create a Motion Sensor based of events from my Security Camera's which are on a completely separate Network Video Recorder.

I've been able to set up the camera system to call a php script on my web server, but I now need to be able to trigger a Virtual Motion sensor in the HC3 so I can write scenes to trigger lights or alarm events etc.

I've created a Virtual Motion Sensor using the QuickApp, but how do I format the CURL command to set the status of the "Motion" on the QuickApp device?

Do I need to create variables or put in some specific LUA code to allow this to work?

I'm new to LUA and getting to the detailed side of the HC3 beyond just creating scenes via the Block methods etc.

Thanks in advance.

2 answers to this question

Recommended Posts

  • 1
Posted (edited)

To breach the sensor

Please login or register to see this code.

To set the sensor safe

Please login or register to see this code.


376 should be the device id of your QA. The 'YWRtaW4kkkW4xNDc3IQ==' is the base64 encoded <username>:<password>
You can go to 

Please login or register to see this link.

 to create the string.

...and IP is of course the IP of your HC3 box

Edited by jgab
  • 0
  • Inquirer
  • Posted

    Fantastic.

    Thanks jgab.

     

    It took me a little work to get it working, but your help is invaluable.

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