Hi! Im new to HA and not very good in Coding. I wanted to make a calculation when i can open the Window to fill with Cooler air
Whats available
Temperature Indoor (example 10°C)
Temperature Outdoor (example 20°C)
- sensor:
- name: Tempdifference
unit_of_measurement: "°C"
state: >
{% set indoor = states('sensor.netatmo__weather_station_temperature') | float %}
{% set outdoor = states('sensor.netatmo__weather_station_outdoor_module_temperature') | float %}
{{ ((indoor - outdoor)) }}
Calculation 10-20 = **-**10 but it shows me allways 10. Is there a workaround to archive that the - gets also out?
Thanks for your Help!