At the moment, I have a test and a prod HA instance each with their own NodeRed instance. I have 1 MQTT broker.
I may set up a new ESPHome device starting in the “test” dashboard. I’ll get it working with devices, automations, and node red flows. I’ll then want to move the ESPhome device, YAML and dashboard to my production HA instance along with the production automations and Nodered flows. No hardware will change, just which instance I want to manage the ESPHome device. All my ESPHome devices are on DHCP with allocated ips.
What’s the best thing to do to move it? Should I just create the new device in “prod” copy and paste the YAML across from “test”, and then delete the device in “test”? Is there a way of disabling it in “test” rather than deleting it?
ESPHome devices work in a different way to what you might expect. The device itself is the server and Home Assistant is the client this enables multiple clients to connect to the ESPHome server
Thank you, Esphome as the server just clicked for me!
So I can have esphome devices configured on the dashboard of both ha instances at the same time and showing as online. This is great!
Presumably I just need to keep track of which code I’ve uploaded to the device from which ha instance.
Is there anything that could help with this? An indicator on the dashboard that compares a checksum perhaps whether the running firmware matches the code saved on the dashboard editor?
That’s possible too but not what we ment (and certainly nothing I would recommended).
No, and that’s because it’s a bad idea
The esphome Dashboard is enough to have it installed on one instance. But as you were told you can “register” the esphome nodes (via “integrations”) on more then one ha server in parallel.
Never seems to slow them down in my experience.
I just tested with/without the web server on an 8266, using ESP.getFreeHeap()
(there are other memory metrics to consider also, but this call was quick and easy to test with)
I have the web server enabled on all of my ~50 esphome thingies (including the 1mb versions of esp82xx). No problems with “average” yamls from my point of view.
Thanks! What sorts of things are you serving over HTTP? I imagine connecting to the device to see the values of whatever sensors it’s supporting, and maybe some statistics like CPU, Memory and Network. Is there a generic web page that gets set up or do you design each one from scratch?
That’s it essentially. You can also control your switches and buttons and see a live feed of the (serial) log. It also includes the possibility of uploading a new bin.
You can use your own CSS and js but I always go with the default because it’s in anyway only a safety net which I rarely use.