Skip to content

esphome/starter-components

 
 

Repository files navigation

ESPHome Logo

ESPHome starter components

This repository contains a number of examples in the form of empty components which can be used as templates to quickly develop your own (external) components for ESPHome.

How to use the examples in this repository

All examples are in the components directory of this repository. The test_empty_components.yaml file contains configuration examples for the various components.

The easiest way to develop components/platforms for use within ESPHome is to use external components. To use a particular component from this repository for your project:

  1. Create an external_components directory in your ESPHome configuration directory (the directory where your .yaml files are located).
  2. Copy the directory (and all of its contents!) of an empty component into your external_components directory. You should end up with something like this: external_components/empty_sensor/
  3. Find the configuration entry for the empty component in test_empty_components.yaml and copy it into your own .yaml file.
  4. Compile with esphome compile your_config.yaml where your_config.yaml is your own .yaml file.
  5. No errors? Great! You can now start modifying the empty component to turn it into your own (external) component.

Going further

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

  • C++ 59.1%
  • Python 40.9%