Pirateweather -> Accuweather for current weather

This commit is contained in:
darthsandmann
2022-08-05 12:54:01 +02:00
parent 3933d3b42a
commit ff7a978c6b
9 changed files with 146 additions and 19 deletions

View File

@ -6,6 +6,7 @@ automation:
trigger:
- platform: state
entity_id: sensor.climate_temp_recommendation
from: 'open window'
to: 'close window'
action:
- service: notify.notify
@ -15,6 +16,7 @@ automation:
trigger:
- platform: state
entity_id: sensor.climate_temp_recommendation
from: 'close window'
to: 'open window'
action:
- service: notify.notify

View File

@ -103,7 +103,7 @@ sensor:
{% 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_outside = states("sensor.temperature_outside_pirateweather")|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 %}
{% if temp_inside >= target and temp_inside >= (temp_outside - accuracy) %}