From 26dcabbf8ad3b6abe78707f6eb1aa90f1a6b60fd Mon Sep 17 00:00:00 2001 From: Franco Pellicciotti Date: Mon, 20 Jul 2026 22:53:36 -0400 Subject: [PATCH] Added Clean Blink sensors to remove negative temp values --- configuration.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/configuration.yaml b/configuration.yaml index 7c053a6..6da25d3 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -117,6 +117,47 @@ template: {% set raw_watts = states('sensor.water_heater_power') | float(0) %} {{ (raw_watts / 1000) | round(2) }} + # State-based Template Sensors (Blink Temperature Dropout Filtering) + - sensor: + - name: "Blink Backyard Shed Temperature Clean" + unique_id: blink_backyard_shed_temperature_clean + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {% set raw = states('sensor.blink_backyard_shed_temperature') | float(default=-999) %} + {% if raw > -40 and raw < 60 %} + {{ raw }} + {% else %} + {{ states('sensor.blink_backyard_shed_temperature_clean') }} + {% endif %} + + - name: "Blink Front Door Temperature Clean" + unique_id: blink_front_door_temperature_clean + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {% set raw = states('sensor.blink_front_door_temperature') | float(default=-999) %} + {% if raw > -40 and raw < 60 %} + {{ raw }} + {% else %} + {{ states('sensor.blink_front_door_temperature_clean') }} + {% endif %} + + - name: "Blink Backyard Tree Temperature Clean" + unique_id: blink_backyard_tree_temperature_clean + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {% set raw = states('sensor.blink_backyard_tree_temperature') | float(default=-999) %} + {% if raw > -40 and raw < 60 %} + {{ raw }} + {% else %} + {{ states('sensor.blink_backyard_tree_temperature_clean') }} + {% endif %} + # HTTP Proxy Configuration http: use_x_forwarded_for: true