ttimpe / homebridge-midea

This is a homebridge plugin for Midea AC units.
https://www.npmjs.com/package/homebridge-midea
Other
51 stars 10 forks source link

Eco/Dry/Fan Modes on Midea U Inverter Window AC #17

Open jscanzoni opened 4 years ago

jscanzoni commented 4 years ago

I grabbed two of these a month ago and love them: https://www.amazon.com/Midea-Inverter-Conditioner-Flexibility-Installation/dp/B08677DCKN

I just installed homebridge-midea and am impressed. Wondering if there are any plans to implement "dry" and "fan-only" modes. Dry would be especially helpful as I'm thinking of buying a humidity sensor and building some automation around that rather than temperature.

Additionally, I tend to leave my AC in "Eco" mode, but whenever I change the temperature through Homekit it switches to off.

What's the best way to grab a payload from my units/homebridge/mobile app to find those values to incorporate them?

ttimpe commented 4 years ago

Hello,

because custom operational modes sadly do not exist yet, this was not yet properly implemented.

I just implemented keeping the ecoMode the way it is and a separate fan-only mode as had been suggested and contributed earlier but was removed by me when doing the TypeScript implementation.

If you want to help out, put your phone behind an HTTP proxy and look at all traffic to and from https://mapp.appsmb.com

The payload data can be decrypted using the code in MideaPlatform.ts although I do have separate .ts file locally for de- and encrypting the request and response, which I do plan to make public as soon as it actually works properly.

For now, look in the #development branch for Fan-Only-Mode and the ecoMode fix.

adrianopery commented 4 years ago

The plugin is not working for me. I add the device but nothing happens. The device still not configured. I believe some error is occurring. Looking into LOG... 05/07/2020 19:24:12 The requested platform "midea" was not registered by any plugin. 05/07/2020 19:24:12 Your config.json is requesting the platform "midea" which has not been published by any installed plugins. 05/07/2020 19:24:12 The requested platform "homebridge-midea" was not registered by any plugin. 05/07/2020 19:24:12 Your config.json is requesting the platform "homebridge-midea" which has not been published by any installed plugins.

jscanzoni commented 4 years ago

@ttimpe -- I grabbed the fork from July 5 due to async login not working for me in the latest development branch. Since I don't have an HTTP proxy on my network, is there anything currently in or that could be added to the debug logs which would be useful to share with you?

ttimpe commented 4 years ago

If there‘s a mismatch between „homebridge-midea“ and „midea“, please manually change the platform name in your config to „midea“

adrianopery commented 4 years ago

I changed but still with the same problem...

LOG: 06/07/2020 18:28:57 HOOBS listening on port 8080. 06/07/2020 18:29:00 Loaded plugin "homebridge-camera-ffmpeg". 06/07/2020 18:29:00 Loaded plugin "homebridge-magichome-platform". 06/07/2020 18:29:00 Loaded plugin "homebridge-midea".

Even I changed on Json and restart all, the plugin loaded is the same "homebridge-midea".

Json: "platform": "midea", "plugin_map": { "plugin_name": "midea" }, "devices": [ { "deviceId": "device ID", "supportedSwingMode": "Vertical", "temperatureSteps": 1 } ], "user": "My account email", "password": "password", "interval": 1 }

ttimpe commented 4 years ago

That seems like a valid config. If the plugin still is not loaded, it seems to be a problem of your installation.

krszgabor commented 4 years ago

Ive got the same error message "The requested platform "midea" was not registered by any plugin." A simply node, npm and homebridge update solved the problem.

ttimpe commented 4 years ago

I can confirm this, working on testing pipeline and a fix right now.

ttimpe commented 4 years ago

Fixed with 1.1.1

adrianopery commented 4 years ago

The current version 1.1.2 is registered on my hoobs now, but I can't identify the devices on APP Home. My Midea AC is using today a MSmart app on iphone. How can I do to identify the correct device ID?

ttimpe commented 4 years ago

You don‘t need the deviceId for the plugin to work. Optional settings like the swingMode can be set using the device-specific overrides. The deviceId is presented in the „Serial Number“ field in the Home app.

adrianopery commented 4 years ago

ok. But On my Home app my Midea Acs doesn't appears. I'm not sure if is compatible.

ttimpe commented 4 years ago

Exactly which app are you using to control your devices? Midea Air? Nethome Plus?

adrianopery commented 4 years ago

I'm using MSmart Midea.

adrianopery commented 4 years ago

but anyway, on my iphone I can't see any new device crated by the plugin. Should I see even the incompatibility?

ttimpe commented 4 years ago

If you cannot use Midea Air or Nethome Plus with your account, it is not compatible with this plugin. Try logging in into one of these apps and report back please.

bpengu1n commented 3 years ago

https://github.com/andersonshatch/midea-ac-lib/tree/master/midea Wouldn't this lib provide some of that functionality?