Hi
I have the following automation. Until yesterday it was working fine, but I had problem because I wanted to run only one time per day. Mainly if the lux sensor is below 75 lux for 3 min turn on the lights.
Sometime later although I need to turnoff these lights, but they turned on after 3 min
So, I added the following condition template in order to run only once. (I found the formula in the forum)
However today I am in dark
I have already a sunset automation but sometimes when it is cloudy there is a need to turn on lights earlier. This is why I would like to integrate the lux sensor.
Could this be done with input boolean? I haven’t used it before and really can’t understand the concept
That’s ok. You are still triggering off the Lux level in this automation. Just set the before and after sunset offsets as wide as you want to allow the light to be tuned on at any time it might be cloudy. You are using this as a condition. Not a trigger.
That way when you turn the light off late at night it wont turn on again because it is outside the window of time allowed in the conditions. But it will still turn on when it gets dark near sunset or sunrise.
E.g.
Leave the trigger the same (Lux level).
But add conditions that only allows it to do the actions from an hour before sunrise to an hour after sunrise, or from an hour before sunset to an hour after sunset.
It makes sense. Sometimes in the winter and cloudy though it happens even in the noon the need to turn on the lights. Ideally I would like the particular automation to be independent, and triggered only by the lux sensor.
*Sunset in the winter at 17:00
In a cloudy day we turn on the lights at 14:00
Thanks but if you may can you explain how to setup this? Never used input boolean before.
I can not understand for example why it will turn on and when it will turn off (I mean the state of the input boolean)
Here two simple things you can do in Notepad++ to make your life easier.
Select this menu option: Settings > Preferences > Language
In the Tab Settings section, select yaml, change Tab Size from 4 to 2, press the Enter key then click Close.
Now Notepad++ knows that for any file name with a .yaml or .yml extension, when you press the TAB key it will enter two space characters instead of an actual tab character.
Enable this option and it will display space characters as a tiny dot (real tab characters will be displayed as a line with an arrowhead, so you can easily see the difference). View > Show Symbol > Show Whitespace and TAB
NOTE
If you are editing a file whose extension is not .yaml or .yml but you want Notepad++ to treat it like a YAML file, simply select Language > YAML.
At the very least, enable this option in Notepad++ so you can see where there are space and tab characters. View > Show Symbol > Show Whitespace and TAB
A space character will appear as a tiny dot whereas a tab character will appear as a short line with an arrowhead.