Compare commits

...

8 Commits

5 changed files with 125 additions and 32 deletions

View File

@ -1 +1 @@
2025.5.1
2025.5.2

View File

@ -6204,3 +6204,70 @@
entity_id: input_boolean.shower_mode
alias: Routing
mode: restart
- id: '1747986913670'
alias: School Status Notifications
description: Sends alert notifications to all phones when school is placed under
a two hour delay or cancelled for the day
triggers:
- trigger: state
entity_id:
- input_boolean.two_hour_delay
from: 'off'
to: 'on'
id: delay
alias: Two Hour Delay
- trigger: state
entity_id:
- input_boolean.school_cancelled
from: 'off'
to: 'on'
id: cancel
alias: Cancelled
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- delay
alias: Two Hour Delay
sequence:
- alias: Send Notification
action: script.text_notify
metadata: {}
data:
type: alert
title: School Alert
message: Defiance City Schools is under a two hour delay!
tag: two-hour-delay
who: all
- conditions:
- condition: trigger
id:
- cancel
alias: Cancelled
sequence:
- action: script.text_notify
metadata: {}
data:
type: alert
who: all
message: clear_notification
tag: two-hour-delay
alias: Clear previous delay notification
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- alias: Send Notification
action: script.text_notify
metadata: {}
data:
type: alert
title: School Alert
message: Defiance City Schools has closed for today!
tag: school-cancelled
who: all
alias: Routing
mode: restart

View File

