i test the new “Managed Updates” Feature, so automate the updates for my ESPHome devices.
I have a json File with the md5 and the binary. Accessable through http and https.
This works, the device (inkplate6 in my case as a start) on boot loads the json file or pulls it through http, but then nothing happens, no update.
I think, i miss something, thats unclear in the docs (for me)
Same here. I set up my files and changed my yaml. I can see that it “reads” the json and/or bin file (I think - I see an http request), but then nothing happens. Yes, the documentation is not clear enough.
It is a pity, as this will help me a lot if I can get it working as I have some yamls that won’t compile on my old Raspberry Pi 3 and I am not close to it - so I have to compile and update remotely. I created a python script that handles nearly everything (update esphome cli, compile selected yamls, create new json and md5 files for compiled yamls, and then uploads bin, json and md5 files to GitHub).
I could not get managed updates via http request to work. I read through all online documentation on the topic and related topics. I even tried to look through the source code etc.
As a last resort I forced it to update, but then it kept telling me, “[E][http_request.ota:262]: URL is invalid and/or must be prefixed with ‘http://’ or ‘https://’ and [E][http_request.ota:047]: URL not set; cannot start update”
This was bogus, as I checked all my URLs (paths etc) multiple times and even tested the links manually - all were correct and working and accessible.
I ended up using “ota.http_request.flash” that I manually trigger by a pin set up as a binary switch. So, I can still remotely compile my yaml file, but the update on the node has to be triggered by me as it never could pick up from the manifest.json file that there was a new version available.
Hi @ynnor666
I got mine to work, but only on my esp32 node and not on my esp8266 node.
New firmware is picked up and Home Assistant shows it. I can then update it like any other updates via HA, but then the firmware version that is displayed is the ESPHome version number and not my firmware version number. So not perfect, but at least I can update it.