Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA Update #47

Closed
corgan2222 opened this issue Sep 20, 2021 · 7 comments
Closed

OTA Update #47

corgan2222 opened this issue Sep 20, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@corgan2222
Copy link
Contributor

Your last update with HA Autodiscory and distance change via MQTT works great! But some of my devices are placed in not so easy to access places.
So it would be great to have the possibility to update via OTA. Would this be possible?

@corgan2222 corgan2222 added the enhancement New feature or request label Sep 20, 2021
@DTTerastar
Copy link
Contributor

I support both OTA via an auto download from github releases as well as connecting via arduino ota update. If you use the ".bin" from github (except the -noupdate flavor) it'll automatically download and keep itself up to date. Sometimes one or two of my devices takes a bit longer to update, not sure why. I suspect it fails until it WDT reboots and then it works. ESP32 isn't the most robust of environments, the WDT papers over any bugs in the platform...

@corgan2222
Copy link
Contributor Author

Ahh actually I had no idea how the OTA update works.
But I found the documentation, so I could update the nodes. But I can't change the settings after the initial setup.
The "erase Flash" Option in PlatformIO does not work.

Maybe it would be nice, if you could write a little info about how to update and reset the ESPs.

And as I wrote in my PR, I could not found any version Information. I don't want to change too much in your code to implement it. But it would be cool to have a version number, so that Home Assistant can notify the User if a new Version is released, like for Zigbee or Hue Devices.

@DTTerastar
Copy link
Contributor

If you install it manually it has no version and doesn't autoupdate. Install it from here: https://espresense.com/install and it'll auto update and will show the version

@corgan2222
Copy link
Contributor Author

Ok, understand. :)

@spelech
Copy link

spelech commented Oct 12, 2021

Not trying to dig up a closed issue, but could you add some instructions on using ArduinoOTA if you have some? The Arduino IDE appears to only support OTA if you compile the project in that IDE, I couldnt find a way to use a binary compiled using platformio

@DTTerastar
Copy link
Contributor

DTTerastar commented Oct 12, 2021

With platform.io you just add this to your platformio.ini:

[env:myenv]
upload_protocol = espota
upload_port = IP_ADDRESS_HERE or mDNS_NAME.local

@DTTerastar
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants