As has been noted already, it does not appear that you need the Restriction in your rule. The following rule is an example of turning ON a light switch at sunset, then turning that same switch OFF at sunrise.
1 Like