ESPHome  1.15.2
Variables
esphome::setup_priority Namespace Reference

Default setup priorities for components of different types. More...

Variables

const float BUS = 1000.0f
 For communication buses like i2c/spi. More...
 
const float IO = 900.0f
 For components that represent GPIO pins like PCF8573. More...
 
const float HARDWARE = 800.0f
 For components that deal with hardware and are very important like GPIO switch. More...
 
const float DATA = 600.0f
 For components that import data from directly connected sensors like DHT. More...
 
const float PROCESSOR = 400.0
 For components that use data from sensors like displays. More...
 
const float WIFI = 250.0f
 
const float AFTER_WIFI = 200.0f
 For components that should be initialized after WiFi is connected. More...
 
const float AFTER_CONNECTION = 100.0f
 For components that should be initialized after a data connection (API/MQTT) is connected. More...
 
const float LATE = -100.0f
 For components that should be initialized at the very end of the setup process. More...
 
const float HARDWARE_LATE
 Alias for DATA (here for compatability reasons) More...
 

Detailed Description

Default setup priorities for components of different types.

Components should return one of these setup priorities in get_setup_priority.

Variable Documentation

◆ AFTER_CONNECTION

const float esphome::setup_priority::AFTER_CONNECTION = 100.0f

For components that should be initialized after a data connection (API/MQTT) is connected.

Definition at line 20 of file component.cpp.

◆ AFTER_WIFI

const float esphome::setup_priority::AFTER_WIFI = 200.0f

For components that should be initialized after WiFi is connected.

Definition at line 19 of file component.cpp.

◆ BUS

const float esphome::setup_priority::BUS = 1000.0f

For communication buses like i2c/spi.

Definition at line 13 of file component.cpp.

◆ DATA

const float esphome::setup_priority::DATA = 600.0f

For components that import data from directly connected sensors like DHT.

Definition at line 16 of file component.cpp.

◆ HARDWARE

const float esphome::setup_priority::HARDWARE = 800.0f

For components that deal with hardware and are very important like GPIO switch.

Definition at line 15 of file component.cpp.

◆ HARDWARE_LATE

const float esphome::setup_priority::HARDWARE_LATE

Alias for DATA (here for compatability reasons)

◆ IO

const float esphome::setup_priority::IO = 900.0f

For components that represent GPIO pins like PCF8573.

Definition at line 14 of file component.cpp.

◆ LATE

const float esphome::setup_priority::LATE = -100.0f

For components that should be initialized at the very end of the setup process.

Definition at line 21 of file component.cpp.

◆ PROCESSOR

const float esphome::setup_priority::PROCESSOR = 400.0

For components that use data from sensors like displays.

Definition at line 17 of file component.cpp.

◆ WIFI

const float esphome::setup_priority::WIFI = 250.0f

Definition at line 18 of file component.cpp.