Test a Condition that's Currently False?

I've written my first IF/ELSE rule and one of the IF conditions is only true between sunset and sunrise. Is there an easy way to test my rule while the sun is up?

A quick search didn't help me so apologies if this has been covered a bunch.

Thanks!

If you just want to test the actions inside the IF THEN, I would simply disable all other rule actions (check the box for each line in the "X"/disable column in the actions table), then use "Run Rule Actions" or a real trigger, whatever works best for your particular rule, to test.

You could also change your hub time and hope NTP doesn't re-sync during your testing, I guess, or change your location or time zone to somewhere where the criteria are met, but that seems more complicated. :smiley:

Sorry for the late reply and thanks for the help. I assumed disabling part of the rule would break it but it worked out fine.

Eventually, I figured out I could reverse my condition with the NOT function and that worked too.

Thanks again.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.