Elk light level programming question

speacock

Member
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:

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
 
Did you check that the voltages to the analog zone were indeed changing with various light levels via the "keypad/status menu" (forget what its called) in the Elk setup software? (My computers down right now so I can't check to see what this exact menu is called).

Also, is this X-10? Dimming is always a challenge with X-10. Can you dim the lights via another medium, such as a palmpad?
 
Did you check that the voltages to the analog zone were indeed changing with various light levels via the "keypad/status menu" (forget what its called) in the Elk setup software? (My computers down right now so I can't check to see what this exact menu is called).

Also, is this X-10? Dimming is always a challenge with X-10. Can you dim the lights via another medium, such as a palmpad?

Sir Robin,

A slight clarification. The Elk does not permit setting the dim level of a light to [counter value] All it permits is a fixed level. I was hoping someone would have a good workaround.

Sean
 
You'll have to have your computer do it for you. There's no way you can set the light level equal to the counter.

Elk's rule programming is just "select, type, and click." You select what's in the WHENEVER/AND/THEN menu, type in the information, and you click OK.

But to me, I'd rather just type. Syntax errors, undeclared identifiers, etc. are no big deal to me as I'm a coder (computer programmer).
 
If this isn't X10, couldn't you construct a string that embeds the light's "name" and the counter value, and then write a rule to send it out as ascii to the XSP?
 
Back
Top