1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

FS3000 sensor (#4502)

* Add support for FS3000 sensor.

* add fs3000 to test yaml

* Clean up code with clang.

* Clean up sensor.py file.

* Update CODEOWNERS file.

* Apply suggestions from code review regarding sensor.py

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>

* Apply suggestions from code review for basic issues regarding C++ code

- removed unnecessary default for FS3000Model
- use "this->" before any sensor update

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>

* Move model setup to overall setup function.

* Remove unneeded CONF_ID from sensor.py

* Run clang-format

* Move set_model code to header file now that it is simplified

* Update fs3000.h

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
kahrendt
2023-03-06 23:25:14 -05:00
committed by GitHub
parent 05ab49a615
commit 6ecf4ecac6
6 changed files with 199 additions and 0 deletions

View File

@@ -1224,6 +1224,12 @@ sensor:
- platform: sen21231
name: "Person Sensor"
i2c_id: i2c_bus
- platform: fs3000
name: "Air Velocity"
model: 1005
update_interval: 60s
i2c_id: i2c_bus
esp32_touch:
setup_mode: false
iir_filter: 10ms