@staticmethod
def __calculateCheckSum(command, zoneId):
    """Calculate request checksum

    Note: Request checksum is equal to SUM(all command bytes and of the zone number) & 0xFF

    Keyword arguments:
      command -- (bytearray) Command
      zoneId -- (int) Zone ID

    return: (int) Request checksum
    """
    checkSum = 0
    for byteCommand in command:
        checkSum += byteCommand
    checkSum += zoneId
    return checkSum & 255
