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

Help me configurazione


Question

Posted

Hello everyone I'm new in this world, I have a problem na configuring sensor window and start the alarm when they are violated can not do the scene. I kindly ask for help

By

Sorry My inglish

8 answers to this question

Recommended Posts

  • 0
Posted

Firstly using block scene, choose the trigger device which is the sensor window.

So if sensor window is triggered (breached when armed), sound the alarm.

Example code is shown below.

144 is the sensor window device id, do change it to your sensor window device id.

In the case below, I'm calling to on the light device id 70 when sensor window is breached.

You can call a start of the alarm after the "then" method.

Please login or register to see this code.

  • 0
  • Inquirer
  • Posted

    I thank you for your reply but it does not work, the siren remains off the alarm only goes on PCs and phones

    I put one screnn perfarti understand, for me there is no command

    --[[

    %% autostart

    %% properties

    24 value

    31 value

    10 value

    29 value

    30 value

    26 value

    12 value

    33 value

    24 armed

    31 armed

    10 armed

    29 armed

    30 armed

    26 armed

    12 armed

    33 armed

    %% globals

    --]]

    local startSource = fibaro:getSourceTrigger();

    if (

    ( (tonumber(fibaro:getValue(24, "value")) > 0 and tonumber(fibaro:getValue(24, "armed")) > 0) and (tonumber(fibaro:getValue(31, "value")) > 0 and tonumber(fibaro:getValue(31, "armed")) > 0) and (tonumber(fibaro:getValue(10, "value")) > 0 and tonumber(fibaro:getValue(10, "armed")) > 0) and (tonumber(fibaro:getValue(29, "value")) > 0 and tonumber(fibaro:getValue(29, "armed")) > 0) and (tonumber(fibaro:getValue(30, "value")) > 0 and tonumber(fibaro:getValue(30, "armed")) > 0) and (tonumber(fibaro:getValue(26, "value")) > 0 and tonumber(fibaro:getValue(26, "armed")) > 0) and (tonumber(fibaro:getValue(12, "value")) > 0 and tonumber(fibaro:getValue(12, "armed")) > 0) and (tonumber(fibaro:getValue(33, "value")) > 0 and tonumber(fibaro:getValue(33, "armed")) > 0) )

    or

    startSource["type"] == "other"

    )

    then

    fibaro:call(35, "turnOn");

    end

    Please login or register to see this attachment.

    • 0
    Posted

    mich, in your codes all of the alarm are triggers. Because you used "and" so that means in order for the scene to be triggered, all the alarms must be breached, which is not what you want. What you want is any one alarm to trigger, am I right? So you should use "or".

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted

    Malvin hello thank you for your reply, I did copy and paste from above, but it does not work, the siren does not sound only visual alarm

    • 0
    Posted

    What kind of siren do you have?

    For example with FortrezZ there are 4 states:

    from value 1 to 32 only blink

    from 33 to 65 only sound

    from 67 to 100 blink and sound

    value 0 obviously off.

    You should try this code for set the value:

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted

    hallo i have Everspring

    I've tried does not work

    ciao sei italiano? se gentilmente mi dai una mano a configurare ,non capisco i comandi da dare sull home 2 grazie mille se mi lasci un contatto in privato

    saluti

    • 0
  • Inquirer
  • Posted

    Ciao hai pM

    Thank you gio,

    Please login or register to see this image.

    /emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

    Please login or register to see this image.

    /emoticons/default_icon_surprised.gif" alt=":-o" />

    Very happy

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