nbogojevic / midea-beautiful-air

Python client for accessing Midea air conditioners and dehumidifiers (Midea, Comfee, Inventor EVO) via local network
MIT License
107 stars 18 forks source link

MSmartHome Error 1000 on cloud status request #37

Open VladislavEkimtcov opened 3 weeks ago

VladislavEkimtcov commented 3 weeks ago

The request that the library builds for a status read/change is not accepted by the MSmartHome Midea cloud service, which responds with Error 1000. I would presume this indicates an invalid request. Any ideas on how to fix this?

The URL it is attempting to reach is 'https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/appliance/transparent/send'

I would gladly continue using the Midea Air app, but they seems to purposefully throttle it at 8pm Central. Insane.

Basic example:

from midea_beautiful import appliance_state, connect_to_cloud
cloud = connect_to_cloud(
            account="@gmail.com",  # Account e-mail
            password="pass",  # Account password
            appname="MSmartHome"
        )

appliance = appliance_state(
    cloud=cloud,  # Account e-mail
    appliance_id='15173260*********',  # Appliance id obtained from Midea API
    appliance_type='ac',
    use_cloud=True,
)
print(f"{appliance!r}")

This will fail with Error 1000.

VladislavEkimtcov commented 3 weeks ago

If you like to think of this library in terms of CLI, here is an equivalent command that fails:

midea-beautiful-air-cli set --running True --id 15173260********* --cloud --account @gmail.com --password pass --app MSmartHome

I do everything correctly. The login and pass are correct. I specify the correct app and pass --cloud. No cigar :(