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:
- type: 'custom:button-card'
template: card_generic_swap
entity: sensor.temperature_kai_temperature
entity: sensor.garten_temperatur_temperature
variables:
ulm_card_generic_swap_name: inside
- type: 'custom:button-card'
@ -28,7 +28,7 @@
header:
show: false
series:
- entity: sensor.temperature_kai_temperature
- entity: sensor.garten_temperatur_temperature
type: line
name: Inside
group_by:

View File

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

View File

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

View File

@ -99,7 +99,7 @@ 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.temperature_kai_temperature")|float %}
{% set temp_inside = states("sensor.garten_temperatur_temperature")|float %}
{% set temp_outside = states("sensor.temperature_outside")|float %}
{% set inside_max = temp_inside + states("input_number.climate_temp_accuracy")|float %}
{% set accuracy = states("input_number.climate_temp_accuracy") |float %}
@ -118,10 +118,10 @@ sensor:
climate_temp_difference:
friendly_name: difference to target
value_template: >
{% if states("sensor.temperature_kai_temperature") == "unknown" %}
{% if states("sensor.garten_temperatur_temperature") == "unknown" %}
{{ 0 | float }}
{% 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 %}
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.temperature_kai_temperature") == "unknown" %}
{% if states("sensor.garten_temperatur_temperature") == "unknown" %}
{{ 0 | float }}
{% 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 %}
unit_of_measurement: '°C'

View File

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

View File

@ -8,7 +8,7 @@ script:
{% set condition = states("sensor.temperature_today_condition") %}
{% set currentTemp = states("sensor.temperature_outside") %}
{% 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.
Todays max temperature will be {{ maxTemp }}°C.
It is {{ insideTemp }}°C inside and recommended to {{ recommendation }}.