@metaljay
I’m not up to my game today, sorry. What I totally oversaw was, where did you install ESPHome? On your Home Assistant server I guess, right?
So you have the following setup (please fill in):
You have a _______ to run Home Assistant (a RaspberryPi, a XY)
You run Home Assistant OS on that computer? _____ (yes/no)
Here you installed ESPHome as an AddOn? _____ (yes/no)
What does the web server show, is it possible to get some more info here? Maybe you could make some screenshots of the page(s). I’m quite sure, the web server should be able to offer some possibilities to upload a new firmware. If so, we can built a “new” firmware in ESPHome (in your AddOn) and flash it over the now used firmware via the webserver.
Anyway, I think, we don’t need the Mac here, just to get to a web page, but nothing more.
If the web server is running on the dongle, we should be able to get the data we need from it. And this data we use to setup the dongle as a new device in ESPHome. Could work, I guess…
i meant, the unit does not answer back (the esp sends (tx), but the ac doesn’t respond (rx)
I’de suggest to change gpio’s back to as they where, and check to usb2header connection for bad contact.
Ofc. it could also be that the esp12 simply is malfunctioning….
i noticed gpio4 and 5 are available on the pins on the back, you could try it with that ones by connecting it to brown and orange wires (or swapped)
In my opinion, this is going the wrong way. I’d prefer a more basic approach, where we set up the dongle in ESPHome and flash it with a “ESPHome” firmware from your server.
But to give a good advise, I’d really need to know how your setup is. That ESPHome can’t detect your own firmware isn’t a good sign, and makes me guess, something else might be wrong…
This doesn’t sound to me, as it would be working with ESPHome(HA). The firmware is created, downloaded to a PC/Mac and uploaded via integrated web server. ESPHome should at least get the device, maybe with errors, but it should still get it.
That’s why I was asking last night for the setup. And how, in general, is worked with the system. For me, it sounds like the “usual” approach from people asking for support - we click, we do that, we adjust there. In my experience there is a point where useful things get buggy, when people “try for their own”. In Germany we call that “blind actionism”. It’s not important what we do, as long as it looks like we are doing something.
That being said, I’m a fan of starting with the basics. ESPHome must be running without errors, next step, the dongle must be recognizable, and then I’d start with a minimal setup, like OTA and wifi and work my way upwards. For now, we can’t rule out any general problems with ESPHome and the connections there in. Might very well be, that everything is all right and woking as it should, but I personally like to check that before I go deeper. But that’s me, maybe all these years in IT support have made me more suspicious than I’d need to be.
INFO Reading configuration /config/esphome/midea-ac-4b6861.yaml...
Failed config
packages: [source /config/esphome/midea-ac-4b6861.yaml:4]
edit/main/midea_ac.yaml does not exist in repository.
lizardsystems.midea_mini_dongle: github://lizardsystems/midea-mini-dongle/edit/main/midea_ac.yaml
So I edit the config and copy and paste the setup from here and leave all values as in the link.
I then get this error:
Which suggests I need to assign static IP. (192.168.1.34)
Back to the config and I add my fixed IP, then ‘refresh’ the config which completes, but im just left with output and it never finishes…
If I change the TX and RX around (1 and 3) I still get the same…
INFO Starting log output from 192.168.1.34 using esphome API
WARNING Can't connect to ESPHome API for 192.168.1.34: Timeout while connecting to ('192.168.1.34', 6053)
If I connect to the dongle via the web, I can see it IS able to view the state correctly as its reading the temperate but nothing within ESPHome
No, it suggest there is something wrong with multicast dns on you netmask, but nothing wrong with using a static IP.
(But even better would be to use a IP reservation on you DHCP server, which probably runs on your router)
I am a bit confused here, which output and what never finishes exactly?
I assume the screenshot from web is with original gpio assignment?
That actually looks very good, and gpio’s are both correct.
This is how the log in esphome should look like too…
So maybe it is as Paddy suspected, something is wrong with esphome setup.
This could also be related:
INFO Starting log output from 192.168.1.34 using esphome API
WARNING Can't connect to ESPHome API for 192.168.1.34: Timeout while connecting to ('192.168.1.34', 6053)
Maybe better to start from scratch (sort of)
secure the yaml you have now (the one from working web interface), this config should work for you
delete the midea integration from esphome (goto devices and services / esphome / midea-ac, hit the three dots and delete)
if this is the first (and only) esphome device, maybe even delete and and reinstall the esphome addon
add a new device to esphome addon with the secured yaml
OTA probably doesn’t work so choose Manual download Install it yourself using ESPHome Web or other tools; this will compile the bin and you will be able to download it,
Using the web interface on 192.168.1.34, select the new bin files to update the dongle
I’d do it a little different, as my suspicions is, the IP is already in use by the original dongle firmware. So if you now try to connect, it won’t work, as the new firmware can’t get through.
But that’s just a guess.
In addition what @aceindy said, take note of these:
Disable the auto discover for ESPHome, no need right now, if you want it, you can enable it after everything is running
Note the IP of the dongle with this firmware. If you can set the IP to static, do it.
Use fixed IP settings in ESPHome for this device.
Disable mDNS in the settings for this device
Setup a new firmware, where you just work with the minimum necessary for the AC to run. Most things are auto-discovered in the device, and for now, we only need it to run with the basics, the rest comes later.
If you’re not sure, ask before you do it
And if you have to report errors, we need to know some basics from exactly that time. So please include the following infos:
what version is running on the dongle? Still the original or one of a newly created.
which IP is assigned in the router and is it correct
can you ping the device from your Mac?
We’ll see, but I think we’re very close to bring this to a good end!