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


Automatic Lightning System for HC3 (Motion/Average Lux)


chiel-s

Recommended Posts

  • Topic Author
  • 11 hours ago, 10der said:

     

    can you forgot for this feature? i am said about fxxxxxing profiles?

     

    just add a global var

     

    Please login or register to see this attachment.

     

    Please login or register to see this code.

     

    override = "WorkRoomLED",

     

     

     

    @10der, when I use:

     

    Please login or register to see this code.

     

    and global variable is set to off:

     

    Please login or register to see this attachment.

     

     

    The lights are turned on.... Doesn't seem to work.  Or did I understand it wrong? 

     

    Cheers,

    Chiel

    Edited by chiel-s
    Link to comment
    Share on other sites

  • Topic Author
  • 27 minutes ago, 10der said:

    uppercased please

    off != OFF

    Sorry...thanks! :-)  Working now ?

    Link to comment
    Share on other sites

    • 1 month later...
    On 9/12/2020 at 10:03 AM, chiel-s said:

     

    Ehm yes. Is it working in combination with your QA @petrkl12? (

    Please login or register to see this link.

    )

    In that case I will give it a try ;-)

     

     

     

    For me was the combination with Hue (using the QA of @petrkl12) also not working. Color was setting fine but brightness was always 100%. I changed line 278 of the main code :

    Please login or register to see this code.

    Hope it helps others with Hue lights.

    Edited by impact
    Link to comment
    Share on other sites

    On 3/6/2021 at 7:14 PM, petrkl12 said:

    I have added "setBrightness" to next version of Hue lights

     

    @petrkl12 Vyborny, dekuji moc! Really like your QA and it works excellent! Hesky vecer!

    Edited by impact
    Link to comment
    Share on other sites

    @petrkl12 Just a small remark, at line 277 I changed the order of setting color and brightness of the Hue light. Otherwise it first flashes bright in night if previous brightness was higher. The color change is than a little delayed, but almost not mentioned.

     

    Quote
                    if #color == 5 then
                        --fibaro.call(id, "setBrightness", color[5]) --RGBW??
                        fibaro.call(id, "setValue", color[5]) --Hue
                    end
                    fibaro.call(id, "setColor", r, g, b, w)
              --   Changed order of setting color and brightness, first brightness than color > otherwise light flashes bright
     

     

    Link to comment
    Share on other sites

    • 5 weeks later...

    Hi,

     

    My question will hit the top 10 of most stupid questions of all time, but I'm firing it anyway.

    I'm very interested in the script you guys are talking about. I've got a HC3, multiple motions sensors and multiple dimmers etc and looking for a script like this.

    But am I able to download this soemwher, because I noticed that (a lot of) changes are made to it?

     

    Cheers,

    Jan 

    Link to comment
    Share on other sites

    • 3 months later...
    Guest Benrive

    Hi, U used the first LUA for @chiel-s.

     

    I only one sensor lux , i think this error it's for de same.

    In second script i hace the following error but ,I can't find how to solve it.

     

    In the first scene to the averageLux , debuf tag for media lux it's 211.0

    [SCENE15]: (load):24: attempt to concatenate a nil value (local 'localLuxAverageRoom')

     

     

    Edited by Benrive
    Link to comment
    Share on other sites

    24 minutes ago, SmartHomeEddy said:

    Looks like an average is not calculated, because you have only one Lux sensor. 

    Without reading the whole topic, since i am not that far in setting up the system.

    I use the sunpower value of the quickapp you made as a second value to

    turn on the light in daytime. These days it sometimes gets a little dark in 

    the living room, because of the bad wheather. So, when the  value of the inhouse sensor

    is < 200. The lights turn on. And when the sunpower value is > 150 and the normal sensor is > 500. The lights turn of.

     

    Probably a very simple solution, but

    This actually works perfect :)

    Edited by ppeterr
    • Like 1
    Link to comment
    Share on other sites

    1 hour ago, Benrive said:

    Can you share how you have done it?

     

     

    I made this only for the daytime, when it gets a little dark outside.

    Its not anything special :) But here it is. I assume you can make a block scene

    that turns on the light when it is below a certain lux value. For that i use a normal

    lux sensor. Turning the lights of when its not needed anymore, i use the "light power"

    value from the Buienradar Weather app that @SmartHomeEddy made. (only for europe i think)

    That gives me values (like: the sun is shining) from a wheather station wich is about 15mins from my home.

     

    4 blocks on the left.

     

    the first checks if the light level inside the house is > 500 lux

    the second checks the value from the sunpower outside > 150

    the 3th checks if the lamp is atually on

    the 4th is the daytime setting.

     

    2 blocks on the right (action if all true)

     

    1st - turn the lights of

    2nd - Let my echo show in the living room say "i turned the lights of"

     

     

    Please login or register to see this attachment.

    Edited by ppeterr
    • Like 1
    Link to comment
    Share on other sites

    Guest Benrive

    Hello,

    If that one also suits my need better, I will try to use it and if I have a problem I will discuss it with everyone.
    Thanks a lot

    Link to comment
    Share on other sites

    2 minutes ago, Benrive said:

    Hello,

    If that one also suits my need better, I will try to use it and if I have a problem I will discuss it with everyone.
    Thanks a lot

     

    Where are your from if i may ask, because i think the buienradar quickapp is limited to europe.

    Link to comment
    Share on other sites

    26 minutes ago, ppeterr said:

    Turning the lights of when its not needed anymore, i use the "light power"

    value from the Buienradar Weather app that @SmartHomeEddy made. (only for europe i think)

     

    (Buitenradar Weather measures data within the Netherlands)

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

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