[core] Declare component log tags with ESPHOME_LOG_TAG (#20291)

This commit is contained in:
J. Nick Koston
2026-10-08 07:24:17 -10:00
committed by GitHub
parent 78bf74eafb
commit 052f5a4cc6
1080 changed files with 1178 additions and 1080 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::a01nyub {
static const char *const TAG = "a01nyub.sensor";
ESPHOME_LOG_TAG(TAG, "a01nyub.sensor");
void A01nyubComponent::loop() {
uint8_t data;
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::a02yyuw {
static const char *const TAG = "a02yyuw.sensor";
ESPHOME_LOG_TAG(TAG, "a02yyuw.sensor");
void A02yyuwComponent::loop() {
uint8_t data;
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::a4988 {
static const char *const TAG = "a4988.stepper";
ESPHOME_LOG_TAG(TAG, "a4988.stepper");
void A4988::setup() {
if (this->sleep_pin_ != nullptr) {
@@ -3,7 +3,7 @@
namespace esphome::absolute_humidity {
static const char *const TAG{"absolute_humidity.sensor"};
ESPHOME_LOG_TAG(TAG, "absolute_humidity.sensor");
void AbsoluteHumidityComponent::setup() {
this->temperature_sensor_->add_on_state_callback([this](float state) {
+1 -1
View File
@@ -14,7 +14,7 @@
namespace esphome::ac_dimmer {
static const char *const TAG = "ac_dimmer";
ESPHOME_LOG_TAG(TAG, "ac_dimmer");
// Global array to store dimmer objects
static AcDimmerDataStore *all_dimmers[32]; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
@@ -9,7 +9,7 @@
#include "esp_clk_tree.h"
#include "soc/clk_tree_defs.h"
static const char *const TAG = "hw_timer_esp_idf";
ESPHOME_LOG_TAG(TAG, "hw_timer_esp_idf");
namespace esphome::ac_dimmer {
@@ -3,7 +3,7 @@
namespace esphome::adalight {
static const char *const TAG = "adalight_light_effect";
ESPHOME_LOG_TAG(TAG, "adalight_light_effect");
static const uint32_t ADALIGHT_ACK_INTERVAL = 1000;
static const uint32_t ADALIGHT_RECEIVE_TIMEOUT = 1000;
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::adc {
static const char *const TAG = "adc";
ESPHOME_LOG_TAG(TAG, "adc");
const LogString *sampling_mode_to_str(SamplingMode mode) {
switch (mode) {
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::adc {
static const char *const TAG = "adc";
ESPHOME_LOG_TAG(TAG, "adc");
adc_oneshot_unit_handle_t ADCSensor::shared_adc_handles[2] = {nullptr, nullptr};
@@ -13,7 +13,7 @@ ADC_MODE(ADC_VCC)
namespace esphome::adc {
static const char *const TAG = "adc";
ESPHOME_LOG_TAG(TAG, "adc");
void ADCSensor::setup() {
#ifndef USE_ADC_SENSOR_VCC
@@ -5,7 +5,7 @@
namespace esphome::adc {
static const char *const TAG = "adc";
ESPHOME_LOG_TAG(TAG, "adc");
void ADCSensor::setup() {
#ifndef USE_ADC_SENSOR_VCC
+1 -1
View File
@@ -17,7 +17,7 @@
namespace esphome::adc {
static const char *const TAG = "adc";
ESPHOME_LOG_TAG(TAG, "adc");
// The on-die temperature sensor sits on the last ADC channel: input 4 on RP2040
// and RP2350A, but input 8 on RP2350B, which has eight external channels rather
+1 -1
View File
@@ -7,7 +7,7 @@
namespace esphome::adc {
static const char *const TAG = "adc";
ESPHOME_LOG_TAG(TAG, "adc");
void ADCSensor::setup() {
if (!adc_is_ready_dt(this->channel_)) {
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::adc128s102 {
static const char *const TAG = "adc128s102";
ESPHOME_LOG_TAG(TAG, "adc128s102");
float ADC128S102::get_setup_priority() const { return setup_priority::HARDWARE; }
@@ -4,7 +4,7 @@
namespace esphome::adc128s102 {
static const char *const TAG = "adc128s102.sensor";
ESPHOME_LOG_TAG(TAG, "adc128s102.sensor");
ADC128S102Sensor::ADC128S102Sensor(uint8_t channel) : channel_(channel) {}
@@ -3,7 +3,7 @@
namespace esphome::addressable_light {
static const char *const TAG = "addressable_light.display";
ESPHOME_LOG_TAG(TAG, "addressable_light.display");
int AddressableLightDisplay::get_width_internal() { return this->width_; }
int AddressableLightDisplay::get_height_internal() { return this->height_; }
+1 -1
View File
@@ -15,7 +15,7 @@
namespace esphome::ade7880 {
static const char *const TAG = "ade7880";
ESPHOME_LOG_TAG(TAG, "ade7880");
void IRAM_ATTR ADE7880Store::gpio_intr(ADE7880Store *arg) { arg->reset_done = true; }
@@ -5,7 +5,7 @@
namespace esphome::ade7953_base {
static const char *const TAG = "ade7953";
ESPHOME_LOG_TAG(TAG, "ade7953");
constexpr uint16_t CONFIG_DEFAULT = 0x8004u;
constexpr uint16_t CONFIG_LOCK_BIT = 0x8000u;
@@ -4,7 +4,7 @@
namespace esphome::ade7953_i2c {
static const char *const TAG = "ade7953";
ESPHOME_LOG_TAG(TAG, "ade7953");
void AdE7953I2c::dump_config() {
ESP_LOGCONFIG(TAG, "ADE7953_i2c:");
@@ -4,7 +4,7 @@
namespace esphome::ade7953_spi {
static const char *const TAG = "ade7953";
ESPHOME_LOG_TAG(TAG, "ade7953");
// Datasheet requires at least 1.2µs after clearing CONFIG LOCK_BIT before raising CS
constexpr uint8_t CONFIG_LOCK_SETTLE_US = 2;
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::ads1115 {
static const char *const TAG = "ads1115";
ESPHOME_LOG_TAG(TAG, "ads1115");
static const uint8_t ADS1115_REGISTER_CONVERSION = 0x00;
static const uint8_t ADS1115_REGISTER_CONFIG = 0x01;
@@ -4,7 +4,7 @@
namespace esphome::ads1115 {
static const char *const TAG = "ads1115.sensor";
ESPHOME_LOG_TAG(TAG, "ads1115.sensor");
float ADS1115Sensor::sample() {
return this->parent_->request_measurement(this->multiplexer_, this->gain_, this->resolution_, this->samplerate_);
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::ads1118 {
static const char *const TAG = "ads1118";
ESPHOME_LOG_TAG(TAG, "ads1118");
static const uint8_t ADS1118_DATA_RATE_860_SPS = 0b111;
void ADS1118::setup() {
@@ -4,7 +4,7 @@
namespace esphome::ads1118 {
static const char *const TAG = "ads1118.sensor";
ESPHOME_LOG_TAG(TAG, "ads1118.sensor");
void ADS1118Sensor::dump_config() {
LOG_SENSOR(" ", "ADS1118 Sensor", this);
+1 -1
View File
@@ -4,7 +4,7 @@
#include <cinttypes>
namespace esphome::ags10 {
static const char *const TAG = "ags10";
ESPHOME_LOG_TAG(TAG, "ags10");
// Data acquisition.
static const uint8_t REG_TVOC = 0x00;
+1 -1
View File
@@ -19,7 +19,7 @@
namespace esphome::aht10 {
static const char *const TAG = "aht10";
ESPHOME_LOG_TAG(TAG, "aht10");
static const uint8_t AHT10_INITIALIZE_CMD[] = {0xE1, 0x08, 0x00};
static const uint8_t AHT20_INITIALIZE_CMD[] = {0xBE, 0x08, 0x00};
static const uint8_t AHT10_MEASURE_CMD[] = {0xAC, 0x33, 0x00};
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::aic3204 {
static const char *const TAG = "aic3204";
ESPHOME_LOG_TAG(TAG, "aic3204");
#define ERROR_CHECK(err, msg) \
if (!(err)) { \
@@ -4,7 +4,7 @@
namespace esphome::airthings_ble {
static const char *const TAG = "airthings_ble";
ESPHOME_LOG_TAG(TAG, "airthings_ble");
bool AirthingsListener::parse_device(const ble_device_base::ESPBTDevice &device) {
for (auto &it : device.get_manufacturer_datas()) {
@@ -8,7 +8,7 @@
namespace esphome::airthings_wave_base {
static const char *const TAG = "airthings_wave_base";
ESPHOME_LOG_TAG(TAG, "airthings_wave_base");
void AirthingsWaveBase::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
esp_ble_gattc_cb_param_t *param) {
@@ -4,7 +4,7 @@
namespace esphome::airthings_wave_mini {
static const char *const TAG = "airthings_wave_mini";
ESPHOME_LOG_TAG(TAG, "airthings_wave_mini");
void AirthingsWaveMini::read_sensors(uint8_t *raw_value, uint16_t value_len) {
auto *value = (WaveMiniReadings *) raw_value;
@@ -4,7 +4,7 @@
namespace esphome::airthings_wave_plus {
static const char *const TAG = "airthings_wave_plus";
ESPHOME_LOG_TAG(TAG, "airthings_wave_plus");
void AirthingsWavePlus::read_sensors(uint8_t *raw_value, uint16_t value_len) {
auto *value = (WavePlusReadings *) raw_value;
@@ -10,7 +10,7 @@
namespace esphome::alarm_control_panel {
static const char *const TAG = "alarm_control_panel";
ESPHOME_LOG_TAG(TAG, "alarm_control_panel");
AlarmControlPanelCall AlarmControlPanel::make_call() { return AlarmControlPanelCall(this); }
@@ -6,7 +6,7 @@
namespace esphome::alarm_control_panel {
static const char *const TAG = "alarm_control_panel";
ESPHOME_LOG_TAG(TAG, "alarm_control_panel");
AlarmControlPanelCall::AlarmControlPanelCall(AlarmControlPanel *parent) : parent_(parent) {}
+1 -1
View File
@@ -7,7 +7,7 @@
namespace esphome::alpha3 {
static const char *const TAG = "alpha3";
ESPHOME_LOG_TAG(TAG, "alpha3");
void Alpha3::dump_config() {
ESP_LOGCONFIG(TAG, "ALPHA3");
+1 -1
View File
@@ -26,7 +26,7 @@
namespace esphome::am2315c {
static const char *const TAG = "am2315c";
ESPHOME_LOG_TAG(TAG, "am2315c");
bool AM2315C::reset_register_(uint8_t reg) {
// code based on demo code sent by www.aosong.com
+1 -1
View File
@@ -10,7 +10,7 @@
namespace esphome::am2320 {
static const char *const TAG = "am2320";
ESPHOME_LOG_TAG(TAG, "am2320");
void AM2320Component::update() {
uint8_t data[8];
+1 -1
View File
@@ -5,7 +5,7 @@
namespace esphome::am43 {
static const char *const TAG = "am43_cover";
ESPHOME_LOG_TAG(TAG, "am43_cover");
using namespace esphome::cover;
@@ -6,7 +6,7 @@
namespace esphome::am43 {
static const char *const TAG = "am43";
ESPHOME_LOG_TAG(TAG, "am43");
void Am43::dump_config() {
ESP_LOGCONFIG(TAG, "AM43");
@@ -3,7 +3,7 @@
namespace esphome::analog_threshold {
static const char *const TAG = "analog_threshold.binary_sensor";
ESPHOME_LOG_TAG(TAG, "analog_threshold.binary_sensor");
void AnalogThresholdBinarySensor::setup() {
float sensor_value = this->sensor_->get_state();
+1 -1
View File
@@ -5,7 +5,7 @@
namespace esphome::anova {
static const char *const TAG = "anova";
ESPHOME_LOG_TAG(TAG, "anova");
using namespace esphome::climate;
+1 -1
View File
@@ -7,7 +7,7 @@
namespace esphome::apds9306 {
static const char *const TAG = "apds9306";
ESPHOME_LOG_TAG(TAG, "apds9306");
enum { // APDS9306 registers
APDS9306_MAIN_CTRL = 0x00,
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::apds9960 {
static const char *const TAG = "apds9960";
ESPHOME_LOG_TAG(TAG, "apds9960");
#define APDS9960_ERROR_CHECK(func) \
if (!(func)) { \
+1 -1
View File
@@ -88,7 +88,7 @@ static_assert(sizeof(ESPHOME_VERSION) - 1 <= 32, "Update max_data_length for esp
static_assert(ESPHOME_DEVICE_NAME_MAX_LEN <= 31, "Update max_data_length for name in api.proto");
static_assert(ESPHOME_FRIENDLY_NAME_MAX_LEN <= 120, "Update max_data_length for friendly_name in api.proto");
static const char *const TAG = "api.connection";
ESPHOME_LOG_TAG(TAG, "api.connection");
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_WARN
void log_dropped_message(const char *tag, int line, const LogString *what) {
+1 -1
View File
@@ -10,7 +10,7 @@
namespace esphome::api {
static const char *const TAG = "api.frame_helper";
ESPHOME_LOG_TAG(TAG, "api.frame_helper");
// Maximum bytes to log in hex format (168 * 3 = 504, under TX buffer size of 512)
static constexpr size_t API_MAX_LOG_BYTES = 168;
@@ -22,7 +22,7 @@ using noise::noise_err_to_logstr;
static_assert(MAX_HANDSHAKE_SIZE == noise::MAX_HANDSHAKE_SIZE,
"api and noise component handshake size limits must match");
static const char *const TAG = "api.noise";
ESPHOME_LOG_TAG(TAG, "api.noise");
static constexpr char PROLOGUE_INIT[] PROGMEM = "NoiseAPIInit";
static constexpr size_t PROLOGUE_INIT_LEN = 12; // strlen("NoiseAPIInit")
@@ -16,7 +16,7 @@
namespace esphome::api {
static const char *const TAG = "api.plaintext";
ESPHOME_LOG_TAG(TAG, "api.plaintext");
// Maximum bytes to log in hex format (168 * 3 = 504, under TX buffer size of 512)
static constexpr size_t API_MAX_LOG_BYTES = 168;
@@ -15,7 +15,7 @@
namespace esphome::api {
static const char *const TAG = "api.outgoing";
ESPHOME_LOG_TAG(TAG, "api.outgoing");
#ifndef API_OUTGOING_CONNECTION_HOST
static constexpr uint32_t OUTGOING_TARGET_PREF_HASH = 629847102UL;
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::api {
static const char *const TAG = "api.service";
ESPHOME_LOG_TAG(TAG, "api.service");
#ifdef HAS_PROTO_MESSAGE_DUMP
void APIServerConnectionBase::log_send_message_(const LogString *name, const char *dump) {
+1 -1
View File
@@ -23,7 +23,7 @@
namespace esphome::api {
static const char *const TAG = "api";
ESPHOME_LOG_TAG(TAG, "api");
// APIServer
APIServer *global_api_server = nullptr; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
+1 -1
View File
@@ -11,7 +11,7 @@
namespace esphome::api {
static const char *const TAG = "api.wizard";
ESPHOME_LOG_TAG(TAG, "api.wizard");
#ifdef USE_API_WIZARD_INPUTS
static bool wizard_entity_id_valid(const char *entity_id, size_t length) {
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::api {
static const char *const TAG = "api.proto";
ESPHOME_LOG_TAG(TAG, "api.proto");
uint32_t ProtoSize::varint_slow(uint32_t value) { return varint_wide(value); }
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::aqi {
static const char *const TAG = "aqi";
ESPHOME_LOG_TAG(TAG, "aqi");
void AQISensor::setup() {
if (this->pm_2_5_sensor_ != nullptr) {
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::as3935 {
static const char *const TAG = "as3935";
ESPHOME_LOG_TAG(TAG, "as3935");
void AS3935Component::setup() {
this->irq_pin_->setup();
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::as3935_i2c {
static const char *const TAG = "as3935_i2c";
ESPHOME_LOG_TAG(TAG, "as3935_i2c");
void I2CAS3935Component::write_register(uint8_t reg, uint8_t mask, uint8_t bits, uint8_t start_pos) {
uint8_t write_reg;
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::as3935_spi {
static const char *const TAG = "as3935_spi";
ESPHOME_LOG_TAG(TAG, "as3935_spi");
void SPIAS3935Component::setup() {
this->spi_setup();
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::as5600 {
static const char *const TAG = "as5600";
ESPHOME_LOG_TAG(TAG, "as5600");
// Configuration registers
static const uint8_t REGISTER_ZMCO = 0x00; // 8 bytes / R
@@ -3,7 +3,7 @@
namespace esphome::as5600 {
static const char *const TAG = "as5600.sensor";
ESPHOME_LOG_TAG(TAG, "as5600.sensor");
// Configuration registers
static const uint8_t REGISTER_ZMCO = 0x00; // 8 bytes / R
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::as7341 {
static const char *const TAG = "as7341";
ESPHOME_LOG_TAG(TAG, "as7341");
void AS7341Component::setup() {
LOG_I2C_DEVICE(this);
@@ -9,7 +9,7 @@
namespace esphome::async_tcp {
static const char *const TAG = "async_tcp";
ESPHOME_LOG_TAG(TAG, "async_tcp");
// Read buffer size matches TCP MSS (1500 MTU - 40 bytes IP/TCP headers).
// This implementation only runs on ESP-IDF and host which have ample stack.
+1 -1
View File
@@ -51,7 +51,7 @@ const uint8_t SELF_CHECK_TIME_ADDR = 0x38; // 2 bytes, up to 0x39
namespace esphome::at581x {
static const char *const TAG = "at581x";
ESPHOME_LOG_TAG(TAG, "at581x");
bool AT581XComponent::i2c_write_reg(uint8_t addr, uint8_t data) {
return this->write_register(addr, &data, 1) == esphome::i2c::NO_ERROR;
@@ -3,7 +3,7 @@
namespace esphome::atc_mithermometer {
static const char *const TAG = "atc_mithermometer";
ESPHOME_LOG_TAG(TAG, "atc_mithermometer");
void ATCMiThermometer::dump_config() {
ESP_LOGCONFIG(TAG, "ATC MiThermometer");
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::atm90e26 {
static const char *const TAG = "atm90e26";
ESPHOME_LOG_TAG(TAG, "atm90e26");
void ATM90E26Component::update() {
if (this->read16_(ATM90E26_REGISTER_FUNCEN) != 0x0030) {
+1 -1
View File
@@ -7,7 +7,7 @@
namespace esphome::atm90e32 {
static const char *const TAG = "atm90e32";
ESPHOME_LOG_TAG(TAG, "atm90e32");
static const LogString *offset_calibration_name(bool power_offsets) {
return power_offsets ? LOG_STR("Power offset") : LOG_STR("Offset");
@@ -4,7 +4,7 @@
namespace esphome::atm90e32 {
static const char *const TAG = "atm90e32.button";
ESPHOME_LOG_TAG(TAG, "atm90e32.button");
void ATM90E32GainCalibrationButton::press_action() {
if (this->parent_ == nullptr) {
+1 -1
View File
@@ -7,7 +7,7 @@
namespace esphome::audio {
static const char *const TAG = "audio.decoder";
ESPHOME_LOG_TAG(TAG, "audio.decoder");
static const uint32_t READ_WRITE_TIMEOUT_MS = 20; // Timeout for transferring audio data
+1 -1
View File
@@ -22,7 +22,7 @@ static const size_t HTTP_STREAM_BUFFER_SIZE = 2048;
static const uint8_t MAX_REDIRECTIONS = 5;
static const char *const TAG = "audio_reader";
ESPHOME_LOG_TAG(TAG, "audio_reader");
// Some common HTTP status codes - borrowed from http_request component accessed 20241224
enum HttpStatus {
@@ -11,7 +11,7 @@
namespace esphome::audio_file {
static const char *const TAG = "audio_file_media_source";
ESPHOME_LOG_TAG(TAG, "audio_file_media_source");
static constexpr uint32_t AUDIO_WRITE_TIMEOUT_MS = 50;
static constexpr size_t DECODER_TASK_STACK_SIZE = 5120;
@@ -11,7 +11,7 @@
namespace esphome::audio_http {
static const char *const TAG = "audio_http_media_source";
ESPHOME_LOG_TAG(TAG, "audio_http_media_source");
// Decoder task / buffer tuning. Kept here as constants so the header stays free of magic numbers.
static constexpr size_t DEFAULT_TRANSFER_BUFFER_SIZE = 8 * 1024; // Staging buffer between HTTP reader and decoder
@@ -5,7 +5,7 @@
namespace esphome::axs15231 {
static const char *const TAG = "ax15231.touchscreen";
ESPHOME_LOG_TAG(TAG, "ax15231.touchscreen");
constexpr static const uint8_t AXS_READ_TOUCHPAD[11] = {0xb5, 0xab, 0xa5, 0x5a, 0x0, 0x0, 0x0, 0x8};
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::b_parasite {
static const char *const TAG = "b_parasite";
ESPHOME_LOG_TAG(TAG, "b_parasite");
void BParasite::dump_config() {
ESP_LOGCONFIG(TAG, "b_parasite");
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::ballu {
static const char *const TAG = "ballu.climate";
ESPHOME_LOG_TAG(TAG, "ballu.climate");
const uint16_t BALLU_HEADER_MARK = 9000;
const uint16_t BALLU_HEADER_SPACE = 4500;
@@ -3,7 +3,7 @@
namespace esphome::bang_bang {
static const char *const TAG = "bang_bang.climate";
ESPHOME_LOG_TAG(TAG, "bang_bang.climate");
BangBangClimate::BangBangClimate() = default;
@@ -35,7 +35,7 @@ static const uint32_t SPI_RX_FINISH_EN = 1 << 3;
namespace esphome::beken_spi_led_strip {
static const char *const TAG = "beken_spi_led_strip";
ESPHOME_LOG_TAG(TAG, "beken_spi_led_strip");
struct SpiData {
SemaphoreHandle_t dma_tx_semaphore;
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::bh1750 {
static const char *const TAG = "bh1750.sensor";
ESPHOME_LOG_TAG(TAG, "bh1750.sensor");
static const uint8_t BH1750_COMMAND_POWER_ON = 0b00000001;
static const uint8_t BH1750_COMMAND_MT_REG_HI = 0b01000000; // last 3 bits
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::bh1900nux {
static const char *const TAG = "bh1900nux.sensor";
ESPHOME_LOG_TAG(TAG, "bh1900nux.sensor");
// I2C Registers
static const uint8_t TEMPERATURE_REG = 0x00;
+1 -1
View File
@@ -3,7 +3,7 @@
namespace esphome::binary {
static const char *const TAG = "binary.fan";
ESPHOME_LOG_TAG(TAG, "binary.fan");
void BinaryFan::setup() {
auto restore = this->restore_state_();
@@ -8,7 +8,7 @@ namespace esphome::binary_sensor {
#ifdef USE_BINARY_SENSOR_MULTI_CLICK_TRIGGER
static const char *const TAG = "binary_sensor.automation";
ESPHOME_LOG_TAG(TAG, "binary_sensor.automation");
// MultiClickTrigger timeout IDs.
// MultiClickTrigger is its own Component instance, so the scheduler scopes
@@ -5,7 +5,7 @@
namespace esphome::binary_sensor {
static const char *const TAG = "binary_sensor";
ESPHOME_LOG_TAG(TAG, "binary_sensor");
// Function implementation of LOG_BINARY_SENSOR macro to reduce code size
void log_binary_sensor(const char *tag, const char *prefix, const char *type, BinarySensor *obj) {
+1 -1
View File
@@ -8,7 +8,7 @@
namespace esphome::binary_sensor {
static const char *const TAG = "sensor.filter";
ESPHOME_LOG_TAG(TAG, "sensor.filter");
void Filter::output(bool value) {
if (this->next_ == nullptr) {
@@ -3,7 +3,7 @@
namespace esphome::binary_sensor_map {
static const char *const TAG = "binary_sensor_map";
ESPHOME_LOG_TAG(TAG, "binary_sensor_map");
void BinarySensorMap::dump_config() { LOG_SENSOR(" ", "binary_sensor_map", this); }
+1 -1
View File
@@ -29,7 +29,7 @@ extern "C" {
namespace esphome::bk72xx_ble {
static const char *const TAG = "bk72xx_ble";
ESPHOME_LOG_TAG(TAG, "bk72xx_ble");
// Pin the SDK surface this file depends on: a beken-bdk bump that moves these
// must fail the build, not corrupt the kernel message.
+1 -1
View File
@@ -81,7 +81,7 @@ void ble_entry(void);
namespace esphome::bk72xx_ble {
static const char *const TAG = "bk72xx_ble";
ESPHOME_LOG_TAG(TAG, "bk72xx_ble");
static constexpr uint32_t RECONCILE_RETRY_MS = 10; // pump floor for fast loops
static constexpr uint32_t RECONCILE_REJECTED_RETRY_MS = 500; // retry gate after a rejected release
@@ -16,7 +16,7 @@
namespace esphome::bk72xx_ble_tracker {
static const char *const TAG = "bk72xx_ble_tracker";
ESPHOME_LOG_TAG(TAG, "bk72xx_ble_tracker");
// Minimum interval between scan (re)start attempts, so a failing controller start
// cannot be retried every main-loop iteration (single-core CPU starvation). The
+1 -1
View File
@@ -5,7 +5,7 @@
namespace esphome::bl0906 {
static const char *const TAG = "bl0906";
ESPHOME_LOG_TAG(TAG, "bl0906");
constexpr uint32_t to_uint32_t(ube24_t input) { return input.h << 16 | input.m << 8 | input.l; }
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::bl0939 {
static const char *const TAG = "bl0939";
ESPHOME_LOG_TAG(TAG, "bl0939");
// https://www.belling.com.cn/media/file_object/bel_product/BL0939/datasheet/BL0939_V1.2_cn.pdf
// (unfortunately chinese, but the protocol can be understood with some translation tool)
+1 -1
View File
@@ -4,7 +4,7 @@
namespace esphome::bl0940 {
static const char *const TAG = "bl0940";
ESPHOME_LOG_TAG(TAG, "bl0940");
static const uint8_t BL0940_FULL_PACKET = 0xAA;
static const uint8_t BL0940_PACKET_HEADER = 0x55; // 0x58 according to en doc but 0x55 in cn doc
@@ -6,7 +6,7 @@
namespace esphome::bl0940 {
static const char *const TAG = "bl0940.button.calibration_reset";
ESPHOME_LOG_TAG(TAG, "bl0940.button.calibration_reset");
void CalibrationResetButton::dump_config() { LOG_BUTTON("", "Calibration Reset Button", this); }
@@ -3,7 +3,7 @@
namespace esphome::bl0940 {
static const char *const TAG = "bl0940.number";
ESPHOME_LOG_TAG(TAG, "bl0940.number");
void CalibrationNumber::setup() {
float value = 0.0f;
+1 -1
View File
@@ -6,7 +6,7 @@
namespace esphome::bl0942 {
static const char *const TAG = "bl0942";
ESPHOME_LOG_TAG(TAG, "bl0942");
static const uint8_t BL0942_READ_COMMAND = 0x58;
static const uint8_t BL0942_FULL_PACKET = 0xAA;
+1 -1
View File
@@ -9,7 +9,7 @@
namespace esphome::ble_client {
static const char *const TAG = "ble_client";
ESPHOME_LOG_TAG(TAG, "ble_client");
void BLEClient::setup() {
BLEClientBase::setup();
@@ -5,7 +5,7 @@
#ifdef USE_ESP32
namespace esphome::ble_client {
static const char *const TAG = "ble_binary_output";
ESPHOME_LOG_TAG(TAG, "ble_binary_output");
void BLEBinaryOutput::dump_config() {
ESP_LOGCONFIG(TAG, "BLE Binary Output:");
@@ -8,7 +8,7 @@
namespace esphome::ble_client {
static const char *const TAG = "ble_rssi_sensor";
ESPHOME_LOG_TAG(TAG, "ble_rssi_sensor");
void BLEClientRSSISensor::loop() {
// Parent BLEClientNode has a loop() method, but this component uses
@@ -8,7 +8,7 @@
namespace esphome::ble_client {
static const char *const TAG = "ble_sensor";
ESPHOME_LOG_TAG(TAG, "ble_sensor");
void BLESensor::loop() {
// Parent BLEClientNode has a loop() method, but this component uses
@@ -6,7 +6,7 @@
namespace esphome::ble_client {
static const char *const TAG = "ble_switch";
ESPHOME_LOG_TAG(TAG, "ble_switch");
void BLEClientSwitch::write_state(bool state) {
this->parent_->set_enabled(state);
@@ -9,7 +9,7 @@
namespace esphome::ble_client {
static const char *const TAG = "ble_text_sensor";
ESPHOME_LOG_TAG(TAG, "ble_text_sensor");
void BLETextSensor::loop() {
// Parent BLEClientNode has a loop() method, but this component uses
@@ -16,7 +16,7 @@
namespace esphome::ble_device_base {
static const char *const TAG = "ble_device_base";
ESPHOME_LOG_TAG(TAG, "ble_device_base");
// Longest advertisement payload worth hex-dumping at VERY_VERBOSE
// (legacy advertising: 31-byte adv + 31-byte scan response).
+1 -1
View File
@@ -19,7 +19,7 @@ RING_BUF_DECLARE(global_ble_rx_ring_buf, ESPHOME_BLE_NUS_RX_RING_BUFFER_SIZE);
#endif
// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)
static const char *const TAG = "ble_nus";
ESPHOME_LOG_TAG(TAG, "ble_nus");
void BLENUS::write_array(const uint8_t *data, size_t len) {
if (atomic_get(&this->tx_status_) == TX_DISABLED) {
@@ -3,7 +3,7 @@
namespace esphome::ble_presence {
static const char *const TAG = "ble_presence";
ESPHOME_LOG_TAG(TAG, "ble_presence");
void BLEPresenceDevice::dump_config() { LOG_BINARY_SENSOR("", "BLE Presence", this); }
@@ -3,7 +3,7 @@
namespace esphome::ble_rssi {
static const char *const TAG = "ble_rssi";
ESPHOME_LOG_TAG(TAG, "ble_rssi");
void BLERSSISensor::dump_config() { LOG_SENSOR("", "BLE RSSI Sensor", this); }
@@ -3,7 +3,7 @@
namespace esphome::ble_scanner {
static const char *const TAG = "ble_scanner";
ESPHOME_LOG_TAG(TAG, "ble_scanner");
void BLEScanner::dump_config() { LOG_TEXT_SENSOR("", "BLE Scanner", this); }

Some files were not shown because too many files have changed in this diff Show More