From bb83283f88d6d993fa130d3bc2d61e59fd32204a Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Mon, 14 Mar 2022 23:53:36 +0000 Subject: [PATCH] my.bluemaestro: workaround for weird sensor glitch --- my/bluemaestro.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/my/bluemaestro.py b/my/bluemaestro.py index 077073c..ee85f21 100755 --- a/my/bluemaestro.py +++ b/my/bluemaestro.py @@ -148,6 +148,11 @@ def measurements() -> Iterable[Res[Measurement]]: yield RuntimeError('timestamp too far out', f, name, db_dt, dt) continue + # err.. sometimes my values are just interleaved with these for no apparent reason??? + if (temp, hum, pres, dewp) == (-144.1, 100.0, 1152.5, -144.1): + yield RuntimeError('the weird sensor bug') + continue + assert -60 <= temp <= 60, (f, dt, temp) ##