Skip to content

Commit

Permalink
Update to 2025.1.0
Browse files Browse the repository at this point in the history
- more weather template, graph updates
- spa offline alert
  • Loading branch information
jazzyisj committed Dec 29, 2024
1 parent fdf1dc9 commit 0c24ad4
Show file tree
Hide file tree
Showing 19 changed files with 108 additions and 48 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Home Assistant Configuration

[<img src="https://github.com/jazzyisj/home-assistant-config/blob/master/www/screenshots/browser_home.png" alt="Home" height="200" width="400"/>](https://github.com/jazzyisj/home-assistant-config/wiki)
[<img src="https://github.com/jazzyisj/home-assistant-config/blob/master/www/screenshots/browser_home2.png" alt="Home" height="200" width="400"/>](https://github.com/jazzyisj/home-assistant-config/wiki)
[<img src="https://github.com/jazzyisj/home-assistant-config/blob/master/www/screenshots/browser_home.png" alt="Home" width="400" height="230"/>](https://github.com/jazzyisj/home-assistant-config/wiki)
[<img src="https://github.com/jazzyisj/home-assistant-config/blob/master/www/screenshots/browser_home2.png" alt="Home" width="400" height="230"/>](https://github.com/jazzyisj/home-assistant-config/wiki)
## [View Dashboard Screenshots](https://github.com/jazzyisj/home-assistant-config/wiki)

##### <font color='cyan'>Updated 24-12-15</font>
Expand Down
3 changes: 3 additions & 0 deletions automations/notify/notify_alert_announcements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
The current humidex is {{ states('sensor.outdoor_apparent_temperature') | int('unknown') }} nut sack soakin degrees.
{%- elif t == 'alert.spa_low_temperature' %}
The hot tub temperature alert is on! The hot tub temperature is only {{ states('sensor.spa_temperature') | int('unknown') }} degrees.
{%- elif t == 'alert.spa_offline' %}
The hot tub is offline. Check the breaker and make sure the hot tub is on.
{%- elif t == 'alert.leak_detected' %}
{%- set entities = expand(state_attr('binary_sensor.leak_detected_alert', 'entity_id')) | map(attribute='name') | list %}
Attention! Moisture has been detected by the {{ clist_suffix(entities, false, false, 'leak sensor') }}!
Expand Down Expand Up @@ -168,6 +170,7 @@
- alert.power_use
- alert.indoor_sump
- alert.outdoor_sump
- alert.spa_offline
to: "on"
not_from:
- unknown
Expand Down
13 changes: 9 additions & 4 deletions logging/recorder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ include:
- sensor.current_condition
- sensor.outdoor_temperature
- sensor.outdoor_apparent_temperature
- sensor.outdoor_temperature_daily_average
- sensor.outdoor_temperature_24_hour_average_mean #TEST
- sensor.outdoor_temperature_24_hour_average_median #TEST
- sensor.outdoor_temperature_24_hour_average_step
- sensor.outdoor_temperature_daily_low_time
- sensor.outdoor_temperature_daily_high_time
- sensor.outdoor_high_temperature
- sensor.outdoor_low_temperature
- sensor.outdoor_normal_high_temperature
Expand All @@ -63,6 +67,7 @@ include:
- sensor.outdoor_low_temperature_differential
- sensor.dew_point
- sensor.outdoor_humidity
- sensor.outdoor_humidity_24_hour_average_step
- sensor.fog_probability
- sensor.precipitation_probability
- sensor.precipitation_intensity_text
Expand All @@ -72,11 +77,11 @@ include:
- sensor.rain_accumulation_today # statistics
- sensor.rain_accumulation_last_hour
- sensor.rain_accumulation_last_24_hours
- sensor.rain_max_24_hours # statistics
- sensor.rain_max_last_24_hours # statistics
- sensor.snow_accumulation_today # statistics
- sensor.snow_accumulation_last_hour
- sensor.snow_accumulation_last_24_hours
- sensor.snow_max_24_hours # statistics
- sensor.snow_max_last_24_hours # statistics
- sensor.ice_accumulation_today # statistics
- sensor.ice_accumulation_last_hour
- sensor.ice_accumulation_last_24_hours
Expand All @@ -96,7 +101,7 @@ include:
- sensor.wind_gust
- sensor.wind_lull
- sensor.wind_bearing
- sensor.wind_bearing_average
- sensor.wind_bearing_24_hour_average_circle
- sensor.cloud_coverage
- sensor.visibility
- sensor.air_quality_index
Expand Down
17 changes: 12 additions & 5 deletions packages/spa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ homeassistant:
alert.balboa_connected:
entity_picture: !secret BALBOA_ICON
category: spa
alert.spa_offline:
icon: mdi:hot-tub
category: spa
tts_repeat: true
tts_timeout: 60
quiet_play: true
save_message: true
alert.spa_low_temperature:
icon: mdi:snowflake-alert
category: spa
Expand Down Expand Up @@ -94,13 +101,13 @@ alert:

spa_offline:
name: "Spa Offline"
title: "Balboa Spa Offline"
title: "Spa Offline"
message: |
{%- from 'speech.jinja' import plural_qty -%}
{%- set hours = ((now() | as_timestamp - states.binary_sensor.balboa_integration_connected.last_changed | as_timestamp) / 3600) | int %}
Time to change the hot tub water. It was last changed {{ plural_qty('day', hours, false) }} ago.
{%- set hours = ((now() | as_timestamp - states.binary_sensor.balboa_integration_connected.last_changed | as_timestamp) / 3600) | int(-1) %}
The spa has been offline for {{ plural_qty('hour', hours, false) }}.
done_message: clear_notification
entity_id: binary_sensor.spa_water_change_alert
entity_id: binary_sensor.spa_offline_alert
state: "on"
repeat: 720
notifiers: jason
Expand All @@ -113,7 +120,7 @@ alert:
clickAction: /ui-mobile/spa
actions:
- title: "Pause"
action: pause_alert_spa_water_change
action: pause_alert_spa_offline

balboa_connected:
name: "Balboa Connected"
Expand Down
3 changes: 0 additions & 3 deletions packages/weather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ homeassistant:
camera.windsor_radar:
control: hidden

sensor.wind_bearing_average:
state_class: measurement

input_select:
previous_envcan_alert_severity:
name: "Previous EnvCan Alert Severity"
Expand Down
11 changes: 6 additions & 5 deletions templates/spa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@
{{ is_state('binary_sensor.balboa_integration_connected', 'off')
and is_state('input_boolean.spa_alerts', 'on') }}
- name: "Balboa Offline Alert"
unique_id: balboa_offline_alert
- name: "Spa Offline Alert"
unique_id: spa_offline_alert
device_class: problem
delay_on: 14400
delay_on: 3600
state: >
{{ is_state('binary_sensor.balboa_integration_connected', 'off')
and is_state('input_boolean.spa_alerts', 'on') }}
{{ (is_state('binary_sensor.balboa_integration_connected', 'off')
or is_state('device_tracker.balboa_spa', 'not_home'))
and is_state('input_boolean.spa_alerts', 'on') }}
- name: "Hot Tub Energy Monitor Connected"
unique_id: hot_tub_energy_monitor_connected
Expand Down
4 changes: 2 additions & 2 deletions templates/weather/weather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1773,10 +1773,10 @@
icon: mdi:weather-windy
state: >
{% from 'speech.jinja' import cardinal_direction %}
{{- cardinal_direction(states('sensor.wind_bearing_average')) -}}
{{- cardinal_direction(states('sensor.wind_bearing_24_hour_average_circle')) -}}
attributes:
provider: "{{ state_attr('sensor.wind_bearing', 'provider') }}"
availability: "{{ is_number(states('sensor.wind_bearing_average')) }}"
availability: "{{ is_number(states('sensor.wind_bearing_24_hour_average_circle')) }}"

- name: "Wind Beaufort Display"
unique_id: wind_beaufort_display
Expand Down
7 changes: 7 additions & 0 deletions ui/card/weather/include/outdoor_humidity_entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
{% from 'weather.jinja' import humidity_color %}
{{ humidity_color(states('sensor.outdoor_humidity')) }}
- entity: sensor.outdoor_humidity_24_hour_average_step
name: "Average Last 24 Hours"
card_mod:
style: >
{% from 'weather.jinja' import temp_color %}
{{ temp_color(states('sensor.outdoor_temperature_24_hour_average_step')) }}
- type: button
entity: sensor.outdoor_humidity
name: "Humidity Map"
Expand Down
20 changes: 17 additions & 3 deletions ui/card/weather/include/outdoor_temperature_entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,26 @@
{% from 'weather.jinja' import temp_color %}
{{ temp_color(states('sensor.outdoor_temperature_daily_low')) }}
- entity: sensor.outdoor_temperature_daily_average
name: "Average (Last 24)"
- entity: sensor.outdoor_temperature_24_hour_average_mean
name: "Average Last 24 (Mean)"
card_mod:
style: >
{% from 'weather.jinja' import temp_color %}
{{ temp_color(states('sensor.outdoor_temperature_daily_average')) }}
{{ temp_color(states('sensor.outdoor_temperature_24_hour_average_mean')) }}
- entity: sensor.outdoor_temperature_24_hour_average_median
name: "Average Last 24 (Median)"
card_mod:
style: >
{% from 'weather.jinja' import temp_color %}
{{ temp_color(states('sensor.outdoor_temperature_24_hour_average_median')) }}
- entity: sensor.outdoor_temperature_24_hour_average_step
name: "Average Last 24 (Step)"
card_mod:
style: >
{% from 'weather.jinja' import temp_color %}
{{ temp_color(states('sensor.outdoor_temperature_24_hour_average_step')) }}
- type: button
entity: sensor.outdoor_temperature
Expand Down
14 changes: 7 additions & 7 deletions ui/card/weather/include/weather_condition_colors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ lightning:
background: rgb(100, 100, 100)
foreground: rgb(232, 235, 87)
lightning-rainy:
background: rgb(4, 61, 176)
background: rgb(12, 36, 150)
foreground: rgb(232, 235, 87)
partlycloudy:
background: rgb(90, 116, 158)
foreground: rgb(232, 235, 87)
rainy:
background: rgb(2, 33, 94)
foreground: rgb(33, 145, 237)
background: rgb(31, 50, 149)
foreground: rgb(97, 197, 250)
pouring:
background: rgb(12, 36, 150)
background: rgb(2, 33, 94)
foreground: rgb(97, 197, 250)
snowy:
background: rgb(170, 195, 203)
foreground: rgb(20, 110, 170)
background: rgb(146, 166, 172)
foreground: rgb(97, 197, 250)
snowy-rainy:
background: rgb(51, 66, 71)
background: rgb(69, 101, 112)
foreground: rgb(12, 36, 150)
sunny:
background: rgb(140, 200, 255)
Expand Down
4 changes: 2 additions & 2 deletions ui/card/weather/include/wind_entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
- entity: sensor.wind_bearing
name: "Bearing"

- entity: sensor.wind_full_direction
- entity: sensor.wind_direction
name: "Direction"

- entity: sensor.wind_direction_average
name: "Average Wind Direction"
name: "Average Last 24"

- type: conditional
conditions:
Expand Down
12 changes: 6 additions & 6 deletions ui/dashboard/subview/weather/atmospheric_conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,28 @@ sections:
cards:
- type: statistic
entity: sensor.barometric_pressure
name: "Pressure Avg"
name: "Pressure Avg (All)"
stat_type: mean
period:
fixed_period:

- type: statistic
entity: sensor.outdoor_humidity
name: "Humidity Avg"
entity: sensor.outdoor_humidity_24_hour_average_step
name: "Humidity Avg (All)"
stat_type: mean
period:
fixed_period:

- type: statistic
entity: sensor.cloud_coverage
name: "Cloud Avg"
entity: sensor.cloud_coverage #TODO helper step?
name: "Cloud Avg (All)"
stat_type: mean
period:
fixed_period:

- type: statistic
entity: sensor.uv_index_today
name: "UV Index Avg"
name: "UV Index Avg (All)"
stat_type: mean
period:
fixed_period:
Expand Down
4 changes: 2 additions & 2 deletions ui/dashboard/subview/weather/precipitation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ sections:
days: 365

- type: statistic
entity: sensor.rain_max_24_hours
entity: sensor.rain_max_last_24_hours
name: "Rain (Max/24)"
stat_type: max
period:
fixed_period:

- type: statistic
entity: sensor.snow_max_24_hours
entity: sensor.snow_max_last_24_hours
name: "Snow (Max/24)"
stat_type: max
period:
Expand Down
2 changes: 1 addition & 1 deletion ui/dashboard/subview/weather/temperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ sections:
period:
fixed_period:


- type: statistic
entity: sensor.outdoor_temperature
name: "Low Temp (All)"
Expand Down Expand Up @@ -87,6 +86,7 @@ sections:
stat_type: max
period:
fixed_period:

- type: grid
column_span: 3
cards:
Expand Down
4 changes: 2 additions & 2 deletions ui/dashboard/subview/weather/wind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ sections:
fixed_period:

- type: statistic
entity: sensor.wind_speed
entity: sensor.wind_speed #TODO helper median?
name: "Speed Avg (All)"
stat_type: mean
period:
fixed_period:

- type: statistic
entity: sensor.wind_bearing_average
entity: sensor.wind_bearing_24_hour_average_circle
name: "Bearing Avg (All)"
stat_type: mean
period:
Expand Down
7 changes: 7 additions & 0 deletions ui/graph/weather/atmospheric_conditions_detail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ series:
opacity: 0.8
color: rgb(76, 138, 252)

- entity: sensor.outdoor_humidity_24_hour_average_step
name: "Humidity Avg"
yaxis_id: humidity
extend_to: now
opacity: 0.8
color: rgb(91, 224, 149)

- entity: sensor.hourly_weather
name: " "
yaxis_id: humidity
Expand Down
16 changes: 15 additions & 1 deletion ui/graph/weather/temperature_detail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,27 @@ series:
color: rgb(207, 232, 47)
color_threshold: !include /config/ui/graph/include/temperature_line_color.yaml

- entity: sensor.outdoor_temperature_daily_average
- entity: sensor.outdoor_temperature_24_hour_average_mean
name: "Average (24h)"
yaxis_id: temperature
extend_to: now
opacity: 0.8
color: rgb(69, 237, 195)

- entity: sensor.outdoor_temperature_24_hour_average_median
name: "Median (24h)"
yaxis_id: temperature
extend_to: now
opacity: 0.8
color: rgb(250, 83, 0)

- entity: sensor.outdoor_temperature_24_hour_average_step
name: "Median (24h)"
yaxis_id: temperature
extend_to: now
opacity: 0.8
color: rgb(0, 117, 250)

- entity: sensor.dew_point
name: "Dew Point"
yaxis_id: temperature
Expand Down
2 changes: 1 addition & 1 deletion ui/graph/weather/wind_detail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ yaxis:
fontSize: 16px
fontWeight: normal
series:
- entity: sensor.wind_bearing_average
- entity: sensor.wind_bearing_24_hour_average_circle
name: "Average Wind Direction"
yaxis_id: bearing
extend_to: now
Expand Down
9 changes: 7 additions & 2 deletions ui/statistics_graph/wind_bearing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
type: statistics-graph
title: "Wind Bearing"
chart_type: line
hide_legend: true
hide_legend: false
stat_types:
- mean
logarithmic_scale: false
days_to_show: 1095
period: month
entities:
- sensor.wind_bearing
- entity: sensor.wind_bearing
name: "Bearing"

- entity: sensor.wind_bearing_24_hour_average_circle
name: "Average"

0 comments on commit 0c24ad4

Please sign in to comment.