I picked up some photo-resistors which combined with an analog zone give me the ability to sense light. What I would like to do is have a light fade up as it gets darker outside. Something like the following:
I already tried playing with setting it up as a temperature zone. Didn't seem to work. Any suggestions?
Thanks,
Sean
Code:
Whenever every 1 minute
And Light Sensor (Zn 1) is greater than analog value 8.0 volts
Then Add 1 to Dim Level (Counter 2)
Then Set Reading light [2(A2)] to [counter percentage] bright
Whenever every 1 minute
And Light Sensor (Zn 1) is less than analog value 8.0 volts
Then Subtract 1 from Dim Level (Counter 2)
Then Set Reading light [2(A2)] to [counter percentage] bright
I already tried playing with setting it up as a temperature zone. Didn't seem to work. Any suggestions?
Thanks,
Sean