ESPHome 2025.5.0
Loading...
Searching...
No Matches
fs3000.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace fs3000 {
9
10// FS3000 has two models, 1005 and 1015
11// 1005 has a max speed detection of 7.23 m/s
12// 1015 has a max speed detection of 15 m/s
14
16 public:
17 void setup() override;
18 void update() override;
19
20 void dump_config() override;
21 float get_setup_priority() const override { return setup_priority::DATA; }
22
23 void set_model(FS3000Model model) { this->model_ = model; }
24
25 protected:
27
28 uint16_t raw_data_points_[13];
30
31 float fit_raw_(uint16_t raw_value);
32};
33
34} // namespace fs3000
35} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:301
float fit_raw_(uint16_t raw_value)
Definition fs3000.cpp:76
void set_model(FS3000Model model)
Definition fs3000.h:23
float get_setup_priority() const override
Definition fs3000.h:21
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Base-class for all sensors.
Definition sensor.h:57
const float DATA
For components that import data from directly connected sensors like DHT.
Definition component.cpp:19
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7