11 namespace sen21231_sensor {
13 static const uint8_t PERSON_SENSOR_I2C_ADDRESS = 0x62;
14 static const uint8_t PERSON_SENSOR_REG_MODE = 0x01;
15 static const uint8_t PERSON_SENSOR_REG_ENABLE_ID = 0x02;
16 static const uint8_t PERSON_SENSOR_REG_SINGLE_SHOT = 0x03;
17 static const uint8_t PERSON_SENSOR_REG_CALIBRATE_ID = 0x04;
18 static const uint8_t PERSON_SENSOR_REG_PERSIST_IDS = 0x05;
19 static const uint8_t PERSON_SENSOR_REG_ERASE_IDS = 0x06;
20 static const uint8_t PERSON_SENSOR_REG_DEBUG_MODE = 0x07;
22 static const uint8_t PERSON_SENSOR_MAX_FACES_COUNT = 4;
23 static const uint8_t PERSON_SENSOR_MAX_IDS_COUNT = 7;
46 uint8_t box_confidence;
69 void update()
override;
70 void dump_config()
override;
struct { uint8_t reserved[2] person_sensor_results_header_t
This class simplifies creating components that periodically check a state.
struct __attribute__((__packed__)) { person_sensor_results_header_t header person_sensor_results_t
struct __attribute__((__packed__)) { uint8_t box_confidence person_sensor_face_t
enum esphome::EntityCategory __attribute__
Implementation of SPI Controller mode.
person_sensor_face_t faces[PERSON_SENSOR_MAX_FACES_COUNT]
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.