Coder Social home page Coder Social logo

dudanov / mideauart Goto Github PK

View Code? Open in Web Editor NEW
49.0 7.0 18.0 156 KB

A library for controlling Midea home appliances using the UART protocol.

C++ 100.00%
midea iot home-automation control air-conditioner serial protocol electrolux qlima artel

mideauart's People

Contributors

andrasbiro avatar dudanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mideauart's Issues

Libretiny

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

Discussion about ESPHome midea component

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?

Question around heat pump state info

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?

RAW code

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

Tindie link down

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.

Arduino sketch with menu to test the functions

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

Access other data

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?

How to call capability

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.

Receive status from AC

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

  • Mode (Cool, Heat, Fan, etc..)
  • Temperature, what was the target
  • etc
    Is this possible ?

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 !

Switching on/off the Wi-Fi symbol on the AC's display ?

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

Possible issue with Capabilities Detect request parsing

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

float StatusData::getPowerUsage() const {

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.