midea-beautiful-air icon indicating copy to clipboard operation
midea-beautiful-air copied to clipboard

None capabilities as Error

Open TA2k opened this issue 2 years ago • 3 comments

When I requesting status from an Air Conditioner via cloud I receiving When request the capabilities

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): mp-prod.appsmb.com:443
DEBUG:urllib3.connectionpool:https://mp-prod.appsmb.com:443 "POST /mas/v5/app/proxy?alias=/v1/appliance/transparent/send HTTP/1.1" 200 26
DEBUG:midea_beautiful.cloud:HTTP response text: {"code":"1000","msg":null}
DEBUG:midea_beautiful.cloud:HTTP response: {'code': '1000', 'msg': None}
midea_beautiful.exceptions.CloudError: Midea cloud API error: None (1000)

I'm not sure is this really an error or normal response for no capabilities

I saw also Creating DehumidifierAppliance in the log for an Air Conditioner for Comfee Cool 7000-1

TA2k avatar Jul 02 '22 21:07 TA2k

 File "/lan.py", line 788, in identify
    responses = self._status(cmd, cloud if use_cloud else None)
  File "/lan.py", line 538, in _status
    responses = cloud.appliance_transparent_send(self.appliance_id, data)
  File "/cloud.py", line 526, in appliance_transparent_send
    response = self.api_request(
  File "/cloud.py", line 302, in api_request
    self.handle_api_error(int(payload[error_code_tag]), payload["msg"])
  File "/cloud.py", line 645, in handle_api_error
    handler()
  File "/cloud.py", line 630, in cloud_error
    raise CloudError(error, message)
DEBUG:midea_beautiful.cloud:HTTP response: {'code': '1000', 'msg': None}
Traceback (most recent call last):
  File "/usr/local/bin/midea-beautiful-air-cli", line 33, in <module>
    sys.exit(load_entry_point('midea-beautiful-air==0.9.12', 'console_scripts', 'midea-beautiful-air-cli')())
  File "/cli.py", line 340, in cli
    return function(args)
  File "/cli.py", line 143, in _run_status_command
    appliance = appliance_state(
  File "/lan.py", line 1031, in appliance_state
    appliance.identify(cloud, use_cloud)
  File "/lan.py", line 816, in identify
    self.refresh(cloud if use_cloud else None)
  File "/lan.py", line 381, in refresh
    responses = self._status(cmd, cloud)
  File "/lan.py", line 538, in _status
    responses = cloud.appliance_transparent_send(self.appliance_id, data)
  File "/cloud.py", line 526, in appliance_transparent_send
    response = self.api_request(
  File "/cloud.py", line 302, in api_request
    self.handle_api_error(int(payload[error_code_tag]), payload["msg"])
  File "/cloud.py", line 645, in handle_api_error
    handler()
  File "/cloud.py", line 630, in cloud_error
    raise CloudError(error, message)
midea_beautiful.exceptions.CloudError: Midea cloud API error: None (1000)

TA2k avatar Jul 11 '22 17:07 TA2k

@nbogojevic Do you plan to change this or should I change the way of updating?

TA2k avatar Jul 18 '22 09:07 TA2k

@nbogojevic Do you accept a PR to solve the issue?

TA2k avatar Sep 10 '22 19:09 TA2k

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jan 27 '24 01:01 github-actions[bot]