This commit is contained in:
darthsandmann 2023-02-11 20:03:41 +01:00
parent 6efcd30515
commit cbd532ada1
6 changed files with 13 additions and 13 deletions

View File

@ -9,7 +9,7 @@
cards: cards:
- type: 'custom:button-card' - type: 'custom:button-card'
template: card_generic_swap template: card_generic_swap
entity: sensor.temperature_kai_temperature entity: sensor.garten_temperatur_temperature
variables: variables:
ulm_card_generic_swap_name: inside ulm_card_generic_swap_name: inside
- type: 'custom:button-card' - type: 'custom:button-card'
@ -28,7 +28,7 @@
header: header:
show: false show: false
series: series:
- entity: sensor.temperature_kai_temperature - entity: sensor.garten_temperatur_temperature
type: line type: line
name: Inside name: Inside
group_by: group_by:

View File

@ -8,7 +8,7 @@
header: header:
show: false show: false
series: series:
- entity: sensor.temperature_kai_temperature - entity: sensor.garten_temperatur_temperature
type: line type: line
name: Inside name: Inside
group_by: group_by:
@ -26,7 +26,7 @@
cards: cards:
- type: 'custom:button-card' - type: 'custom:button-card'
template: card_generic template: card_generic
entity: sensor.temperature_kai_temperature entity: sensor.garten_temperatur_temperature
variables: variables:
ulm_card_generic_name: Inside ulm_card_generic_name: Inside
- type: 'custom:button-card' - type: 'custom:button-card'

View File

@ -8,7 +8,7 @@ sensor:
sensors: sensors:
temperature_inside: temperature_inside:
value_template: > value_template: >
{{ states('sensor.temperature_kai_temperature') }} {{ states('sensor.garten_temperatur_temperature') }}
friendly_name: 'Temperature' friendly_name: 'Temperature'
unit_of_measurement: "°C" unit_of_measurement: "°C"
device_class: temperature device_class: temperature

View File

@ -99,7 +99,7 @@ sensor:
{% set min = states("sensor.climate_temp_min")|float %} {% set min = states("sensor.climate_temp_min")|float %}
{% set max = states("sensor.climate_temp_max")|float %} {% set max = states("sensor.climate_temp_max")|float %}
{% set target = states("sensor.climate_temp")|float %} {% set target = states("sensor.climate_temp")|float %}
{% set temp_inside = states("sensor.temperature_kai_temperature")|float %} {% set temp_inside = states("sensor.garten_temperatur_temperature")|float %}
{% set temp_outside = states("sensor.temperature_outside")|float %} {% set temp_outside = states("sensor.temperature_outside")|float %}
{% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %} {% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %}
{% set accuracy = states("input_number.climate_temp_accuracy") |float %} {% set accuracy = states("input_number.climate_temp_accuracy") |float %}
@ -118,10 +118,10 @@ sensor:
climate_temp_difference: climate_temp_difference:
friendly_name: difference to target friendly_name: difference to target
value_template: > value_template: >
{% if states("sensor.temperature_kai_temperature") == "unknown" %} {% if states("sensor.garten_temperatur_temperature") == "unknown" %}
{{ 0 | float }} {{ 0 | float }}
{% else %} {% else %}
{{ (states("sensor.temperature_kai_temperature") | float - (states.sensor.climate_temp.state | float) ) | round(2) }} {{ (states("sensor.garten_temperatur_temperature") | float - (states.sensor.climate_temp.state | float) ) | round(2) }}
{% endif %} {% endif %}
unit_of_measurement: '°C' unit_of_measurement: '°C'
- platform: template - platform: template
@ -129,10 +129,10 @@ sensor:
climate_temp_difference_inside_outside: climate_temp_difference_inside_outside:
friendly_name: difference inside to outside friendly_name: difference inside to outside
value_template: > value_template: >
{% if states("sensor.temperature_kai_temperature") == "unknown" %} {% if states("sensor.garten_temperatur_temperature") == "unknown" %}
{{ 0 | float }} {{ 0 | float }}
{% else %} {% else %}
{{ (states("sensor.temperature_outside")|float - states("sensor.temperature_kai_temperature")|float) | round(2) }} {{ (states("sensor.temperature_outside")|float - states("sensor.garten_temperatur_temperature")|float) | round(2) }}
{% endif %} {% endif %}
unit_of_measurement: '°C' unit_of_measurement: '°C'

View File

@ -5,7 +5,7 @@ homekit:
filter: filter:
include_entities: include_entities:
- sensor.temperature_kai_humidity - sensor.temperature_kai_humidity
- sensor.temperature_kai_temperature - sensor.garten_temperatur_temperature
- light.all_indirect - light.all_indirect
- light.all_direct - light.all_direct
- script.light_store_off - script.light_store_off
@ -22,7 +22,7 @@ homekit:
entity_config: entity_config:
sensor.temperature_kai_humidity: sensor.temperature_kai_humidity:
name: Feuchtigkeit name: Feuchtigkeit
sensor.temperature_kai_temperature: sensor.garten_temperatur_temperature:
name: Temperatur name: Temperatur
light.all_indirect: light.all_indirect:
name: Indirekt name: Indirekt

View File

@ -8,7 +8,7 @@ script:
{% set condition = states("sensor.temperature_today_condition") %} {% set condition = states("sensor.temperature_today_condition") %}
{% set currentTemp = states("sensor.temperature_outside") %} {% set currentTemp = states("sensor.temperature_outside") %}
{% set recommendation = states("sensor.climate_temp_recommendation") %} {% set recommendation = states("sensor.climate_temp_recommendation") %}
{% set insideTemp = states("sensor.temperature_kai_temperature") %} {% set insideTemp = states("sensor.garten_temperatur_temperature") %}
At the moment it is {{ condition }} outside with a temperature of {{ currentTemp }}°C. At the moment it is {{ condition }} outside with a temperature of {{ currentTemp }}°C.
Todays max temperature will be {{ maxTemp }}°C. Todays max temperature will be {{ maxTemp }}°C.
It is {{ insideTemp }}°C inside and recommended to {{ recommendation }}. It is {{ insideTemp }}°C inside and recommended to {{ recommendation }}.