Fixing more things I shouldn't have to fix because Pirateweather

This commit is contained in:
2023-07-02 19:34:49 -04:00
parent 4ea1f19e10
commit d4073e1f0b
4 changed files with 46 additions and 20 deletions

View File

@ -507,7 +507,7 @@ script:
entity_id: input_boolean.hot_day
- if:
- condition: template
value_template: "{{ states('sensor.todays_high_temp') | int <= states('input_number.cold_day_threshold') | int }}"
value_template: "{{ states('sensor.today_corrected_high_temp') | int <= states('input_number.cold_day_threshold') | int }}"
then:
- service: input_boolean.turn_on
target:
@ -628,7 +628,7 @@ script:
data:
time: >
{% set low = states('sensor.overnight_lowest_temperature') | int %}
{% set high = states('sensor.todays_high_temp') | int %}
{% set high = states('sensor.today_corrected_high_temp') | int %}
{% if low > 60 or is_state('input_boolean.hot_day','on') %}
22:30
{% elif 50 <= low <= 60 %}
@ -709,7 +709,7 @@ script:
entity_id: input_datetime.emma_bedtime
data:
time: >
{% set high = states('sensor.todays_high_temp') | int %}
{% set high = states('sensor.today_corrected_high_temp') | int %}
{% set low = states('sensor.overnight_lowest_temperature') | int %}
{% if is_state('input_boolean.hot_day','on') %}
22:00