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


All-in-One Scene: How to do it Better


cag014

Recommended Posts

  • Topic Author
  • 3 hours ago, magicman said:

    hi cag014,

     

    Please login or register to see this code.

    does this equate to a= true,b=true,c=false? or does this say a,b,c are all false?

    Thanks 

    Len

    All =false

    4 hours ago, magicman said:

    he scenario is needed to check that door a is shut,door b is shut , and roller shutter door c is in correct position before arming alarm,

    door shut/close value=false (for sensors true is breached)

    Link to comment
    Share on other sites

  • Topic Author
  • In any case you can set every condition combination you need

    conditions separated by "I" means and

    trueAct={"gName","setGlobal","gValue","{`a`,`b`:value=true|`c`:value=false}"}, -- if a==true and b==true and c==false then  setGloabl....

     

    any condition in separated curled brackets means or

    trueAct={"gName","setGlobal","gValue","{`a`,`b`:value=true}{`c`:value=false}"}, -- if a==true and b==true or c==false  then setGlobal...

    Edited by cag014
    Link to comment
    Share on other sites

    Hi!

     

    Can somebody help me?

    How can i set up this?:

     

    When my Sony TV (VD, ID=67) press button on, then the living room lights (ID86, ID91) turn off, and reverse. When TV press button off, then the light turn on 40%.

     

    Thank you!

    Link to comment
    Share on other sites

  • Topic Author
  • First of all as I understand you're probably using Sony plugin, is it correct? Since On/Off is toggle action,  how do you know if TV is ON or OFF?

    Could be that someone turned TV ON or OFF by remote control.

     

    Link to comment
    Share on other sites

  • Topic Author
  • Unfortunately, Sony plugin doesn't report any activity  when button pressed.

    It could be done by connecting TV using Z-wave wall plug . Actions could be executed according to power consumption

    Link to comment
    Share on other sites

    2 hours ago, cag014 said:

    Unfortunately, Sony plugin doesn't report any activity  when button pressed.

    It could be done by connecting TV using Z-wave wall plug . Actions could be executed according to power consumption

     

    Thanks!

    Link to comment
    Share on other sites

    On 2/26/2020 at 5:12 PM, magicman said:

    Thanks cag014 as always well explained

    hi Cag014,

     

    hi how can i trigger JM{} when the fibaro alarm is activated as in an alarmed door is breached .

    thanks 

    Len 

    Link to comment
    Share on other sites

  • Topic Author
  • Fibaro alarm is not a device and actions taken in the system, but there are some workarounds:

    1. You can define to turn on/off some device in case of alarm and monitor it.

    2. Every sensor has "fibaroAlarm" property and if alarm activated it set to true and could be monitored as well

     

    On second thought, you gave an excellent idea. To monitor events which not related to devices/scenes/VD.

    Will be ready in next  release... so if you can await a while, you'll have an option to do it.

    Edited by cag014
    Link to comment
    Share on other sites

    Hi cag014!

     

    How can i set up, when the motion sensor is breached more than ex. 15sec., then the lamp is turn on, and less then 15sec. no.?

     

    Thanks! This scene is very good, nice job. Only i need learning use. :)

    Link to comment
    Share on other sites

    17 minutes ago, cag014 said:

    Fibaro alarm is not a device and actions taken in the system, but there are some workarounds:

    1. You can define to turn on/off some device in case of alarm and monitor it.

    2. Every sensor has "fibaroAlarm" property and if alarm activated it set to true and could be monitored as well

     

    On second thought, you gave an excellent idea. To monitor events which not related to devices/scenes/VD.

    Will be ready in next  release... so if you can await a while, you'll have an option to do it.

     

    thanks cag014 but did need to do it now. i will see if i can come up with a workaround, but do look forward to a new release ;)

     

    Thanks 

    Len

    Link to comment
    Share on other sites

  • Topic Author
  • How many sensor are part of your Alarm?

    Link to comment
    Share on other sites

    just the four doors in this instance `frontdoor` , `sidedoor`,consdoor`,`garagedoor` the motions sensor are not armed due to dogs being in the house but in full arm they could be, but just for now the doors

     

    thanks

    Len

    Link to comment
    Share on other sites

  • Topic Author
  • 13 minutes ago, SmartLifeSystems said:

    Hi cag014!

     

    How can i set up, when the motion sensor is breached more than ex. 15sec., then the lamp is turn on, and less then 15sec. no.?

     

    Thanks! This scene is very good, nice job. Only i need learning use. :)

    Interesting situation, may I ask what is delay time of your sensor to go back to safe after breach? ( Usually it has a range of 30-60 seconds).

    In case you sensor

    As I understand you need to turn lamp ON after 15 sec. when sensor breached.

    Link to comment
    Share on other sites

    1 minute ago, cag014 said:

    Interesting situation, may I ask what is delay time of your sensor to go back to safe after breach? ( Usually it has a range of 30-60 seconds).

    In case you sensor

    As I understand you need to turn lamp ON after 15 sec. when sensor breached.

    No. Only turn on, if the breached it goes on for 15sec. This sensor is in bedroom, and now, if i turn back in the bed, the lamp is turn on. But i want ex. drink something in the kitchen, it turns the lights on only if the sensor is breached for 15sec.

     

    Do you understand what i want?

    3 minutes ago, SmartLifeSystems said:

    No. Only turn on, if the breached it goes on for 15sec. This sensor is in bedroom, and now, if i turn back in the bed, the lamp is turn on. But i want ex. drink something in the kitchen, it turns the lights on only if the sensor is breached for 15sec.

     

    Do you understand what i want?

     

    If the sensor breached for only (example) 5 sec., not turns on the light. :)

    Link to comment
    Share on other sites

  • Topic Author
  • 1 minute ago, magicman said:

    just the four doors in this instance `frontdoor` , `sidedoor`,consdoor`,`garagedoor`

    Another question, are they already embedded in jM{} table, where state  is value=true.

    In this case you can on the same line add an action with condition of fibaroAlarm=true.

    If not you can add this line

    Please login or register to see this code.

    It will cost extra 4 lines in jM{} that's all.

    But I'm working on HTML interface that you will see the table in browser and not in small debug window only, so going further quantity of lines doesn't matter.

    Link to comment
    Share on other sites

  • Topic Author
  • 19 minutes ago, SmartLifeSystems said:

    If the sensor breached for only (example) 5 sec., not turns on the light. :)

    But if your sensor configured go to safe after breach in 30 seconds, it means the sensor will stay breached for 30 seconds always! So the light will turn ON anyway.

    Could you check and post your configuration?

    Something like that

    Please login or register to see this spoiler.

     

    Anyhow, here is the line. Please change 300 (sensor) and 400 (lamp) to your real device ID

    Please login or register to see this code.

     

    You've provided condition when to turn lamp On, but what is the  condition to turn the lamp Off?

    I mean in case sensor breached over 15 seconds, lamp turned ON, when to turn it OFF?

     

    Edited by cag014
    Link to comment
    Share on other sites

    13 minutes ago, cag014 said:

    But if your sensor configured go to safe after breach in 30 seconds, it means the sensor will stay breached for 30 seconds always! So the light will turn ON anyway.

    Could you check and post your configuration?

    Something like that

    Please login or register to see this spoiler.

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

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