From 1bc5fdf9260d8d088ef5856fa63b22cc061e30c9 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Tue, 24 Oct 2023 17:06:43 +0200 Subject: [PATCH] Correctly set voltage thresholds According to 5528 scale and ESP32 ADC attenuation. --- heating.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/heating.yaml b/heating.yaml index 1c86991..65a30fa 100644 --- a/heating.yaml +++ b/heating.yaml @@ -74,6 +74,8 @@ sensor: pin: GPIO32 update_interval: 1s id: furnace_led_brightness + attenuation: auto + # Make voltage value available in UI for debugging and history. name: "Furnace LED brightness" entity_category: diagnostic disabled_by_default: true @@ -82,6 +84,8 @@ sensor: pin: GPIO33 update_interval: 1s id: heating_led_brightness + attenuation: auto + # Make voltage value available in UI for debugging and history. name: "Floor heating LED brightness" entity_category: diagnostic disabled_by_default: true @@ -91,7 +95,7 @@ binary_sensor: id: furnace_burning name: "Furnace burning" sensor_id: furnace_led_brightness - threshold: 0.7 + threshold: 1.8 filters: - invert: @@ -99,7 +103,7 @@ binary_sensor: id: heating_enabled name: "Floor heating active" sensor_id: heating_led_brightness - threshold: 0.7 + threshold: 1.8 filters: - invert: