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've been trying to create a scene that when motion is detected it checks the current light condition in the room and turns the light onto 10% if it is dark.

I'm using fibaro dimmers and aeon labs multi sensor

I can get it to sense motion and change the light to 10% but if the light is already on, then it dims the light down to 10%

I'd also like it to switch off after 10 seconds or so

please help ?

5 answers to this question

Recommended Posts

  • 0
Posted

Can you post the code you've written so far so we can have a look through it?

  • 0
Posted

I have done something similar, see my scene below.

Basically IF my night variable is enabled (I have another scene triggering this variable between Day and Night and using it for many other scenes behavior) , and IF the lamps are already off and IF there is movement THEN turn on the lamps AND then turn off after 180 seconds. I added the OFF command separate and not a timer (in the red fields) as in previous HC2 version it was suspected that timers consumed a lot of CPU so I'm avoiding them.

Please login or register to see this attachment.

  • 0
Posted

This might work for you:

Please login or register to see this code.

  • 0
Posted

Another go only movement, 2 lights ,Daypart is a variable DayTime or NightTime (set using sunrise/set)

Detects movement at night, if lights are off and if its before midnight sets lights to level 40 and waits 180 seconds, any further movement resets the clock, after 180s will dimm light gradually

After midnight dimm level is 1

Please login or register to see this code.

  • 0
Posted
Another go only movement, 2 lights ,Daypart is a variable DayTime or NightTime (set using sunrise/set)

Detects movement at night, if lights are off and if its before midnight sets lights to level 40 and waits 180 seconds, any further movement resets the clock, after 180s will dimm light gradually

After midnight dimm level is 1

Please login or register to see this code.

Can you please adjust your code, so I can use fibaro motion detector to measure light level and only execute the scene if the light level is below a certain level( as in the example above this)..This is more accurate as sunset/sunrise variable

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