midea-ac-py icon indicating copy to clipboard operation
midea-ac-py copied to clipboard

Support for Direct LAN Serial Communication

Open bfranske opened this issue 2 years ago • 5 comments

Describe the solution you'd like (描述需求) I have replaced the Midea WiFi dongle with my own ESP8266 which acts as a serial bridge. I would like the midea-ac-py software to support serial communication with the Midea unit without any of the stuff needed for the Midea dongle (no ID/key/token). Instead you only need to know the IP and port number to the serial bridge. This type of thing exists for node.js in https://github.com/reneklootwijk/node-mideahvac/ as the "serialbridge" communication method.

bfranske avatar Aug 28 '22 03:08 bfranske

Why not use ESPHome instead? A Midea component already exists and is likely compatible with your dongle.

mill1000 avatar Aug 29 '22 15:08 mill1000

Because it's overly complex for what I want to do?

bfranske avatar Aug 29 '22 16:08 bfranske

It's really not. It's a few lines of YAML to configure, build it, flash it and add the node to HA. Easy.

I've got a config laying around I can post later today,

mill1000 avatar Aug 29 '22 16:08 mill1000

I mean the architecture is overly complex creating custom firmware per device, etc. It's just not my preferred design architecture. Also, I want the ability to read and write to the unit from outside of HA too.

bfranske avatar Aug 29 '22 16:08 bfranske

I mean the architecture is overly complex creating custom firmware per device, etc.

More complex than writing your own firmware? 🙄

This project midea-ac-py is a Home Assistant integration. Your request would be better suited for the underlying library midea-msmart that handles the communication.

mill1000 avatar Aug 29 '22 16:08 mill1000