i´m setting up a rule to turn on my hue for 5 minutes when motion is detected between 6 and 0 (06:00 / 00:00).
But i´m not sure what time format OH is using.
OH uses 24 hour format, so 0-23 for the hours. That statement won’t work, because you can’t have a number that is both bigger than 6 and less than 0, and the hours will never be less than 0 anyway. If you want to trigger between 6pm and midnight, you’d check if getHourOfDay is greater than 18. If you want to trigger before 6am, you’d check if it was less than 6. Hope that helps.
If you have more things you want to do based on the time of day, see my Time of Day Design Pattern for a more modular and easier to maintain way to keep track of time periods and trigger or control behaviors based on time like this.
For example, I keep track of four time periods: Night, Morning, Day, and Evening. Some are based on clock time and others are based on sunrise/sunset. Some things trigger when a time of day period starts or stops and some rules change their behavior based on what the current time of day is.