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

Simple Lighting Scene


Question

Guest puma
Posted

Hi I am trying to create a scene in HC2 basically I want something simple that when I arrive home after 7pm (or dark) and disarm my alarm the interior lights turn on.

 

I can get it to turn the lights on however it does it at any time of the day not just after 7pm.

 

What am I doing wrong?

Please login or register to see this attachment.

3 answers to this question

Recommended Posts

  • 0
Posted

@puma, You can't do this in 1 scene if you want to use a block scene. Either search for a lua script on this forum or do the following:
- Create a variable 'sunset'. I hope you know where to do this?
- Create a scene with only a timer. At sunset, set the variable to a value , for example (1).
- Create another scene with one a timer. At sunrise or after a certain time, set the variable to 0.
- Create another scene : if alarmArea1 == disarmed and sunset variable ==1 then Lights turnOn. Don't forget to mark 'alarmArea1' as a triggering device in your scene and unmark the triggering variable for the sunset variable.
 

  • Like 1
  • 0
Guest puma
  • Inquirer
  • Posted

    @wpeeters @wpeeters Thanks for your help I have completed the steps above and it appears to be working at the moment. 

     

    I find that the 'sunrise' & 'sunset' doesn't really work that well when I was just testing it the lights didn't turn on and the sun has clearly set here. 

     

    I changed it to a set time so at 7:30pm it triggers the variable to 1 and then at 6am it changes it back to 0.

     

    Testing of that seemed to work will trial over the next few days and see if it functions on its own at the correct times.

     

    Cheers!

    • 0
    Posted

    @puma, sunrise and sunset are the official hours in your timezone. 
    Check if your timezone is correct. Also be aware, there is a difference between sunset and sunrise hours compared to real life (15 - 30 minutes).
    For example, I turn my garden lights on at sunset time + 15 minutes. Then it's almost dark.

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