ESPHome 2026.11.0b6
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 SUB_SENSOR(co2)
22
23 public:
24 void update() override;
25 void dump_config() override;
26
27 void background_calibration();
28 void background_calibration_result();
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};
36
37} // namespace esphome::senseair
This class simplifies creating components that periodically check a state.
Definition component.h:532
virtual void update()=0
bool senseair_write_command_(const uint8_t *command, uint8_t *response, uint8_t response_length)
Definition senseair.cpp:129