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

Fibaro Flood sensor - scene


Question

Posted

How to make two different scenes:

A) If someone mowes sensor - i will get notification that it has been moved

B) If there is flood - let me know that there is flood and also close water valve.

I have tried and if using block scenes and using breached - then scene will start always on both triggers flood and movement.

How can I get different scenes start to different triggers?

Lauri

11 answers to this question

Recommended Posts

  • 0
Posted

As far as I know it is impossible now to make that scenes using block scenes

Please login or register to see this image.

/emoticons/default_icon_sad.gif" alt=":-(" /> He have to wait till Fibaro will implement it in next versions of Home Center or somebody know the way to write scene in Lua.

  • 0
Posted

Lauri, could you share block scene you are using with your flood sensor? I'll try to redesign it in Lua.

  • 0
  • Inquirer
  • Posted

    No problem, but this one works with both triggers - doesnt matter if you move the sensor or there is actual flood.

    I would like to get both triggers. I tried flood sensor associated with wall plug and then I got it working.. if there is flood it turns on wall plug. I think I can use some virtual switch and associate this to flood sensor - and if switch is triggered - I will get notification - but I think it should be easier with LUA?

    Please login or register to see this attachment.

    • 0
    Posted

    Lauri,

    Thank you for sharing your script here.

    I made some investigation with my flood sensor. From my point of view, it's impossible now to distinguish different types of triggers - flooding and movement even with LUA.

    From LUA we can see just 'value' variable. It's set to 1 in breached state and to 0 in safe state. We can use it for triggering scene but cannot decide what type of trigger we have here.

    I plan to turn off movement alarm (via parameter 74) to avoid closing valves in case of just movement. When my FGBS-001 arrives I'll try to investigate more (I need FGBS-001 to connect to my Neptun valve control system).

    • 0
    Posted

    Skyroger2, that is not true, in LUA that is posible

    • 0
    Posted

    A.Socha, could you give clue for that? Which variable I should read?

    • 0
    Posted

    use

    Please login or register to see this code.

    on forum you got example - use search

    • 0
    Posted
    use

    Please login or register to see this code.

    on forum you got example - use search

    i have searched and failed to find the thread before? i to have 2 x flood sensors and have to make sure no one touches them or the water stops!

    • 0
    Posted

    A.Socha, sorry, I'm pretty familiar with LUA, but still do not understand. Okay, fibaro:getSourceTrigger ():

    Please login or register to see this code.

    I'm getting:

    Please login or register to see this code.

    Maybe you have something undocumented in 'trigger', in addition to 'type', 'deviceID' and 'propertyName'?

    • 0
    Posted

    @Skyroger2 Did you manage to create a good LUA script

    • 0
    Posted

    Anyone figured out yet how to distinguish tamper alarm and flood alarm triggering?... or found out the clue behind A.Socha's message?

    Please login or register to see this image.

    /emoticons/default_icon_curve.gif" alt=":-/" />

    use

    Please login or register to see this code.

    on forum you got example - use search

    So far, I have had to deactivate the tamper alarm to avoid confusion.

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