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

Simple LUA to to show which sensor has been breached


Question

Posted

Unfortunatelly on mobile app. in case of Alarm you cant see which sensor has been breached, therefore Id like to create simple LUA scene which would be triggered by Alarm to send info which sensor has been breached - any idea how to create it pls ?

 

Thanks in advance

7 answers to this question

Recommended Posts

  • 0
Posted

Check if which sensor is breached when arm

  • 0
Posted

Unfortunatelly on mobile app. in case of Alarm you cant see which sensor has been breached, therefore Id like to create simple LUA scene which would be triggered by Alarm to send info which sensor has been breached - any idea how to create it pls ?

 

Thanks in advance

On iOS ?  .. you can click on the beacon icon or strobe icon and it tells you which sensor has breached on the alarm page of the app.

 

Cheers,

al.

  • 0
Posted

I want to see the name of the triggering sensor in a Lua script when a sensor is breached..

But I cannot find it anywhere on this forum. This topic is the one with the specific question in it.

Can someone help me out?

  • 0
  • Inquirer
  • Posted

    Im using something like this - checking one by one which sensor is breached...

     

     

    if 
     ( (tonumber(fibaro:getValue(38, "value")) > 0 and tonumber(fibaro:getValue(38, "armed")) > 0))
    then
        fibaro:call(213, "sendPush", "Alarm Activated, Motion in Livingroom detected" )
    end
    if 
     ( (tonumber(fibaro:getValue(18, "value")) > 0 and tonumber(fibaro:getValue(18, "armed")) > 0))
    then
        fibaro:call(213, "sendPush", "Alarm Activated, Motion in Bedroom detected" )
    end
    if 
     ( (tonumber(fibaro:getValue(22, "value")) > 0 and tonumber(fibaro:getValue(22, "armed")) > 0))
    then
    • 0
    Posted

    Thnx Acho!

    Maybe I'll use your method of no one else can help me. I know there should be a way to get the name of the triggering device.

    • 0
    Posted

    There is an easy way of getting the triggering device:

    Please login or register to see this code.

    • 0
    Posted

    Thanks Rait. It works perfectly.

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