ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
senseair.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::senseair {
8
9enum SenseAirStatus : uint8_t {
10 FATAL_ERROR = 1 << 0,
11 OFFSET_ERROR = 1 << 1,
13 OUTPUT_ERROR = 1 << 3,
16 MEMORY_ERROR = 1 << 6,
17 RESERVED = 1 << 7
18};
19
21 public:
22 void set_co2_sensor(sensor::Sensor *co2_sensor) { co2_sensor_ = co2_sensor; }
23
24 void update() override;
25 void dump_config() override;
26
29 void abc_get_period();
30 void abc_enable();
31 void abc_disable();
32
33 protected:
34 bool senseair_write_command_(const uint8_t *command, uint8_t *response, uint8_t response_length);
35
37};
38
39} // namespace esphome::senseair
This class simplifies creating components that periodically check a state.
Definition component.h:519
bool senseair_write_command_(const uint8_t *command, uint8_t *response, uint8_t response_length)
Definition senseair.cpp:129
void set_co2_sensor(sensor::Sensor *co2_sensor)
Definition senseair.h:22
Base-class for all sensors.
Definition sensor.h:47