Ejemplo n.º 1
0
    def refresh(self):
        cmd = request_status_command(self.type)
        pkt_builder = packet_builder()
        pkt_builder.set_command(cmd)

        data = pkt_builder.finalize()
        data = self._cloud_service.appliance_transparent_send(self.id, data)
        response = appliance_response(data)
        logging.info("Decoded Data: {}".format({
            'audible_feedback':
            response.audible_feedback,
            'target_temperature':
            response.target_temperature,
            'indoor_temperature':
            response.indoor_temperature,
            'outdoor_temperature':
            response.outdoor_temperature,
            'operational_mode':
            response.operational_mode,
            'fan_speed':
            response.fan_speed,
            'swing_mode':
            response.swing_mode,
            'eco_mode':
            response.eco_mode,
            'turbo_mode':
            response.turbo_mode
        }))
Ejemplo n.º 2
0
    def refresh(self):
        cmd = request_status_command(self.type)
        pkt_builder = packet_builder()
        pkt_builder.set_command(cmd)

        data = pkt_builder.finalize()
        data = self._cloud_service.appliance_transparent_send(self.id, data)
        response = appliance_response(data)
        self.update(response)