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

I would like the lights in my lounge to come on if triggered by a motion sensor and the lux level is below 10. This is between 10am and when the lights in the house are set to come on an hour before sunset. 

 

I have a variable (IsActiveTime) that is set to true at 10am. It is then set to false at 121 mins prior to sunset. (This was to take into account the lights coming on as normal at and hour before sunset, plus 1hr delay in the motion trigger to turn them off. These are set by two block scenes.

 

Then there is another block scene below. This is triggered if the lux is <10, motion is sensed and the variable IsActiveTime is true. Turns lights on, great, then an hour later turns them off. Good. 

 

Please login or register to see this attachment.

 

The problems are the lights will turn off after the 1 hour delay and then there is darkness until the normal lights switch on at an hour before sunset. Like today they went off at 14.59 and there switched on as normal at 15:13 . I had set the variable to false at 121mins before sunset, so that the normal control could switch them on.

 

Ideally in the "daylight" window, I would like them to come on if I am in the room and it is dull. And then switch off after a short while when i leave for an extended time. Then As normal I would like them switched on an hour before sunset.

 

I am suspecting this might need to be written in LUA?

 

Any thoughts as to where I am going wrong? 

 

Many thanks. 

5 answers to this question

Recommended Posts

  • 0
Posted

To keep it simple, may I suggest using  

Please login or register to see this link.

It can be done in a single line, without any LUA knowledge.

For example:

{"mSensor",{state="true", timeSlot="10:00~?$sunsetHour-3600?",trueAct={"light","turnOn","if LUX<10"},falsAct={"light","turnOff"}

 

 

  • Thanks 1
  • 0
Posted

Do you set IsActiveTime anywhere to false? Maybe that is the reason.

  • 0
Posted

No need.

The timeSlot="10:00~?$sunsetHour-3600?" does the job. This line is active only between 10 am and one hour before sunset

  • 0
Posted

I see @AR27690 suggesting using AOQ, 

If you encounter any problem, you can rise and ask questions at

I am usually following this topic.

  • 0
  • Inquirer
  • Posted

    Thank you. I will need to explore how to install this "app" and then how to configure. Loads to absorb. Thanks for pointing me in the right direction.

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