@ -53,7 +53,6 @@ weather:
{{ states(result) | float }}
forecast_daily_template: >
{% set forecasts = [
states.sensor.weatherflow_daily_weather_forecast.attributes,
states.sensor.weather_com_daily_weather_forecast.attributes,
states.weather.kdfi_daynight.attributes,
states.sensor.pirateweather_daily_weather_forecast.attributes,
@ -63,8 +62,7 @@ weather:
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
forecast_hourly_template: >
{% set forecasts = [
states.sensor.weatherflow_hourly_weather_forecast.attributes,
states.sensor.weather_com_hourly_weather_forecast,
states.sensor.weather_com_hourly_weather_forecast.attributes,
states.sensor.pirateweather_hourly_weather_forecast.attributes
] %}
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
@ -168,8 +166,7 @@ weather:
{{ states(result) | float }}
forecast_hourly_template: >
{% set forecasts = [
states.sensor.weatherflow_hourly_weather_forecast.attributes,
states.sensor.weather_com_hourly_weather_forecast,
states.sensor.weather_com_hourly_weather_forecast.attributes,
states.weather.tomorrow_io_stratton_ave_hourly.attributes,
states.sensor.pirateweather_hourly_weather_forecast.attributes
] %}
@ -804,26 +801,29 @@ template:
- name: Raining
unique_id: 232b43a4-4598-4315-ab76-42348c11e6ff
state: >
{{ states('sensor.total_rain_sensors') | int > 1 }}
icon: "{{ 'mdi:weather-rainy' if states('sensor.total_rain_sensors') | int > 1 else 'mdi:weather-cloudy' }}"
{{ states('sensor.home_tempest_precipitation_intensity') | float > 0 or
states('sensor.home_tempest_precipitation_type') in ['rain','hail','rain_hail'] or
states('sensor.home_tempest_cloud_sensors_precipitation_description') in ['rain','heavy_rain'] or
is_state('binary_sensor.home_tempest_cloud_binary_sensors_is_raining','on') }}
icon: "{{ 'mdi:weather-rainy' if this.state == 'on' else 'mdi:weather-cloudy' }}"
- sensor:
- name: Total Rain Sensors
unique_id: b7c2e709-8f5c-4263-aa1d-fa8280afcddb
unit_of_measurement: 'sensors'
state: >
{% set sensors = [
states.sensor.home_tempest_precipitation_type,
states.sensor.pirateweather_precip,
states.sensor.openweathermap_precipitation_kind,
states.sensor.tomorrow_io_stratton_ave_precipitation_type
] %}
{% set numeric_sensors = [
states.sensor.home_tempest_precipitation_intensity,
states.sensor.stratton_ave_precipitation
] %}
{% set c1 = sensors | selectattr('state','eq','rain') | list | count %}
{% set c2 = numeric_sensors | map(attribute='state') | map('float') | select('gt',0) | list | count %}
{{ (c1 + c2) | int }}
# - name: Total Rain Sensors
# unique_id: b7c2e709-8f5c-4263-aa1d-fa8280afcddb
# unit_of_measurement: 'sensors'
# state: >
# {% set sensors = [
# states.sensor.home_tempest_precipitation_type,
# states.sensor.pirateweather_precip,
# states.sensor.openweathermap_precipitation_kind,
# states.sensor.tomorrow_io_stratton_ave_precipitation_type
# ] %}
# {% set numeric_sensors = [
# states.sensor.home_tempest_precipitation_intensity,
# states.sensor.stratton_ave_precipitation
# ] %}
# {% set c1 = sensors | selectattr('state','eq','rain') | list | count %}
# {% set c2 = numeric_sensors | map(attribute='state') | map('float') | select('gt',0) | list | count %}
# {{ (c1 + c2) | int }}
- name: Current Forecast
unique_id: c0faea33-2ac3-40f1-8558-584c3f5d6b16
icon: mdi:weather-sunny

View File

@ -106,7 +106,7 @@ template:
unique_id: 2987ae95-f55d-4994-b9dd-018278d2f5ad
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ state_attr('sensor.minnesota_twins','opponent_abbr') in ['CLE','LAD'] or sports_inhibit('sensor.minnesota_twins') }}
{{ sports_inhibit('sensor.minnesota_twins') }}
- name: Minnesota Twins Event Today
unique_id: 30055cb3-d259-4cef-90e1-7dea0a5cb439
state: >
@ -116,7 +116,7 @@ template:
unique_id: b0980d47-d762-4f23-97b1-9e88da729d8f
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ sports_inhibit('sensor.cleveland_guardians') }}
{{ state_attr('sensor.cleveland_guardians','opponent_abbr') in ['MIN','LAD'] or sports_inhibit('sensor.cleveland_guardians') }}
- name: Cleveland Guardians Event Today
unique_id: 985a7b2c-9ebd-4a2e-8ee2-2ab5359310e0
state: >
@ -126,7 +126,7 @@ template:
unique_id: 2c6aae6e-eff6-46e5-bee9-311f9bbc0c0e
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ state_attr('sensor.los_angeles_dodgers','opponent_abbr') in ['CLE'] or sports_inhibit('sensor.los_angeles_dodgers') }}
{{ state_attr('sensor.los_angeles_dodgers','opponent_abbr') in ['MIN'] or sports_inhibit('sensor.los_angeles_dodgers') }}
- name: Los Angeles Dodgers Event Today
unique_id: 7c2bd060-ea2c-4b81-8af7-3e6b9b3c639d
state: >

View File

@ -1441,16 +1441,42 @@ evening_on_second_floor:
goodnight_in_basement:
alias: Goodnight in Basement
sequence:
- service: light.turn_off
target:
- target:
area_id:
- basement_studio
- furnace_room
data: {}
- service: fan.turn_off
target:
action: light.turn_off
alias: Turn lights off
- target:
entity_id: fan.basement_fan
data: {}
action: fan.turn_off
alias: Turn fan off
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.adaptive_lighting_sleep_mode_basement_studio
alias: Turn off sleep mode
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.adaptive_lighting_basement_studio
alias: Turn on adaptive lighting
- action: input_text.set_value
metadata: {}
data:
value: Adaptive
target:
entity_id: input_text.basement_studio_selected_scene
alias: Reset selected scene text
goodnight_on_first_floor:
alias: Goodnight on First Floor
sequence: