mill1000 / midea-msmart

Python library for local control of Midea (and associated brands) smart air conditioners.
MIT License
36 stars 2 forks source link

Add support for water heaters #110

Open lamerjack opened 4 months ago

lamerjack commented 4 months ago

Not really an issue... This control only air conditiorner? I have a Midea/Comfee water heater that is remotable with smart home app.

mill1000 commented 4 months ago

Only air conditioner for now.

To add support for another device type I need the protocol files and someone to be willing to run tests on the new code as it's developed.

To get the protocol files run:

msmart-ng download <device_ip>

If you're a HA user you may find this integration interesting as it supports more device types: https://github.com/georgezhao2010/midea_ac_lan

lamerjack commented 4 months ago

Unfortunately i don't like HA, i like more Openhab... here the result of the command: rootto@Test:~$ msmart-ng download 172.24.74.68 INFO:msmart.cli:Discovering 172.24.74.68 on local network. INFO:msmart.cli:Found device: {'ip': '172.24.74.68', 'port': 6444, 'id': xxxxxxxxxxxxxxx, 'online': False, 'supported': False, 'type': 226, 'name': 'midea_e2_0584', 'sn': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'key': None, 'token': None} INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False). INFO:msmart.cli:Downloading protocol from cloud. INFO:msmart.cli:Writing protocol to 'T_0000_E2_24.lua'. INFO:msmart.cli:Downloading plugin from cloud. INFO:msmart.cli:Writing plugin to '0xE2_2021122401.zip'

where i can upload the zip file?

ps this command say key and token 'none' but the command msmart-ng discover show correctly key and token i'm not very skilled using python but with the right input i can do tests if necessary.

mill1000 commented 4 months ago

You can either post them to this issue or email them to me.

ps this command say key and token 'none' but the command msmart-ng discover show correctly key and token

This is simply because downloading the protocol doesn't require authenticating with the device. You will need that token and key to actually control the device.

lamerjack commented 4 months ago

0xE2_2021122401.zip

sorry i didn't saw the attach button!

mill1000 commented 4 months ago

Thanks, I also need the Lua file too.

lamerjack commented 4 months ago

Thanks, I also need the Lua file too.

T_0000_E2_24.zip i had to zip it because was not supported as attach

mill1000 commented 4 months ago

Great. Thank you. I've created a branch and put these files there.

Can you provide screenshots of the OEM app?

What functionality are you looking for from the library? e.g.

lamerjack commented 4 months ago

Hi. I'm looking for Just Current water temperature and Target water temperature.... and maybe ON OFF. As attach the screenshots.

screenshots.zip p.s. how to use the branch that you create?

i suppose: git clone -b feature/e2_device --single-branch https://github.com/mill1000/midea-msmart cd midea-msmart python3 -m pip install .

and then?

mill1000 commented 4 months ago

i suppose: git clone -b feature/e2_device --single-branch https://github.com/mill1000/midea-msmart cd midea-msmart python3 -m pip install .

That should do it

and then?

Well I haven't written anything yet, so nothing can be done for now.