106 void setup()
override;
109 void loop()
override;
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
Base-class for all sensors.
void publish_data_part_1_(Readings &data)
void set_enable_automatic_mode(bool enable)
void set_enable_lux_compensation(bool enable)
bool lux_compensation_enabled_
float glass_attenuation_factor_
void dump_config() override
void publish_data_part_2_(Readings &data)
void publish_data_part_3_(Readings &data)
IntegrationTime integration_time_
sensor::Sensor * white_counts_sensor_
enum esphome::veml7700::VEML7700Component::State NOT_INITIALIZED
void apply_glass_attenuation_(Readings &data)
sensor::Sensor * ambient_light_counts_sensor_
void set_ambient_light_counts_sensor(sensor::Sensor *sensor)
sensor::Sensor * white_sensor_
void set_actual_integration_time_sensor(sensor::Sensor *sensor)
bool are_adjustments_required_(Readings &data)
void set_actual_gain_sensor(sensor::Sensor *sensor)
ErrorCode reconfigure_time_and_gain_(IntegrationTime time, Gain gain, bool shutdown)
sensor::Sensor * actual_integration_time_sensor_
void set_white_counts_sensor(sensor::Sensor *sensor)
void set_white_sensor(sensor::Sensor *sensor)
@ READY_TO_PUBLISH_PART_1
@ INITIAL_SETUP_COMPLETED
@ READY_TO_PUBLISH_PART_3
@ READY_TO_PUBLISH_PART_2
@ READY_TO_APPLY_ADJUSTMENTS
void set_integration_time(IntegrationTime time)
float get_setup_priority() const override
void apply_lux_calculation_(Readings &data)
bool automatic_mode_enabled_
void set_glass_attenuation_factor(float factor)
sensor::Sensor * actual_gain_sensor_
struct esphome::veml7700::VEML7700Component::Readings readings_
sensor::Sensor * fake_infrared_sensor_
void set_ambient_light_sensor(sensor::Sensor *sensor)
void apply_lux_compensation_(Readings &data)
sensor::Sensor * ambient_light_sensor_
ErrorCode read_sensor_output_(Readings &data)
void set_infrared_sensor(sensor::Sensor *sensor)
struct @67::@68 __attribute__
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
@ ERROR_OK
No error found during execution of method.
const float DATA
For components that import data from directly connected sensors like DHT.
const uint8_t INTEGRATION_TIMES_COUNT
const uint8_t GAINS_COUNT
Providing packet encoding functions for exchanging data with a remote host.
IntegrationTime actual_time