Is it possible to update selected ESPHome nodes programmatically?
I have a lot of nodes so have two choices:
update all, which makes it difficult to find a suitable time and seems to fail more often than not
update them manually, which is a real pain!
So what I’m envisaging is creating lists of nodes and automating their updates from a manual trigger. I have no idea if this is possible, hence the question!
Thanks, @nickrout - that is helpful but unfortunately I don’t have the skills or confidence to start ‘playing’ with Docker. I was hoping for something within the Hass or ESPHome GUI.
Longer-term, I’ll set up a test HASS instance and experiment.
Perhaps I’m not expressing myself or understanding clearly.
What I understand is that to work with ESPHome through the command line I would have to:
enable the SSH & web terminal add-in on HASS (I have it installed but keep it disabled until needed)
remove protection mode to allow access to Docker (that already makes me a bit nervous)
connect to the terminal through the GUI
run the docker commands
So far, so good. I’ve done all the above so know it works - but, as stated, am a bit nervous due to the privileged access it gives to the underlying Docker etc. and the knowledge that I don’t know much about how that all works so could break my instance of HASS.
Putting that aside, I can now run individual commands to update individual nodes but how would I automate this? I presume I’d have to create scripts of some type and run those? Do you have examples you can share, please?
As I said earlier - I’m happy to learn and experiment but am very mindful that doing so on a production instance is not a great idea. It’s why I plan to set up a test / development box to play with.