is_time_between

Passes when the time is between from and to (inclusive).

Required arguments

Key(s)DescriptionType
fromThe first time. Times as HH:MM (24 hour); to includes the whole of that minute.STRING
toThe last time. Times as HH:MM (24 hour); to includes the whole of that minute.STRING

Example

conditions:
  - id: is_time_between
    args:
      from: 21:30
      to: 06:00