ESPHome – Connect ESP32 with Sensors to HomeAssistant
In addition to enjoying esphome for the ease of use and solid integration with Home Assistant, I find the technical underpinnings interesting.<p>- Users produce yaml describing a microcontroller connected to (sensors, inputs, outputs, networks, services, etc).<p>- A python layer type checks that yaml, and spits out autogenerated C++ code (which can be inspected if desired)<p>- C++ is compiled and installed onto the hardware<p>- future updates can be made OTA<p>- extensible by either writing (hopefully small amounts of) C++ inside yaml (lambdas), or including&#x2F;referencing C++ code (external components)<p>I’m still not positive I like yaml for the DSL, but that might be a personal bias and I’m not sure what an obviously better solution would be.