Let's say sunset is 8pm. How can I create a condition that is true starting from 4pm? There is the condition "The Time is This After Sunset" but you can only set positive hours and minutes so it will be sometime after 8pm. There is the condition "The Time is This Before Sunset" but I want something that is true after sunset, not before. There is "The Time is Daytime" but it doesn't allow me to add an offset to the sunrise and sunset. I also can't see any combination of conditions that could achieve but I might miss something.
Announcement
Collapse
No announcement yet.
Event After Sunset with Negative Hours
Collapse
X
-
I want something like:
IF Sensor Luminance was set and has a value that is less than 40%
AND IF The Time is MINUS 4h after sunset
THEN Set Device Light to On
Let's say sunset is at 8pm. However, at 8pm the Luminance value already dropped to 30%. Hence, if my condition is "The Time is PLUS 1m after sunset" the event triggers far too late (because I want to trigger it when it goes below 40%). So somehow I need to modify the condition that it is true STARTING from 4pm and later.
Comment
-
Never mind, I just do something like
IF Sensor Luminance was set and has a value that is less than 40%
AND IF The time is after 4:00pm
AND IF The time is before 10:00pm
THEN Set Device Light to On
Event Cannot Re-Run for 6h
This will cover both winter and summer. I also adjust the not re-run to 6h which means if the lights come on at 4pm it won't run again until 10pm which is my other cut-off time. Hence, the lights should not come on automatically anymore after 10pm until the next day at 4pm. It just means during winter time the lights might come on too early to my wife's liking. We will so how that works.
Comment
-
Originally posted by mulu View PostLet's say sunset is 8pm. How can I create a condition that is true starting from 4pm? There is the condition "The Time is This After Sunset" but you can only set positive hours and minutes so it will be sometime after 8pm. There is the condition "The Time is This Before Sunset" but I want something that is true after sunset, not before. There is "The Time is Daytime" but it doesn't allow me to add an offset to the sunrise and sunset. I also can't see any combination of conditions that could achieve but I might miss something.
Steve
Comment
-
Originally posted by Rupp View PostMINUS 4h after sunset is simply 4hs before sunset? The Time is This Before Sunset trigger with 4 hours entered.
Comment
-
Can this be done using the trigger Rupp pointed in combination with a virtual device? IF the time is 4 hrs before sunset THEN Turn On virtual device. You'd then use the state of the virtual device as the condition. Then create a second event that turns off the virtual device at 11:59PM. EDIT: or whatever time you want the condition to not be true."if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)
- Likes 1
Comment
-
Originally posted by kenm View PostCan this be done using the trigger Rupp pointed in combination with a virtual device? IF the time is 4 hrs before sunset THEN Turn On virtual device. You'd then use the state of the virtual device as the condition. Then create a second event that turns off the virtual device at 11:59PM. EDIT: or whatever time you want the condition to not be true.
HS4 Pro, 4.2.18.9 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by kenm View PostCan this be done using the trigger Rupp pointed in combination with a virtual device? IF the time is 4 hrs before sunset THEN Turn On virtual device. You'd then use the state of the virtual device as the condition. Then create a second event that turns off the virtual device at 11:59PM. EDIT: or whatever time you want the condition to not be true.
Comment
Comment