I already have a Rule for Day/Night to turn on lights at Night and off when its Day. But when its Day and cloudy weather moves in, I'd like to have a Rule which handles that situation.
I have two outside sensors which provide illumination values. I would like to write a rule whereby if the illumination falls below value "x", it turns on a few lights (thinking of using a Group). Then when the illumination goes back above "x", it turns off the lights.
I'm having difficulty trying to determine which trigger to use and then if I can do this in 1 rule or 2. Any recommendations are welcome.
I was thinking that was the way to go but also use Defined Required Expression where Mode is Day so that the rule doesn't run at Night. Any reason not to use this as part of the rule?
But you want the lights on at night though? As long as the day/night rules dont compete with the illuminance rule, I dont see an issue not restricting ..
or ... have the lights turn on/off by illuminance, but only have the lights turn off in the morning when illuminance > X
or just let illuminance do its thing, and not worry about time
Here are some more options... I use mode to switch between day and cloudy... and then I use a variable as the lux limit so I can tweak it from a dashboard. Using a mode allows me to have other apps respond differently when it's cloudy - e.g. mode and motion lighting.
@brad5 ... much thanks for posting your rule, I really like what you've done with it but I do have a question. Any reason why you used a Scene versus Group?
A group can be turned on or off or dimmed or change color - as a group. With scenes the settings for individual lights or bulbs can all be different. For instance "cloudy day" may turn some lights on, some off, change the level of others, etc. Can't get that level of granularity with a group. And actually turning off "cloudy day" is kinda useless here. Anything that is on with cloudy day that I want to turn off with day lights is actually managed by the day lights scene.
@brad5 ... I am attempting to set a Global variable, like you, for the lux limit but when I open a new Rule, I only see the option to set a Local Variable. Do you know where to set Global Var?
Any reason you don't want to use a hub variable instead of a global variable? Both will continue to work, but the former is basically a new replacement for the latter and will be more widely usable in the future.
Hub variables are under Settings and are usable with Rule 5.0 and newer, plus an increasing variety of other apps.