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

Good morning, I have this scene that works all day, but actually I would like it to work from 7 to 23, how should I add that part to this code?
Thank you!

Please login or register to see this code.

 

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

use the os.date like this:

 

Please login or register to see this code.

 

Edited by Momos
  • 0
  • Inquirer
  • Posted
    1 hour ago, Javier Carelli said:

    Good morning, I have this scene that works all day, but actually I would like it to work from 7 to 23, how should I add that part to this code?
    Thank you!

    Please login or register to see this code.

     

     

    33 minutes ago, Momos said:

    use the os.date like this:

     

    Please login or register to see this code.

     

    Thank you very much, and in what part of the scrip do I add it?

    • 0
    Posted (edited)

    Please login or register to see this code.

    Edited by cag014
    • 0
  • Inquirer
  • Posted

    Thank you.
    The last query. I would like that when I double click the variable is changed to "On" so that the light does not turn off, and then when I click to pass the variable to "Off". I have a fgs223, is this scene okay?

    This is my scene: 

    Please login or register to see this code.

    And "Activada":

    Please login or register to see this code.

    And "Desactivada" 

    Please login or register to see this code.

     

    • 0
    Posted

    Looks fine.. is it work for you?

    • 0
  • Inquirer
  • Posted
    On 13/2/2019 at 9:52, Javier Carelli said:

     

    Muchas gracias, y en qué parte del script lo agrego?

    Dear, good morning.
    Excuse me, is it possible to add that it does not light from 22 to 7 from Sunday to Friday, and from 22 to 10 on Saturdays and Sunday?

    On 13/2/2019 at 10:17, cag014 said:

    Please login or register to see this code.

    Dear, good morning.
    Excuse me, is it possible to add that it does not light from 22 to 7 from Sunday to Friday, and from 22 to 10 on Saturdays and Sunday?

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