Trying to turn my outside lights on between Sunrise and Sunset with Lux under 475

I have Weather Station Tile setup and this piston running, well I have two, one to turn the lights on and one to turn them back off.

Basic Piston
If
Local Weather illuminance is less than or equal to 475lux
and
Time is between Sunrise and Sunset

Then
Turn On Outside Lights Switch
and
Send push notification

Then I have another one to turn the lights off if brighter than 475 lux
Basic Piston
If
Local Weather illuminance is greater than 475lux
and
Time is between Sunrise and Sunset

Then
Turn Off Outside Lights Switch
and
Send push notification

Does that look correct, or is there a better way to do it?

I do something similar in webcore. I don’t know if it is the most efficient but I know it does work.

The time, can I use Sunrise and Sunset though instead of a certain time? I have a SmartApp that already turns my outside light switch on at Sunset and off at sunrise and I don’t want it to mess with that.

Just installed webCore, trying to figure it all out. I’m new to CoRE with in the past week too haha

Why not just use Smart Lighting for this?

To turn on my outside lights if it’s between sunrise and sunset and Smart Weather Tile 2.0 Lux is below 475? How?

under more options at the bottom of your smart lighting rule there is an illuminance entry

Thank you, I didn’t realize that.

1 Like