dudanov / mideauart Goto Github PK
View Code? Open in Web Editor NEWA library for controlling Midea home appliances using the UART protocol.
A library for controlling Midea home appliances using the UART protocol.
Any plans of making this library compile in ESPHome with Libretiny (BK7231N/T)?
This is what I get when I try:
|-- MideaUART @ 1.1.8
Compiling .pioenvs/hpx/lib754/MideaUART/Appliance/ApplianceBase.cpp.o
Compiling .pioenvs/hpx/board_generic-bk7231n-qfn32-tuya/generic-bk7231n-qfn32-tuya.c.o
Compiling .pioenvs/hpx/arduino_api/api/Common.cpp.o
.piolibdeps/hpx/MideaUART/src/Appliance/ApplianceBase.cpp:6:10: fatal error: ESP8266WiFi.h: No such file or directory
6 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
Compiling .pioenvs/hpx/arduino_api/api/IPAddress.cpp.o
*** [.pioenvs/hpx/lib754/MideaUART/Appliance/ApplianceBase.cpp.o] Error 1
Do you plan on extending esphome's midea component functionality? For example, clean mode button, silent mode(low freq compressor on inverters, lowest speed fan on classic on/off), swing on/off (direct is already implemented)?
Also if i wanted to get complete data dump how should i do it in esphome?
Not sure if this is the best place to ask, but was wondering if the UART interface offers any additional information than what is exposed here?
Mainly I was wondering if there is any state information about the compressor. This seems to expose that the heat pump is in heat mode but is there anything to indicate its defrosting or the level at which the compressor is operating?
Hi,
Sorry to create an issue which is not really an issue.
I'm looking for the raw IR commands for a Mobile Coffee AC.
I thought since your created this you should have them or at least some way of generating them.
Long story short id like to have those to create a HomeKit compatible IR Blaster.
I'm looking everywhere for them but couldn't find any on the web or other projects.
Any help is appreciated
please feel free to close this issue since it not really an issue
Hi @dudanov, I felt like getting a dongle from you (and not some clone that uses your sources and don't even release the source of their firmware) as I see that you did a lot of work on this air conditioning thing, but the link is down.
Hi Sergey, first of, thanks for this code and for the IOT dongle, really great.
Could you please helpme with the simple.ino file you upload as an example?
I'm trying to do a test sketch with a menu to be entered using GPIOs or even serial console and trigger the different actions this code is able to.
I don't understand what the ac.loop() does and how to set an action on the loop section to for example turn a device on or off, or change the mode.
Thanks in advance
Fede
Discovered some interesting data available using the Inquiry mode on the remote. - select field number on remote and data is shown on the display. Data includes operating temperatures, fan and compressor speeds and others. I am interested in T3 - the outside coil temperature. I have no interest in power and was wondering if it would be possible to replace the power request query with something that would return T3. Any ideas on a possible TX string?
I have seen many useful capabilities in Capabilities.h.
Can I call/use/set capability? For example I want to use "oneKeyNoWindOnMe" mode.
Thank you.
Hello,
First of all, many thanks to you for this MideaUART library !
I have a Midea Xtrame Save Pro AC, and i would like request a status report from the AC. This means, i wanna get the actual status.
-Power status
Somehow for me does not working the function "onStatusEvent(ACevent)" . The AC whit this is doing nothing.
Not stepping inside the ACevent.
So i do not know this onStatusEvent will solve my request or not ?
Now I am testing with an WeMos D1 R2
I had need lot of comment out line in the mideaAC.ccp like this:
//#ifdef AC_DEBUG_RAW
because, with the WeMos D1 (ESP12) I did not see the RAW data.
Now i can see, but yep, i just see, not able process :(
Thank you for your support !
Hello,
This library is well-written and understandable. I tested it with a Fisher-branded split AC, and it works well.
The only thing I cannot figure out is how to switch on the Wi-Fi symbol on the AC's display.
By looking at this other library: https://github.com/Links2004/arduinoMideaAC, there is a method called:
void acSerial::send_status(bool wifi, bool app);
This sends a specific message sequence to enable/disable the Wi-Fi symbol. I tested it with the AC.
I would like to do the same with this (MideaUART) library, but I am still struggling to identify the right method to call.
Thank you
I have a senville mini-split which is rebranded Midea. (https://senville.ca/9000-btu-mini-split-air-conditioner-senl-09cd/)
After following a long thread with the Esphome component I built the dongle and its working great.
However Power usage is reported as 0 (my unit may not have power sensor). Its also mis-detecting the fan swing as horizontal+vertical but my unit only has vertical. There is also a few other mis-detections I think.
I stumbled across this post https://community.home-assistant.io/t/midea-branded-ac-s-with-esphome-without-cloud/265236/789 which mentions on some devices the power usage may be in a different location.
the code is here
Which eventually led me to https://github.com/reneklootwijk/midea-uart/blob/main/src/B5_parser.cpp
I think on my unit the B5 results may not be lining up with the code in this repo.
Here is the B5 request and response
[0;36m[D][ApplianceBase:162]: TX: AA 0E AC A2 00 00 00 00 00 03 B5 01 11 8E 4C
[0;36m[D][ApplianceBase:063]: RX: AA 29 AC 00 00 00 00 00 03 03 B5 07 12 02 01 01 13 02 01 01 14 02 01 01 15 02 01 01 16 02 01 01 17 02 01 00 1A 02 01 01 DE DB
Ive put spaces where i think the different capability ID's are split up.
Has anyone come across this ?
Any idea what I can try to see if this is the issue on my unit?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.