def parse_capability_line(line):
    """
	Parses the provided firmware capability line.

	Lines are expected to be of the format

	    Cap:<capability name in caps>:<0 or 1>

	e.g.

	    Cap:AUTOREPORT_TEMP:1
	    Cap:TOGGLE_LIGHTS:0

	Args:
		line (str): the line to parse

	Returns:
		tuple: a 2-tuple of the parsed capability name and whether it's on (true) or off (false), or None if the line
		    could not be parsed
	"""
    line = line.lower()
    if line.startswith('cap:'):
        line = line[len('cap:'):]
    parts = line.split(':')
    if len(parts) != 2:
        return None
    capability, flag = parts
    if not flag in ('0', '1'):
        return None
    return capability.upper(), flag == '1'
