docs: def index_to_housecode(index):
      """Convert a zero-based index to a X10 housecode."""
      if index < 0 or index > 255:
          raise ValueError
      quotient, remainder = divmod(index, 16)
      return chr(quotient+ord('A')) + '{:02d}'.format(remainder+1)