:return: bytes

def data_to_binary(self):
        """
        :return: bytes
        """
        if self.channel == 0x01:
            tmp = 0x03
        else:
            tmp = 0x0C

        return bytes([
            COMMAND_CODE,
            tmp
        ]) + struct.pack('>L', self.delay_time)[-3:]