13 this->
mark_failed(LOG_STR(
"Failed to configure debounce time"));
21 this->
mark_failed(LOG_STR(
"Failed to read initial state"));
32 ESP_LOGW(TAG, ESP_LOG_MSG_COMM_FAIL);
71 static const char *
const RAW =
"RAW";
72 static const char *
const NATIVE =
"NATIVE";
73 static const char *
const HYBRID =
"HYBRID";
75 const char *debounce_mode_str = RAW;
77 debounce_mode_str = NATIVE;
79 debounce_mode_str = HYBRID;
91 LOG_BINARY_SENSOR(
" ",
"Binary Sensor",
this);
97 ESP_LOGW(TAG,
"Failed to clear events");
void mark_failed()
Mark this component as failed.
void publish_state(bool new_state)
Publish a new state to the front-end.
bool check_chip_id(Component *component, uint8_t a_register, uint8_t expected, uint8_t mask=0xFF)
Read the 8-bit ID at a_register and accept it when it matches expected in the bits set in mask.
bool write_byte(uint8_t a_register, uint8_t data) const
bool read_byte(uint8_t a_register, uint8_t *data)
bool write_byte_16(uint8_t a_register, uint16_t data) const
DebounceMode debounce_mode_
union esphome::qwiic_pir::QwiicPIRComponent::@155 event_register_
void dump_config() override
ESPHOME_LOG_TAG(TAG, "qwiic_pir")
@ QWIIC_PIR_DEBOUNCE_TIME