Announcement

Collapse
No announcement yet.

How to dim lights to constant value based on luminance level.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to dim lights to constant value based on luminance level.

    I would like to set my ambient lighting for TV watching at a constant level. If I have less than that level I would like to control the room lighting to increase and vice versa.

    I have looked for some script help, but I'm no scripter and it looks like nobody else has tried to do exactly this thing. I have Easytrigger and sorta think I should be able to use that, but I'm not getting it. Could somebody give me a nudge in the right direction? TIA.
    HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
    Home Assistant 2024.3
    Operating System: Microsoft Windows 11 Pro - Desktop
    Z-Wave Devices via two Z-Net G3s
    Zigbee Devices via RaspBee on RPi 3b+
    WiFi Devices via Internal Router.

    Enabled Plug-Ins
    AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

    #2
    I was going to suggest EasyTrigger. You can do calculations in EasyTrigger. You might be able to do something like [LightPercentage] = 100-[AmbientLightMeasuredInPercentage]. Maybe ask the question on the EasyTrigger forum and if you do so post a link here to the thread you open in the EasyTrigger forum.

    Comment


      #3
      So, just to be clear - you want the lighting to always be, at, say.... 40%. If someone changes it to be 30%, or 60%, you would like it to immediately change back to 40%? Or, you want the lights, on demand, to get set to 40%, and if so how do you want to trigger it?

      Comment


        #4
        Originally posted by paul View Post
        So, just to be clear - you want the lighting to always be, at, say.... 40%. If someone changes it to be 30%, or 60%, you would like it to immediately change back to 40%? Or, you want the lights, on demand, to get set to 40%, and if so how do you want to trigger it?
        No... in our "TV Room" I would like to maintain a luminance level of 150 lux if the TV is on. This room faces west and might need some additional light in the AM, none in the afternoon, but gradually adding more and more as the sun goes down... but always maintaining 150 lux (if possible), if the TV is on.

        The trigger would be comparing a luminance device value in lux to a standard 150 lux and the device changed would be the dimmer percentage of the overhead lights.
        HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
        Home Assistant 2024.3
        Operating System: Microsoft Windows 11 Pro - Desktop
        Z-Wave Devices via two Z-Net G3s
        Zigbee Devices via RaspBee on RPi 3b+
        WiFi Devices via Internal Router.

        Enabled Plug-Ins
        AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

        Comment


          #5
          I think you would want to have a band to operate in or the lights could go on and off. A deadband of 148-152 might be reasonable. You can do this easily with easy-trigger.

          Comment


            #6
            Did you try my suggestion to your other post? Not sure it will work but maybe worth a try.
            https://forums.homeseer.com/forum/ul...00#post1387200


            edit: ewkearns you may have missed it since I didn't quote or tag you.
            -Wade

            Comment


              #7
              Did you ever get this working ewkearns ? I am testing a Node Red flow to do the same for my office area. I have a light sensor and am looking to have a Lux value between 20 and 25 in my case. Basically when the sensor reports a value outside that range I subtract 22 (roughly the mid point in my range) and round that value to zero decimal places. I then apply that to the current dim level of the light switch (a dimmable z-wave wall switch in my case). I also have a Virtual Device which is set to "Working" or "Not Working" and only allow control when this is set to "Working" including initial control to turn the light on if needed. But if ther eis a better, native way to do this, I am more than happy to scrap this and go that route.
              Karl S
              HS4Pro on Windows 10
              1070 Devices
              56 Z-Wave Nodes
              104 Events
              HSTouch Clients: 3 Android, 1 iOS
              Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

              Comment


                #8
                Frankly, I had a big bit of life happen at about that same time and did not return to the project. I may give this a second look and see what I can get to work. Thanks for reminding me...
                HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
                Home Assistant 2024.3
                Operating System: Microsoft Windows 11 Pro - Desktop
                Z-Wave Devices via two Z-Net G3s
                Zigbee Devices via RaspBee on RPi 3b+
                WiFi Devices via Internal Router.

                Enabled Plug-Ins
                AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

                Comment

                Working...
                X