There are diferent resources for creating components for ESPHome. ESPhome architecture documentation provides a high level description on how to create a simple component. It also links to examples in a repository. The examples provided describe simple components and some complex ones, using inheritance, for example to create a binary_output component out of a binary_sensor...
"Creating external components for ESPHome"Seguir leyendo