Dim light using Lux reading input


#1

1) Give a description of the problem
I would like to control a the brightness of a dimmable device based on the luminance level captured by another device in another room. I have historical data on the luminance level so I have an idea of standard lux levels and, thus, a starting point for lux vs desired brightness relationships.

2) What is the expected behaviour?
Dimmable device will darken as sun/brightness decreases and brighten as sun/brightness increases. Doesnt need to be continuously checked, but would like to have this piston run a check on lux levels every 30-60 minutes.

Am hoping someone has something similar I can use as a basis for my piston.
Thanks


#2

you can try using a timer,

Every 60 minutes
    IF lux level is X or above X
   then do this do that

   IF lux level is Y or below Y
   then do this do that

#3

Ill try that. Seems to be having issues with the dimmer device but Ill work those bugs out.
Thanks again