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

[sensor] Add optimistic option to heartbeat filter (#10993)

Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Petr Kejval
2025-10-21 15:17:07 +02:00
committed by GitHub
parent 87e9a7a1bd
commit 80265a6bd2
4 changed files with 33 additions and 3 deletions

View File

@@ -101,6 +101,9 @@ sensor:
- filter_out: 10
- filter_out: !lambda return NAN;
- heartbeat: 5s
- heartbeat:
period: 5s
optimistic: true
- lambda: return x * (9.0/5.0) + 32.0;
- max:
window_size: 10