From aa1db64f19abf5dcde416c66ec4783530649d76c Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Mon, 28 Mar 2022 20:25:15 +0200 Subject: [PATCH] Added changes for the statistics module to work. Finetuned hygrostat. --- configuration.yaml | 4 ++-- sensors.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configuration.yaml b/configuration.yaml index 59f8ae7..cedc465 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -99,6 +99,6 @@ generic_hygrostat: # keep_alive: # minutes: 3 initial_state: true - away_humidity: 35 - away_fixed: False + away_humidity: 60 + away_fixed: true sensor_stale_duration: 00:15:00 diff --git a/sensors.yaml b/sensors.yaml index c487dc7..0ef4638 100644 --- a/sensors.yaml +++ b/sensors.yaml @@ -77,12 +77,20 @@ name: "Badezimmer Temperatur" unique_id: bathroom.temperature state_topic: "home/bathroom/climate/sensor/temperature" + device_class: 'temperature' + state_class: 'measurement' unit_of_measurement: '°C' + last_reset_topic: "home/bathroom/climate/sensor/temperature" + last_reset_value_template: '1970-01-01T00:00:00+00:00' force_update: true - platform: mqtt name: "Badezimmer Luftfeuchtigkeit" unique_id: bathroom.humidity state_topic: "home/bathroom/climate/sensor/humidity" + device_class: 'humidity' + state_class: 'measurement' unit_of_measurement: '%' + last_reset_topic: "home/bathroom/climate/sensor/humidity" + last_reset_value_template: '1970-01-01T00:00:00+00:00' force_update: true