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

Alarm lua script help


Question

Posted

Hi

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

We are working on a little "alarm project" for the house.

Here are the things we have so far:

1 Vision Security ZM1602 Siren

3 Outdoor Camaras (Hikvision DS-2CD2132-I)

3 Fibaro Motion sensors

1 Fibaro FGBS-001 Z-Wave Universal binary sensor

1 Key switch ( like this

Please login or register to see this link.

)

Here's how we thought about making the project work

When the key switch is activated the alarm system is activated:

1) It activates the camera’s auto record function if there’s movement. ( HTTP get request or post)

2) It activates the motion sensors

- If the motion sensors is breached the alarm will go off.

When the key is key switch is off:

1) Deactivates the camera’s auto record function if there’s movement.

2) It deactivates the motion sensors (alarm function)

You think this would be possible?

Maybe someone has a better idea for the project

Please login or register to see this image.

/emoticons/default_icon_biggrin.gif" alt=":-D" />

I know the basic lua functions, but need help a little help to get started. Maybe someone has a project similar to this one

Please login or register to see this image.

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

5 answers to this question

Recommended Posts

  • 0
Posted

If your camera settings can be modified with HTTP request it should work. What do you have connected to your key switch? Is it UBS?

  • 0
  • Inquirer
  • Posted
    If your camera settings can be modified with HTTP request it should work. What do you have connected to your key switch? Is it UBS?

    According to the manual we should be able to control the motion detection enable/disable function with a http call.

    Please login or register to see this image.

    Here's a little drawing I made:

    e455cea699.png

    I would like to use the Fibaro Binary sensor to set the alarm status, using a global varible, if that would be possible.

    • 0
    Posted

    clausdk, if you want to use UBS, just create a scene to arm/disarm motion sensors if it changes status to "1" or "0". No global variable needed.

    • 0
    Posted

    clausdk. I have a similar setup as you, and I cant figure out how to activate my cameras. Right now I am trying with a virtual device and http script, unfortunately without success. Did you find a way to activate/deactivate the motion detection in your cameras? 

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