1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add calibrate_polynomial sensor filter (#642)

* Add calibrate_polynomial sensor filter

* Fix

* Lint

* Format
This commit is contained in:
Otto Winter
2019-07-02 13:02:55 +02:00
committed by GitHub
parent f95d4ca106
commit d2938e82db
4 changed files with 114 additions and 0 deletions

View File

@@ -133,6 +133,14 @@ sensor:
- calibrate_linear:
- 0 -> 0
- 100 -> 100
- calibrate_polynomial:
degree: 3
datapoints:
- 0 -> 0
- 100 -> 200
- 400 -> 500
- -50 -> -1000
- -100 -> -10000
- platform: resistance
sensor: my_sensor
configuration: DOWNSTREAM