Hey guys,
since a more or less long time i am trying to develop a custom component using or better saying trying to use other custom components and changing them.
The process how to develop a custom component was described ok in this guide: Custom Sensor Component — ESPHome but like there is said its deprecated. So and developing a custom component using external component, described here: External Components — ESPHome is not described very well. Is there a tutorial how a custom component is developed or its process is described? There are so many things which are unclear to me.
Thank you very much!
This might help:
Unfortunately zenzay42’s skips the steps in the procedure and instead focuses on the specifics of his project. There is more to it than just copying a custom component .h file to a new directory structure and referencing it a YAML file. I assume this is easy for a developer that is very knowledgable about both implementations. It would be great if someone would walk us through it before Custom Components are depricated.
Yes exactly, i would be glad if someone could explain more or less the procedure as TLCary says.
Agreed, I am running into the same problem
Thanks for the direction. I’ll take another shot at moving mine to the new format. Along the way I’ll try to write some much needed documentation.
Esphome developer documentation is still rather sparse, especially concerning the python portion of the system and how it is used to build c++ code.
There’s another thread here discussing this and similar issues.
I’ve developed an external component to provide dynamic cron functionality to esphome, and I’ve recently added unit testing and docker scripts to the dev branch that set up a basic development and testing environment using tools on the esphome/esphome docker image. One of my goals with this component, besides the cron functionality, is to demonstrate one possible (and hopefully simple) developer process for creating esphome external components.