Compare commits

...

5 Commits

3 changed files with 28 additions and 16 deletions

View File

@ -1 +1 @@
2025.2.5 2025.3.1

View File

@ -4,9 +4,9 @@
{% macro weatherInfo(type,method,time) %} {% macro weatherInfo(type,method,time) %}
{% set time = time|default('day') %} {% set time = time|default('day') %}
{% if method == 'text' %} {% if method in ['text','dashboard'] %}
{% 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.stratton_ave_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.home_temperature_feels_like') | round }} degrees.
{% endif %} {% endif %}
{% if type in ['forecast','full'] %} {% if type in ['forecast','full'] %}
{% if 14400 <= ct <= 61200 %} {% if 14400 <= ct <= 61200 %}
@ -19,15 +19,17 @@
{% if type in ['alerts','full'] %} {% if type in ['alerts','full'] %}
{% if is_state('input_boolean.tornado_alarm','on') %} {% if is_state('input_boolean.tornado_alarm','on') %}
We are under a tornado warning. If you are not already in shelter, you should be. Get on it! We are under a tornado warning. If you are not already in shelter, you should be. Get on it!
{% elif states('sensor.weatheralerts_active_alerts') > '0' %} {% elif states('sensor.weatheralerts_active_alerts') > '0' and method != 'dashboard' %}
Current weather alerts: {{ states('sensor.weather_alert_string') }}. Current weather alerts: {{ states('sensor.weather_alert_string') }}.
{% endif %} {% endif %}
{% if is_state('binary_sensor.lightning_warning','on') %} {% if method != 'dashboard' %}
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} {% if is_state('binary_sensor.lightning_warning','on') %}
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away. {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
{% endif %} There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
{% if is_state('binary_sensor.raining','on') %} {% endif %}
It is currently raining. Make sure all doors and windows are closed! {% if is_state('binary_sensor.raining','on') %}
It is currently raining. Make sure all doors and windows are closed!
{% endif %}
{% endif %} {% endif %}
{% if state_attr('weather.iron_nerd_weather_station','visibility') | int < 3 %} {% if state_attr('weather.iron_nerd_weather_station','visibility') | int < 3 %}
Caution: Current outdoor visibility is {{ state_attr('weather.iron_nerd_weather_station','visibility') }} miles. Caution: Current outdoor visibility is {{ state_attr('weather.iron_nerd_weather_station','visibility') }} miles.
@ -101,7 +103,10 @@
{% macro weatherReport(type,method,time) %} {% macro weatherReport(type,method,time) %}
{% macro data() %} {% macro data() %}
{{ weatherInfo(type,method,time) | replace('clear-night','clear') | replace('partlycloudy','partly cloudy') }} {{ weatherInfo(type,method,time) |
replace('clear-night','clear') |
replace('partlycloudy','partly cloudy') |
replace('snowy-rainy','a mix of rain and snow') }}
{% endmacro %} {% endmacro %}
{{ cleanup(data()) }} {{ cleanup(data()) }}
{% endmacro %} {% endmacro %}

View File

@ -199,11 +199,18 @@ going_upstairs:
then: then:
- alias: Decide basement studio heater action - alias: Decide basement studio heater action
if: if:
- condition: numeric_state - alias: If temp below freezing and heat is on
entity_id: weather.iron_nerd_weather_station condition: and
attribute: temperature conditions:
below: 32 - condition: numeric_state
alias: Temperature below freezing entity_id: weather.iron_nerd_weather_station
attribute: temperature
below: 32
alias: Temperature below freezing
- condition: state
entity_id: climate.basement_studio_vtherm
state: heat
alias: Heat on
then: then:
- action: climate.set_preset_mode - action: climate.set_preset_mode
metadata: {} metadata: {}