The Athom wall switch integrates with Home Assistant like a champion using Esphome. However, this leaves me right where I was without Esphome. Athom’s proprietary firmware, not open source, so I cannot reflash the wall switch with a modified version of Athom’s firmware.
I thought I would be able to download the Athom yaml file from github, modify it, and flash it. I cannot. After a bunch of yellow warnings, the install fails. The Home Assistant Esphome interface won’t even install the yaml file left after integration of the Athom switch with Home Assistant.
I read about using web server OTA and the firmware.bin file, but I can’t locate a single “.bin” file on the HA Blue or my windows desktop. I would like to eliminate web server OTA altogether and give the little 8285 a break; it worked great for integration when you can’t hard code wifi information, however.
Struggling with this question I must admit. Athom stuff isn’t closed, it’s ESPhome flashed if that’s what you ordered (or tasmota). The yaml is all available both on their product pages and the GitHub and in addition they are very helpful with tech support. What product are you specifically having issues with?
You can compile the bin if you take the manual install option and it prompts you to download it. You can then use this on the OTA and that works just fine. Can only assume you have an error in the yaml, post it up and we can look.
I tried to update the wall switch with an Esphome firmware update just minutes ago, but it fails. All return the following error after what must be four or five pages of yellow warnings during the install.
collect2: error: ld returned 1 exit status
*** [/data/kitchen-wall/.pioenvs/kitchen-wall/firmware.elf] Error 1
========================= [FAILED] Took 55.89 seconds =========================
Hello. From your ESPHome dashboard create a profile for your switch. Then create your desired yaml file and then in the corner of your edit screen you install. You will select the manual download and then legacy file, and it will compile and download a .bin for you. Then go to your Athom device web site and select the OTA box. It will ask you for a file to upload. Use the .bin you have created and previously (in the last step) downloaded
If this fails at any point, can you be really clear what the problem is. I have two Athom (preflashed) home plugs in front of me. All working perfectly (it took me a while to work out how to do it)
The wireless doesn’t work, but now I see the manual download route (I had no idea that was what people were writing about). I’m trying that, and I’ll let the post know the outcome. If it fails, I’ll post all the logs. The above yaml files and the three same errors were from trying the “Wirelessly” selection.
Thanks everyone. I’ve been working on this for hours, but what else do I have to do that’s so much fun with the right amount of frustration.
I seem to remember that I couldn’t do that on the first yaml. I think the problem was that it is before the profile is already set up in ESPHome. After that first flash they appeared in the dashboard. However, wireless if you can!
I tried a manual, modern and legacy compilation of the yaml file left over after integrating the Athom switch, but this too failed just like all the “Wirelessly” attempts. How can I have a compilation failure on a device already installed, and you are uploading the exact same yaml file? I can’t upload the log as it is over 149,000 characters, and the post is limited to 32,000.
I have a second wall switch i’ll try. I’ll integrate it and see if I can install my own yaml file.
Hello this does not match my experience. Consequently I don’t understand.
I first had to create a brand new yaml file. I downloaded the template (there is a reference website where you can copy it from). At this point the Athom device is not integrated. I then compiled and created the bin file
Have you done that? Did it work? Can you see a new bin file? Were there errors. Screenshot of compiling if it failed. Let’s see the red bits
How are you uploading? Did you find the web site for the device. Was the ip address for it clear? Did the OTA work. So what I mean by that is; did you use the web site interface rather than the wireless upload.
How do you know it is the exact yaml ? I thought you couldn’t access it? I was never able to access the original yaml; so I am not clear how you are?
More and clearer information please. I have my Athom devices in front of me and ready to test.
I did a factory reset of the Athom wall switch with the switch’s web server, and then adopted the Athom a second time in HA, Esphome.
I had the procedure or protocol wrong. First, adopt the Athom device. Then modify the yaml file you want to upload, download, or “install” using Esphome jargon, to the Athom device. DO NOT install the default yaml file generated by the adoption. Once you have the personalized and modified Athom yaml file you want, or the one you want to start with, then do the first OTA install from HA, Esphome.
Athom is going to work for me with the software flexibility. Out of all the hardware on Aliexpress, I think Athom is a winner for HA and Esphome.