From e1825ce91b852e7465a281c9d0ab76fc02bdfc6a Mon Sep 17 00:00:00 2001 From: darthsandmann Date: Tue, 14 Feb 2023 17:12:57 +0100 Subject: [PATCH] fixes --- lovelace/overview/climate.yaml | 2 +- packages/climate/climate_sensors.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lovelace/overview/climate.yaml b/lovelace/overview/climate.yaml index 1b35883..b12f4e2 100755 --- a/lovelace/overview/climate.yaml +++ b/lovelace/overview/climate.yaml @@ -14,7 +14,7 @@ group_by: func: avg duration: 15min - - entity: sensor.garten_gewaechshaus_temperature + - entity: sensor.garten_huette_temperature type: column name: Outside group_by: diff --git a/packages/climate/climate_sensors.yaml b/packages/climate/climate_sensors.yaml index e597370..57e5f75 100755 --- a/packages/climate/climate_sensors.yaml +++ b/packages/climate/climate_sensors.yaml @@ -7,7 +7,7 @@ sensor: climate_temp_change: friendly_name: change in temperature value_template: > - {% set now = states("sensor.aqara_temperature_kai_temperature")|float %} + {% set now = states("sensor.kai_regal_temperature")|float %} {% set last = states("input_number.climate_temp_last")|float %} {% set change = (now | float - last) | float %} {% if now == ("0.0"|float) %} {% set change = ("0.0"|float) %} {% endif %} @@ -99,8 +99,8 @@ sensor: {% set min = states("sensor.climate_temp_min")|float %} {% set max = states("sensor.climate_temp_max")|float %} {% set target = states("sensor.climate_temp")|float %} - {% set temp_inside = states("sensor.garten_temperatur_temperature")|float %} - {% set temp_outside = states("sensor.temperature_outside")|float %} + {% set temp_inside = states("sensor.kai_regal_temperature")|float %} + {% set temp_outside = states("sensor.garten_huette_temperature")|float %} {% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %} {% set accuracy = states("input_number.climate_temp_accuracy") |float %} {% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %} @@ -118,10 +118,10 @@ sensor: climate_temp_difference: friendly_name: difference to target value_template: > - {% if states("sensor.garten_temperatur_temperature") == "unknown" %} + {% if states("sensor.kai_regal_temperature") == "unknown" %} {{ 0 | float }} {% else %} - {{ (states("sensor.garten_temperatur_temperature") | float - (states.sensor.climate_temp.state | float) ) | round(2) }} + {{ (states("sensor.kai_regal_temperature") | float - (states.sensor.climate_temp.state | float) ) | round(2) }} {% endif %} unit_of_measurement: '°C' - platform: template @@ -129,10 +129,10 @@ sensor: climate_temp_difference_inside_outside: friendly_name: difference inside to outside value_template: > - {% if states("sensor.garten_temperatur_temperature") == "unknown" %} + {% if states("sensor.kai_regal_temperature") == "unknown" %} {{ 0 | float }} {% else %} - {{ (states("sensor.temperature_outside")|float - states("sensor.garten_temperatur_temperature")|float) | round(2) }} + {{ (states("sensor.garten_huette_temperature")|float - states("sensor.kai_regal_temperature")|float) | round(2) }} {% endif %} unit_of_measurement: '°C'