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

Send Notification to set alarm


Question

Posted

Hi

 

It may seem a stupid question but I wanted to create a scene (I have the HCL gateway) that would send me a notification if no motion is detected in the house for more than one day. It would be a reminder to set the alarm when I travel, etc in case I forget it.
But I'm not sure that is the best approach to do so even though it seems super simple (the notification part I got that, it's more how to trigger it).


Thanks

19 answers to this question

Recommended Posts

  • 0
Posted

HCL doesn’t have LUA but you can build blocking scene 

i thing all you have. Check breaching plus send notification to you 

also you can arm some devices 

  • 0
Posted

I noticed that in the "magic" scene you have the option for sensors that have not been affected by the minimum x time, which I have not found in the block scene options. I use this magical scene for global variables and with them I create block scenes and notification.

  • 0
  • Inquirer
  • Posted

    Thanks for your answer. In the block since I haven't found the "not tripped more than x minutes", which is indeed in the magic scene. Only issue is that it doesn't allow me to go farther than 200 minutes :(  Too bad, I really wanted to wait at least 15 hours. If not I will get a notification every day, which I don't need.

    Thanks for your help !

    • 0
    Posted (edited)

    That should be not a problem, make a magic scene that every 60 min. make +1 to global variable. If this variable grow up to 15 then make notifikation. You need one more scene if your sensor would be trigger, than this variable = 0 :)
    I hope my englisch is enough for understand that what I would to write :P

     

    Ich kann es auch probieren auf Deutsch zu schreiben ;)

     

    Mach bitte eine Szene, die für einen bestimmten Detektor nach 60 Minuten +1 für einige globale Variable ausgeführt wird. Dann die nächste Szene, die die Benachrichtigung auslöst, wenn die Variable gleich 15 ist. Außerdem brauchst du eine andere Szene, die die Variable zurücksetzt (gleich null), wenn der Detektor unterbrochen wird.

    Besten Gruss.

    Edited by nadol
    • 0
  • Inquirer
  • Posted

    Sounds like a good idea to work with the variable. But I'm not sure I can use the variable in the magical scene.
    And the magical scene is the only one that has the "not tripped more than x minutes" function as far as I can see (sorry I'm really new to Fibaro, only had my installation for one week so I'm still messing aroung with it).

    • 0
    Posted
    6 minutes ago, coco84 said:

    Sounds like a good idea to work with the variable. But I'm not sure I can use the variable in the magical scene.
    And the magical scene is the only one that has the "not tripped more than x minutes" function as far as I can see (sorry I'm really new to Fibaro, only had my installation for one week so I'm still messing aroung with it).

    I think you should move to the next level and start to design your scenes via using graphic blocks

     

    Please login or register to see this image.

    • 0
  • Inquirer
  • Posted

    I already use a lot of graphic blocks. I only tried the magic scene for the "not tripped more than x minutes" function.
    I didn't know that  the "Safe and disarmed" stood for, I used the same scene with breached but obviously it wasn't working.
    I'll give this a try. many thanks to everybody

    • 0
    Posted
    9 minutes ago, coco84 said:

    Safe and disarmed

    Safe - not beached state

    disarmed - not armed yet.

    we should check it otherwise this script will call again after you set your home to arm state. 

    • 0
    Posted (edited)

    Ok, I write it not clear enough what I mind :)
    1. First create block scene for make +1 on some variable - "time_to_arm", this scene should be started manual (not automated) - we say name for scene "time_to_arm_plus_one"

    2. Then make magic scene that start this block scene (time_to_arm_plus_one) when "not tripped more than 60 minutes", and this scene we can call "trigger_time_one_hour").
    3. Then another block scene that make our variable reset to 0 if this alarm sensor would be breached between 15 hour - just anytime if breached, than variable "time_to_arm"==0

    4. Then last one automatic scene for notification, triggered automaticly if "time_to_arm" == 15

     

    I hope that help for your Idea. I have the same for 2 hour at evening and i don't look kodi, than start good night scene :)

     

    @10der that what you say i want for my scene, but if I give 2 hour (7200) in this red label on scene, she was triggered at first moment when safe and disarmed, then wait 2 hour and always trigger my included there good night scene :/
    I thing if @coco84 brached his sensort between 15 hour his scene should be triggered always to :/  
    My workaround help for my problem and I hope for coco84 to :D

     

    Edited by nadol
    • 0
  • Inquirer
  • Posted
    7 hours ago, nadol said:

    Then make magic scene that start this block scene (time_to_arm_plus_one) when "not tripped more than 60 minutes", and this scene we can call "trigger_time_one_hour").


    I tried your solution but for watever reason, my magic scene says that it has been triggered too many times (when I'm at home).
    The rest scenes looks OK, but not this part....

    Please login or register to see this image.

    /monthly_2019_02/image.png.91510fe06ab207ddbd4c9469505df1d3.png" alt="image.png.91510fe06ab207ddbd4c9469505df1d3.png" />

    • 0
  • Inquirer
  • Posted

    Ok scratch that, I've change the number of instances running and the value for my motion sensor to report.
    But still no luck, my value doesn't get incremented to more than 1 (I've set it to test to 1 minute). If I run manually the scene to increment the value it works (If I run 3 times the scene, I can see that my value changes).
    But not when triggering it with the magic scene :(

    • 0
    Posted

    Yes, I have the same problem because in the magic scene you can't indicate what is the scene trigger, on this fall trigger is: 1 - your sensor (breached or not), 2 - sensor not tripped more than 60 minutes. But scene com to end only if point 2 will be true. If you create a similar block scene, based on the alarm sensor, you will be able to turn it off (trigger scene) at the top of the checkbox as a trigger for the scene, then the only one trigger would be this 60 minutes. Now, in addition, the scene is triggered each time wenn this sensor is breached, or used, but the second condition of 60 minutes is not met. Only if the sensor is not moved and 60 minutes have passed, this scene come to end and the global variable will be increased. For this to happen, both conditions must be met.
    In conclusion, this magical scene is triggered every time a motion sensor is triggered. However, it will not be executed until the motion sensor has been disturbed for 60 minutes.
    Solution: Set up to 2 instances of this scene and ignore notifications about her instances. If no one moves the sensor, it will work properly, up to 15 times ;)

    Hmm, I have this scene for 30 minut and its works... (I must that test one more time :) )

    • 0
  • Inquirer
  • Posted

    OK, I think I got it ! I see how I can do it with a "normal" block scene.
    I'll test it and report back but I see it now. MANY thanks !!!!

    • 0
    Posted

    I will tray to test it at night, if you have beter solution please write it to me, becouse I need them to :)

    • 0
    Posted

    @coco84 Im sorry for that, I have testet this scene only with manual start and anything works, but jet if I chose 2 minuts it dos'nt work :/ Sorry about that, I trust for logic, but it dosn't works. If you have sollution for that on normal blocs, then plese share it here.

    • 0
  • Inquirer
  • Posted

    @nadol  I'll let you know tomorrow morning if my setup worked (I've set it to 5 hours, to test). That is what I did.

     

    1. Created a block scene that does +1 on my variable (TimeToArm) if my motion sensor is SAFE AND DISARMED. The trigger is the fact that the motion sensor is safe and disarmed. This scene is set to RUN MANUALLY so I don't have too many instances running, etc

    2. Created a scene, that runs every hour (interval based) and than only plays the scene I created in step 1. No trigger for this scene, it just runs every hour and increases my variable (if the Motion sensor is disarmed and safe)

    3. Created a scene if my motion sensors is breached then my variable = 0

    4. Notification scene : When my variable =15 (hours), then send notification.

     

    I think this should work better than using those magic scene, even if it envolves a bit more of setup.

     

    • 0
    Posted

    looks good that what you make :) 

    One minus is, that time will be betwen 60 minut and if breached sensor 10 min befor scene runs +1, then your alam will armed after 14h and 10 min. But that will be no problem. If I need more exacly time with 2h, I can do this scene every 5 or 1 minut, and if I have 120 on my variable (TimoToSleep), then start scene no. 4 :)
    Thanks a lot, write if it works this time :)

    • 0
  • Inquirer
  • Posted

    Yes it worked fine. As you mentionned you May have to change a bit the timing if you want something very precise. But in my case it doesnt matter it its a bit late or early. Its just a reminder 

     

    Thank you for your help

    • 0
    Posted

    Perfect, and I thank you for your help! Lots of fun with your autamated system :)

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