Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't use this, personally, but it strikes me as a fantastic idea. I made a sensor board and wrote my own firmware for it, maybe I'll see if I can easily configure ESPhome to run on it.

The only thing I'd need that my thing already has is pull-based OTA updates. Right now I just copy a firmware to a folder, and all my sensors around the house automatically update to that firmware via an HTTP server. With ESPhome, I'd have to push the update to each sensor separately, which is tedious when you have tens of them.



> I don't use this, personally, but it strikes me as a fantastic idea. I made a sensor board and wrote my own firmware for it, maybe I'll see if I can easily configure ESPhome to run on it.

I've done pretty much the same, but last I looked there were very few resources (other than reading the code for the ESPHome project) to help on creating custom firmware for a new board with multiple sensors. It seemed easier and faster to simply write the firmware to talk to a simple backend.

I'm also curious about how they get the code for esp32 devices to fit: on a device with 4MB flash, you effectively have a 1MB program limit if you want OTA (which you do). A simple program that does nothing but make calls to the libraries for GPIO, ADC, UART, Wifi, https, https server, interrupts, FreeRTOS, mqtt, nvs, chip info, logging, OTA and functions in the standard library (scanf alone uses 30kb) already takes you over the 1MB limit.

Compiling with all the logging turned off can get you a roughly 800kb program, which is still close to the limits considering that doesn't include program logic.

I'll have to look at this again when I next require some remote monitoring thing.


The web interface has an 'update all' button thats just as convenient. I find if theres ones i want to not update i just temp break their yaml file with an unexpected keyword and it fails to compile and then update.


Hm, I wasn't aware of this web interface. Is it some sort of management panel? Do I have to deploy it on prem?


I think he's talking about the ESPHome web app - it's a Python app you run on a server which provides a web-based IDE to manage your ESPHome devices.

To be clear, it is not hosted by the ESPHome devices themselves, it's a separate component.


Maybe fewer bugs and need to make changes with this?

I have a fair number of esp devices with temp probes around the house, and I’ve been meaning to switch to esp home so I have less code to maintain


Yeah, definitely fewer bugs. Hopefully I won't mind the decreased flexibility, but the lack of HTTP updates really hurts.


You should give it a try. ESPHome is super convenient. Especially the fact that you can flash them from a browser initially and over the air after that


This is coming in the next release.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: