I know I can do this via IFTTT but I’m in the process of trying to reduce the Applets.
Can you use a condition to evaluate a logiblock.
I have 2 logibocks
One has a time condition eg 2200-0600. This switches lights on when motion is detected. lights stay on for 5 minutes. Then switches lights off.
Second has a time condition 0600-2200 This switches on lights depending on brightness levels or nighttime
Example
There has been an overlap due to a countdown timer in one logiblock that started before 0600 but goes negative after 0600 so switches the lights off. But before then the 2nd logiblock has activated switches the lights on. But i have no way of rerunning the logiblock unless something else changes. I have added a motion sensor to the logiblock set for 10 seconds into the OR along with night time and brightness levels. That will switch on the lights on for 10 seconds as that will make the logic true even though the primary reason for the logiblock is to switch the lights on when it gets dark outside due to clouds or dusk. As people move around a lot in the day i suspect it will turn my front room into a disco when its bright outside