From 52b3b5c75280ef4f72efa52add74f2ad9d7fd700 Mon Sep 17 00:00:00 2001
From: Jan Grewe <jan@faked.org>
Date: Sat, 28 May 2022 14:10:33 +0200
Subject: [PATCH] NFG: export temperature/humidity limits for fan as metrics
 (waiting for upstream)

---
 propbox.yaml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/propbox.yaml b/propbox.yaml
index 1159af9..027017a 100644
--- a/propbox.yaml
+++ b/propbox.yaml
@@ -67,6 +67,38 @@ sensor:
     name: "Water Temperature"
     accuracy_decimals: 2
 
+  # requires: https://github.com/esphome/feature-requests/issues/1746
+  # - platform: template
+  #   id: sensor_temperature_max
+  #   name: "temperature_max"
+  #   lambda: return atoi(id(temperature_max).state.c_str());
+  #   internal: true
+  # - platform: template
+  #   id: sensor_temperature_hysteresis
+  #   name: "temperature_max"
+  #   lambda: return atoi(id(temperature_hysteresis).state.c_str());
+  #   internal: true
+  # - platform: template
+  #   id: sensor_temperature_min
+  #   name: "temperature_max"
+  #   lambda: return atoi(id(temperature_min).state.c_str());
+  #   internal: true
+  # - platform: template
+  #   id: sensor_humidity_max
+  #   name: "humidity_max"
+  #   lambda: return atoi(id(humidity_max).state.c_str());
+  #   internal: true
+  # - platform: template
+  #   id: sensor_humidity_hysteresis
+  #   name: "humidity_max"
+  #   lambda: return atoi(id(humidity_hysteresis).state.c_str());
+  #   internal: true
+  # - platform: template
+  #   id: sensor_humidity_min
+  #   name: "humidity_max"
+  #   lambda: return atoi(id(humidity_min).state.c_str());
+  #   internal: true
+
 select:
   - platform: template
     id: schedule
-- 
GitLab