ESPHome  2024.11.0
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 BLUETOOTH = 350.0f
 
const float AFTER_BLUETOOTH = 300.0f
 
const float WIFI = 250.0f
 
const float ETHERNET = 250.0f
 
const float BEFORE_CONNECTION = 220.0f
 For components that should be initialized after WiFi and before API is connected. More...
 
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 compatibility 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_BLUETOOTH

const float esphome::setup_priority::AFTER_BLUETOOTH = 300.0f

Definition at line 22 of file component.cpp.

◆ 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 27 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 26 of file component.cpp.

◆ BEFORE_CONNECTION

const float esphome::setup_priority::BEFORE_CONNECTION = 220.0f

For components that should be initialized after WiFi and before API is connected.

Definition at line 25 of file component.cpp.

◆ BLUETOOTH

const float esphome::setup_priority::BLUETOOTH = 350.0f

Definition at line 21 of file component.cpp.

◆ BUS

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

For communication buses like i2c/spi.

Definition at line 16 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 19 of file component.cpp.

◆ ETHERNET

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

Definition at line 24 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 18 of file component.cpp.

◆ HARDWARE_LATE

const float esphome::setup_priority::HARDWARE_LATE

Alias for DATA (here for compatibility reasons)

◆ IO

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

For components that represent GPIO pins like PCF8573.

Definition at line 17 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 28 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 20 of file component.cpp.

◆ WIFI

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

Definition at line 23 of file component.cpp.