:return: bytes

def data_to_binary(self):
        """
        :return: bytes
        """
        return bytes([
            COMMAND_CODE,
            self.channels_to_byte(self.relay_channels)]) + \
            struct.pack('>L', self.delay_time)[-3:]