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


Question

Posted

Hi everybody,

 

I have a a problem.

I am new in the fibaro home automation, so my question would be.

I would like that my hole light to turn off from monday to friday between morning 6 and morning 9 a clock but just when i close the main door. 

i have a main door sensor and a dimmer for the hole light. 

i have made a magic scene which turning off the light when the door has been closed. 

then i have made blocks scene in which i gave day and time from... to and repeat 0 and then run that magic scene.

magic scene working but not in that period in which i would like. 

maybe i have to make  another scene?

could you please help me with examples how can i make it?

i am 0 in lua so it would be in blocks .

thank you.

best regards

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Hi again,

     

    So lets start again,

     

    I would like to understand and learn blocks scene and then lua.

    where can i find the best blocks scene examples?

    can i start to learn lua, is it hard, i have no experience in it.

    can you help me?

    if i do not keep the rules about posting asking please tell me what to do first and then come back.

     

    My experience in forums that when i write in a forum never get answers for my question. 

    i do not know why.

    thank you

    • 0
    Posted (edited)

    There are many ways to do it, but I think this works. The scene is not tested.
    You must create a variable so the scene only runs when it needs.


    Create variable:
    "HoleLightVar" it can be "off" or "on"


    Create block scene:
    Interval based timer "from 6:00 every 1minutes To 9:00" and "door sensor" == "Safe" and "HoleLightvar" == "On"
    then
    "HoleLightVar" = "Off" and "HoleLight" = turnoff "


    There would be only checkmark in "HoleLight"

    Scene should starting with HC2 og "Automatic"

    If the scene works you can convert to LUA.

     

     

    Edited by hTiger1
    • 0
  • Inquirer
  • Posted

    So first of all thank you for your reply. 

    So i have to make one variable and name it or on or off?

    or i have to make one variable with a name with function on or off. So with two function. 

    There eould be only checkmark in hole light. I do not understand this. 

    Sorry i am begeiner in this but i want it to learn. 

    Thank you. Again and i will write when i created the blocks. 

    Dobyou mind if i search you in facebook and add it as a friend?

    • 0
    Posted (edited)

    Here is an example of the variabel panel:
    "KvikVarme" can be "Aktive" or "Inaktive" same som--
    "HoleLightVar" it can be "off" or "on"

     

    Please login or register to see this attachment.

    Edited by hTiger1
    • 0
    Posted

    Here is an example of scene:

     

    Please login or register to see this attachment.

    • 0
    Posted

    I am not sure that a variable is needed.

    But actually is not clear the scope of the scene.

    Monday to Friday the light off when the door is closed?

    And if not? I mean all other cases. Light must be on? Door open? From 9 to 6? Sat-Sun? 

    • 0
  • Inquirer
  • Posted (edited)

    Hi Flowy

    to clear the scene role. 

    I have two kids. At the morning i wake up at 6 a clock. I ha a scene that my hole light turns on at six and one more scene which turns off at nine a clock at morning. 

    My eife goes in the school at 7:30-8:00-9:00 a clock. 

    I would like a group of scenes that somehow controls my light in the hole at mornings. 

    So i thought that  at 6 turns on, and i go with the kids out arround 6:45-7:00 a clock. (That is why i would lime to turn off when i close the main door) 

    then i thought i make one more scene tobturn on at 7 a clock when my wife wakes up and then when she lives and closes the main door then the light goes off and we are okay. 

    But in this case i have to take out the scene with the hole light off at 9 a clock. 

    So that is that i am thinking about and would like to solve somehow. 

    I am open for any kind of tips. Scenes everything. 

    Thank you in advance. 

    And thanks that you are helping me. 

     

    I forgot that i have an other scene with the main door that when is breached then light goes on and when it is safe for 2 minutes then goes off. 

    Edited by Hajdu Levente
    • 0
    Posted
    33 minutes ago, Flowy said:

    Jeg er ikke sikker på, at der er behov for en variabel.

    Men faktisk er ikke klart rækkevidden af scenen.

    Mandag til fredag lyset slukket, når døren er lukket?

    Og hvis ikke? Jeg mener alle andre tilfælde. Lys skal være på? Dør åben? Fra 9 til 6p Lør-søn? 

    You're right, the scene running all day, it's a mistake.

    • 0
  • Inquirer
  • Posted

    hTiger1

     

    i will try this scene and i will write my experience and that is worked or not. 

    It will take one day because at afternoon i do not realy have time but i try to solve. 

    I will get back. 

    Thanks. 

    • 0
    Posted
    22 minutes ago, Hajdu Levente said:

    Why it is a mistake?

    Your scene should not drive over the weekend.

    • 0
  • Inquirer
  • Posted
    19 minutes ago, hTiger1 said:

    Your scene should not drive over the weekend.

     

    But that is simple just set the days for them at the begeining. 

    Not?

    • 0
    Posted

    correct,

    you can choose the days of the week

    • 0
  • Inquirer
  • Posted

    Hi again,

    I have made the scene, now i do not know if it is working or not because i have the scene with the main door that when i am opening then light goes on and after to minutes when the door is safe then goes off. 

    but when i have made this scene i went to run button and it worked. is that meaning that it is working well?

     

    now i have one more thing to do.

    as we made this scene from 6-9 which lets say will work, i would like to manage that the main door scene which is turning the light on when is breached and when it is safe for two minutes turning off, i would like that the main door scene to be inactive from 6-9 a clock at morning. 

    i tried to make it but it doesn't not worked out. 

    i am attaching my  all scenes regarding this situation. 

    I hope we can figure out something

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    Hi again,

     

    Could you please tell me examples that for what can i use motion sensor with the door sensors and with the wall plugs?

    thank you 

    • 0
    Posted

    Hi Hajdu,

    from my side is very difficult to understand the basic requirements of your application so not easy to help.

    Just quickly without understanding how it should work I anyhow see that there is the variable VarHoleLight that is set to OFF by a scene but it is never set to ON so after the first run it does not work anymore.

    • 0
  • Inquirer
  • Posted
    On 10/10/2016 at 2:00 PM, hTiger1 said:

    Hi again, Flowy

    1 group of scenes:

    .  6 morning light turns on

     . 7morning light turns on

     . 9 morning light tunrns off

     

    2 group of scenes: without timing

    . main door breached light turns on

      main door safe light turns off.

     

    that is what i have.

    it is missing or i can not figre out that, from 6-9 at morning when i close the main door the light to go off.

    but i even would like that after 9 a clock at morning until 6 a clock at morning my 2group of scenes to be active.

    do you see now?

    it was a try with the variable so i do not know it is good or not

     

     

     

    Create variable:
    "HoleLightVar" it can be "off" or "on"


    Create block scene:
    Interval based timer "from 6:00 every 1minutes To 9:00" and "door sensor" == "Safe" and "HoleLightvar" == "On"
    then
    "HoleLightVar" = "Off" and "HoleLight" = turnoff "


    There would be only checkmark in "HoleLight"

    Scene should starting with HC2 og "Automatic"

    If the scene works you can convert to LUA.

     

    it was made after this.

     

    so ask me if still not understandable maybe we can get the solution

     

     

     

    On 10/10/2016 at 2:00 PM, hTiger1 said:

     

     

    • 0
    Posted

    Hi
    I agree with Flowy.
    The meaning of "VarHoleLight" is scene not to run for every minute when the light is turned off.
    But during the test period you can try to remove "VarHoleLight" from the scene.

    • 0
  • Inquirer
  • Posted

    So vasicli just make a time period scene without variable?

    and what about the aktiv inaktive scene from 9- am to 6 am. 

    The same without variable?

     

     

    • 0
    Posted
    20 minutes ago, Hajdu Levente said:

    So vasicli just make a time period scene without variable?

    and what about the aktiv inaktive scene from 9- am to 6 am. 

    The same without variable?

     

     

    Yes just without variable.
    Try to build the system in small steps and test.

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