Lux level activation


#1

Hi,

I’m using a Lux sensor to help turn on lights below their set times, depending on Lux level. Before I integrate this into a more complex piston, I thought I would give it a try…WebCoRE is seeing the Lux my sensor is reading, but I am not getting the piston to turn on the light…Here’s the setup and log if someone can help me out on this…thanks

UPDATE:

I temporarily turned a light on to raise the Lux up…then turned the light back off to make it below my threshold…and low and behold, it fired the piston…I’m guessing this must be with how the lux sensor is reporting?

59 PM


#2

Try drops below instead of is less than 25lux


#3

I’ll give that a go…another question I have is how to make it trigger below a certain lux, but only between certain times (this would be within a piston that turns on certain lights a bit before sunset each day - the purpose of the lux for me is to turn on the lights earlier should the lux be too low…) So I’d be looking to add a statement such as "If lux drops below XXX between 3 PM - 8 PM then turn on XXX)


#4

You could try

If time is between 3 and 8 then if illuminance drops below 100lux then turn on lights

I do something similar


#5

So what I have programmed already is a certain time prior to sunset, turn on XXX lights…

And what I want to add is an OR statement, which I was able to figure out…e.g., Or if the lux drops below XXX…but I want to also add another condition, but only for the lux sensor between 3-8 PM as an example. Can’t figure out had to add the extra condition just for the second if (lux)

I’m thinking it might be easier for me to write a separate piston coverage the devices I want to go on with lux, rather than building that code into the pistons that don’t have the lux code already…


#6

Can you post a green snapshot of what you have?


#7

I ended up just doing another piston…it was easier that way…