I'm getting about tired of Pirateweather at this point...

This commit is contained in:
2023-07-02 18:08:34 -04:00
parent 1e2e2e4c88
commit 16cfabcebf
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
{% set time = time|default('day') %} {% set time = time|default('day') %}
{% if method == 'text' %} {% if method == 'text' %}
{% if type in ['current','full'] %} {% if type in ['current','full'] %}
The current weather is {{ states('weather.iron_nerd_weather_station') | lower }}. It is {{ state_attr('weather.iron_nerd_weather_station','temperature') | round }} degrees outside and feels like {{ states('sensor.pirateweather_apparent_temperature') | round }} degrees. The current weather is {{ states('weather.iron_nerd_weather_station') | lower }}. It is {{ state_attr('weather.iron_nerd_weather_station','temperature') | round }} degrees outside and feels like {{ states('sensor.stratton_ave_apparent_temperature') | round }} degrees.
{% endif %} {% endif %}
{% if type in ['forecast','full'] %} {% if type in ['forecast','full'] %}
{% if 14400 <= ct <= 61200 %} {% if 14400 <= ct <= 61200 %}

View File

@ -64,12 +64,12 @@ template:
- name: Heat Index Threshold - name: Heat Index Threshold
unique_id: aae2cd89-dde2-4557-923c-b476d1b49b88 unique_id: aae2cd89-dde2-4557-923c-b476d1b49b88
state: > state: >
{% set feelslike = states('sensor.pirateweather_apparent_temperature') | int %} {% set feelslike = states('sensor.stratton_ave_apparent_temperature') | int %}
{% set threshold = states('input_number.heat_index_threshold') | int %} {% set threshold = states('input_number.heat_index_threshold') | int %}
{{ feelslike >= threshold }} {{ feelslike >= threshold }}
device_class: heat device_class: heat
attributes: attributes:
current_temp: "{{ states('sensor.pirateweather_apparent_temperature') | int }}" current_temp: "{{ states('sensor.stratton_ave_apparent_temperature') | int }}"
threshold: "{{ states('input_number.heat_index_threshold') | int }}" threshold: "{{ states('input_number.heat_index_threshold') | int }}"
- name: Cold Threshold - name: Cold Threshold
unique_id: a7c97b91-6d42-433a-a96b-94e39c58d63f unique_id: a7c97b91-6d42-433a-a96b-94e39c58d63f
@ -94,7 +94,7 @@ template:
- name: Wind Chill Threshold - name: Wind Chill Threshold
unique_id: c734b642-b85d-465c-b3c3-aadbe4a00dc1 unique_id: c734b642-b85d-465c-b3c3-aadbe4a00dc1
state: > state: >
{% set feelslike = states('sensor.pirateweather_apparent_temperature') | int %} {% set feelslike = states('sensor.stratton_ave_apparent_temperature') | int %}
{% set threshold = states('input_number.wind_chill_threshold') | int %} {% set threshold = states('input_number.wind_chill_threshold') | int %}
{{ feelslike <= threshold }} {{ feelslike <= threshold }}
device_class: cold device_class: cold
@ -148,7 +148,7 @@ sensor:
# - platform: statistics # - platform: statistics
# unique_id: 6192c95a-8fd1-4ba0-87de-d06fdc071d6b # unique_id: 6192c95a-8fd1-4ba0-87de-d06fdc071d6b
# name: Apparent Temp Average # name: Apparent Temp Average
# entity_id: sensor.pirateweather_apparent_temperature # entity_id: sensor.stratton_ave_apparent_temperature
# state_characteristic: average_linear # state_characteristic: average_linear
# max_age: # max_age:
# days: 7 # days: 7
@ -811,10 +811,10 @@ sensor:
It is {{ states('sensor.clothing_forecast') }} right now so I suggest wearing shorts. It is {{ states('sensor.clothing_forecast') }} right now so I suggest wearing shorts.
{% endif %} {% endif %}
{% if is_state('binary_sensor.heat_index_threshold','on') %} {% if is_state('binary_sensor.heat_index_threshold','on') %}
Warning, the heat index is {{ states('sensor.pirateweather_apparent_temperature') | float | round }} degrees right now, which is very high. So please make sure to stay hydrated! Warning, the heat index is {{ states('sensor.stratton_ave_apparent_temperature') | float | round }} degrees right now, which is very high. So please make sure to stay hydrated!
{% endif %} {% endif %}
{% if is_state('binary_sensor.wind_chill_threshold','on') %} {% if is_state('binary_sensor.wind_chill_threshold','on') %}
Warning, it currently feels like {{ states('sensor.pirateweather_apparent_temperature') | float | round }} degrees outside, so please make sure all exposed skin is covered to avoid frostbite! Warning, it currently feels like {{ states('sensor.stratton_ave_apparent_temperature') | float | round }} degrees outside, so please make sure all exposed skin is covered to avoid frostbite!
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if states('sensor.thermal_comfort_simmerindex') in ['extremely_warm','danger_of_heatstroke','extreme_danger_of_heatstroke','circulatory_collapse_imminent'] %} {% if states('sensor.thermal_comfort_simmerindex') in ['extremely_warm','danger_of_heatstroke','extreme_danger_of_heatstroke','circulatory_collapse_imminent'] %}