What is the duration format that is used in YAML?

I made a template sensor with delay_off: "10:00", thinking it meant 10 minutes 0 seconds, but apparently it is either invalid or it means 10 hours because the sensor wasn’t working properly until I changed it to delay_off: "0:10:00".

What exactly is the format that HA YAML uses for durations, is it some kind of Python standard?

Like the other duration keys, there are three accepted formats:

# Seconds
delay_off: 120

# "HH:MM:SS"
delay_off: "0:02:00"

# Unit dictionary
delay_off: 
  minutes: 2
1 Like