Smart Lights source code?

[quote=“chuckles, post:4, topic:30955”]
I.e. the ability to use luminosity sensors as conditions rather than just as triggers so that, for example, I could have a rule which says “Turn on this light when the front door opens, but only when the light level is below X”
[/quote]I think you might look into Dusk-to-Dawn: