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

Light brightness reset


Question

Posted

Hello,

 

I would like to do scene but it doesnt work as I want.

 

I want scene in my bathroom where:
Between 10:00 pm and 6:00 am is by detected motion light turned on only to 5%

This works for me.

 

But in the other times, i want it to reset settinings of brithness back to 100% because when I turned on light manually by switch, it is still only on 5%.

Can someone help how to reset in these other times light back to 100%?

Thank you very much

9 answers to this question

Recommended Posts

  • 0
Posted (edited)

Hi, two variables (0,1) - > the first until 10:00 pm and 6:00 , the second from 6 to 10pm : )

Please login or register to see this attachment.

Edited by Norbert Ziętara
  • 0
Posted

time1='22:00'

time2='06:00'

timeNow=os.date('%H:%M')

motionID=mID

lampID=lID

If fibaro.getValue(mID,'value') then if timeNow>time1 and timeNow<time2 then fibaro.setValue(lID,5) else fibaro.setValue(lID,100)end end

  • Like 1
  • 0
  • Inquirer
  • Posted

    Can you give me please concrete LUA code?  (HC3)
    Motion sensor is ID 58
    and light is ID 116

     

    I made block scene to light on when motion is detected between 22:30 and 6:00.
    But how to reset this brightness to 100% after 6:01? 

    Please login or register to see this attachment.

    • 0
    Posted

    When blockscene you have to made two

    In lua not

    • 0
  • Inquirer
  • Posted

    How to setup second block scene with this?

    • 0
    Posted

    Change time 22.30 - 06.00 to 06.01 - 22.31 and change value to 100

    • 0
  • Inquirer
  • Posted

    I tried it but then is turned light on, i dont want it to turned on at these times :D i want only reset settings of brightness, not to turn light at 6:01 to 100%

    • 0
    Posted

    Do you wanted between 22.30 till 06.00 5% light when motion and between 6.00 till 22.30 when motion to 100%

     

    Or only the first and then set to ....

    • 0
  • Inquirer
  • Posted

    Still didnt find solution.
    I want to turn on light between 22:30 and 6:00 when motion is detected turn on light to brightness 5%
    but between 6:01 and 22:29 reset brightness to 100% but turn on light manually not with motion

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