ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
emc2101_sensor.h
Go to the documentation of this file.
1#pragma once
2
3#include "../emc2101.h"
6
7namespace esphome::emc2101 {
8
10class EMC2101Sensor final : public PollingComponent {
11 public:
12 EMC2101Sensor(Emc2101Component *parent) : parent_(parent) {}
14 void dump_config() override;
16 void update() override;
17
19 SUB_SENSOR(internal_temperature)
21 SUB_SENSOR(external_temperature)
23 SUB_SENSOR(speed)
25 SUB_SENSOR(duty_cycle)
26
27 protected:
28 Emc2101Component *parent_;
29};
30
31} // namespace esphome::emc2101
This class simplifies creating components that periodically check a state.
Definition component.h:532
This class exposes the EMC2101 sensors.
EMC2101Sensor(Emc2101Component *parent)
void update() override
Used by ESPHome framework.
void dump_config() override
Used by ESPHome framework.
This class includes support for the EMC2101 i2c fan controller.
Definition emc2101.h:28