I’ve been trying to get my time based conditions to work for the better part of a couple days now. I’ve read the documentation on the HA conditions and even searched through 10+ posts with similar topics.
I’m not sure if this is a bug in the UI or I’m completely missing the point. My goal is to set an automation based on weeknights to turn off after 3 minutes, when no motion is detected, between 5pm and 10pm on weeknights: Sunday - Thursday.
I’ll post the full YAML at the bottom but here are some screen shots of valid entries that work and then simply changing the “after” time to a still valid time, results in a red flag.
Here is a simple dummy test to prove im not losing my mind.:
9am to 10pm is valid
When you click the Test button, you’re checking if the current time is between 5:00 PM and 10:00 PM (and one of the listed days). When you performed the test, was the time within the specified range?
It’s expected for the Test button to report false if the test was performed at a time outside of the range.
It was out of the range. I assumed the test was a validation on if it was a valid YAML configuration without syntax errors or something, not: “is this code valid at this very moment”. I feel like an idiot now.