|
ESPHome 2025.12.0-dev
|
Default setup priorities for components of different types. More...
Variables | |
| const float | BUS = 1000.0f |
| For communication buses like i2c/spi. | |
| const float | IO = 900.0f |
| For components that represent GPIO pins like PCF8573. | |
| const float | HARDWARE = 800.0f |
| For components that deal with hardware and are very important like GPIO switch. | |
| const float | DATA = 600.0f |
| For components that import data from directly connected sensors like DHT. | |
| const float | PROCESSOR = 400.0 |
| For components that use data from sensors like displays. | |
| 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. | |
| const float | AFTER_WIFI = 200.0f |
| For components that should be initialized after WiFi is connected. | |
| const float | AFTER_CONNECTION = 100.0f |
| For components that should be initialized after a data connection (API/MQTT) is connected. | |
| const float | LATE = -100.0f |
| For components that should be initialized at the very end of the setup process. | |
| const float | HARDWARE_LATE |
| Alias for DATA (here for compatibility reasons) | |
Default setup priorities for components of different types.
Components should return one of these setup priorities in get_setup_priority.
| const float esphome::setup_priority::AFTER_BLUETOOTH = 300.0f |
Definition at line 62 of file component.cpp.
| 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 67 of file component.cpp.
| const float esphome::setup_priority::AFTER_WIFI = 200.0f |
For components that should be initialized after WiFi is connected.
Definition at line 66 of file component.cpp.
| 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 65 of file component.cpp.
| const float esphome::setup_priority::BLUETOOTH = 350.0f |
Definition at line 61 of file component.cpp.
| const float esphome::setup_priority::BUS = 1000.0f |
For communication buses like i2c/spi.
Definition at line 56 of file component.cpp.
| const float esphome::setup_priority::DATA = 600.0f |
For components that import data from directly connected sensors like DHT.
Definition at line 59 of file component.cpp.
| const float esphome::setup_priority::ETHERNET = 250.0f |
Definition at line 64 of file component.cpp.
| const float esphome::setup_priority::HARDWARE = 800.0f |
For components that deal with hardware and are very important like GPIO switch.
Definition at line 58 of file component.cpp.
|
extern |
Alias for DATA (here for compatibility reasons)
| const float esphome::setup_priority::IO = 900.0f |
For components that represent GPIO pins like PCF8573.
Definition at line 57 of file component.cpp.
| 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 68 of file component.cpp.
| const float esphome::setup_priority::PROCESSOR = 400.0 |
For components that use data from sensors like displays.
Definition at line 60 of file component.cpp.
| const float esphome::setup_priority::WIFI = 250.0f |
Definition at line 63 of file component.cpp.