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

Looking for LUA code that sets my alarm like the iPhone app


Question

Guest jschun
Posted

Since 3.580 and the new iPhone app, I can arm my alarm sensors via the Fibaro App. Great!

But ...

I use my ZME.remote to start a LUA scene to arm all my HC2 sensors. But seeing that the 3.580 update now supports alarms much better I would like to trigger the option the iPhone app triggers in my HC2.

Does anybody have the LUA code for that trigger? So not to arm all my devices separate (I have that already), but the way the iPhone app triggers the HC2 to arm all sensors that are defined to arm when HC2 is being 'armed' by iPhone app.

Thanks in advance!

Kind regards,

Jerry

7 answers to this question

Recommended Posts

  • 0
Guest Lode
  • Inquirer
  • Posted

    In the api from your devices you will find a value "alarmExclude":"0" or "alarmExclude":"1".

    Can you start from here ?

    • 0
    Guest jschun
  • Inquirer
  • Posted

    Hello Lode,

    I do not think so. I am looking for the actual LUA syntax

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> I'm not that good a programmer.

    Thank though!

    Greetz,

    Jerry

    • 0
    Guest Lode
  • Inquirer
  • Posted

    OK, i'll figure something out

    Please login or register to see this image.

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

    [ Added: 2014-01-12, 15:48 ]

    This should do the trick, let me know if it doesn't

    Please login or register to see this image.

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

    Please login or register to see this code.

    • 0
    Guest jschun
  • Inquirer
  • Posted

    Great! thanks! ッ I'll give this a try tomorrow. Thanks!

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Guest Lode
  • Inquirer
  • Posted

    You're welcome

    Please login or register to see this image.

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

    • 0
    Guest jschun
  • Inquirer
  • Posted

    Lode,

    I could not resist, so I tried it. And... IT WORKS LIKE A CHARME! ッ

    U R the best!

    Thanks again

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Guest Lode
  • Inquirer
  • Posted

    Thx

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" /> but this is a very simple piece of code.

    There are a lot of other users who can do much more and better but i was happy to help you.

    Please login or register to see this image.

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

    Please login or register to see this image.

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

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