fixes
This commit is contained in:
parent
e667810fb0
commit
e1825ce91b
@ -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:
|
||||
|
@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user