8 static const char *
const TAG =
"EMC2101.sensor";
13 ESP_LOGCONFIG(TAG,
"Emc2101 sensor:");
void update() override
Used by ESPHome framework.
const float DATA
For components that import data from directly connected sensors like DHT.
sensor::Sensor * external_temperature_sensor_
void dump_config() override
Used by ESPHome framework.
sensor::Sensor * internal_temperature_sensor_
float get_setup_priority() const override
Used by ESPHome framework.
float get_internal_temperature()
Gets the internal temperature sensor reading.
Emc2101Component * parent_
void publish_state(float state)
Publish a new state to the front-end.
float get_duty_cycle()
Gets the Fan output duty cycle.
float get_speed()
Gets the tachometer speed sensor reading.
float get_external_temperature()
Gets the external temperature sensor reading.
sensor::Sensor * speed_sensor_
Implementation of SPI Controller mode.
sensor::Sensor * duty_cycle_sensor_