Skip to content

Commit

Permalink
Update to v2024.12.3
Browse files Browse the repository at this point in the history
- ui tweaks
- bug fixes
- update unavailable entities package
- update screenshots
- update README
  • Loading branch information
jazzyisj committed Dec 15, 2024
1 parent 4a37778 commit 9cbf2eb
Show file tree
Hide file tree
Showing 38 changed files with 256 additions and 207 deletions.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Home Assistant Configuration

## [More Dashboard Screenshots](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" height="200" width="400"/>](https://github.com/jazzyisj/home-assistant-config/blob/master/www/screenshots/browser_home.png)

![Home](https://github.com/jazzyisj/home-assistant-config/blob/master/www/screenshots/browser_home.png)
## [View Dashboard Screenshots](https://github.com/jazzyisj/home-assistant-config/wiki)

##### <font color='cyan'>Updated 24-09-20</font>
##### <font color='cyan'>Updated 24-12-15</font>

## HARDWARE

Expand Down Expand Up @@ -165,45 +165,45 @@
- Weather Chart Card
- Windrose Card

## ENTITY COUNTS (43 Domains, 4340 Entities)
## ENTITY COUNTS (43 Domains, 4247 Entities)

- alarm_control_panel: 3
- alert: 102
- automation: 312
- binary_sensor: 488
- button: 135
- calendar: 17
- alert: 103
- automation: 317
- binary_sensor: 493
- button: 138
- calendar: 16
- camera: 31
- climate: 5
- conversation: 1
- counter: 1
- device_tracker: 75
- event: 75
- fan: 9
- group: 79
- group: 80
- image: 21
- input_boolean: 199
- input_boolean: 202
- input_button: 2
- input_datetime: 42
- input_number: 175
- input_select: 51
- input_text: 116
- light: 54
- input_number: 182
- input_select: 58
- input_text: 139
- light: 55
- lock: 4
- media_player: 41
- media_player: 42
- notify: 3
- number: 83
- person: 2
- remote: 1
- scene: 8
- script: 65
- select: 198
- sensor: 1559
- script: 66
- select: 220
- sensor: 1391
- siren: 2
- stt: 2
- sun: 1
- switch: 184
- timer: 42
- switch: 181
- timer: 41
- todo: 4
- tts: 3
- update: 125
Expand Down
3 changes: 2 additions & 1 deletion automations/media/alarm_clock/alarm_clock_failed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
message: "Alarm clock failed at {{ now().strftime('%-I:%M %p') }}."
data:
tag: alarm_clock_failed
group: Alert
visibility: public
persistent: true
channel: alarm_stream # bypass DND
group: Alarm Clock
notification_icon: "{{ state_attr('input_boolean.alarm_clock_failed', 'icon') }}"
icon_url: !secret ALARM_CLOCK_ICON
ledColor: !secret CRITICAL_COLOR
Expand Down
58 changes: 53 additions & 5 deletions automations/media/alarm_clock/alarm_clock_turn_on.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,64 @@
{{ iif(trigger.id == 'wake',
is_state('input_select.occupancy_mode', 'Night'), true) }}
then:
- action: notify.jason #VERIFY
data:
title: "Alarm Clock"
message: "Wake alarm clock was scheduled but the house is already awake!"
else:
- action: switch.turn_on
target:
entity_id: "switch.alarm_clock_{{ trigger.id }}"
else:
- action: notify.jason
data:
title: "Alarm Clock"
message: >
Wake alarm clock was scheduled for {{ state_attr('sensor.waketime_today', '12hour') }}
but the house is already awake!
data:
tag: alarm_clock_failed
visibility: public
persistent: true
channel: Urgent
group: Alarm Clock
notification_icon: "{{ state_attr('binary_sensor.alarm_clock', 'icon') }}"
icon_url: !secret ALARM_CLOCK_ICON
actions:
- title: "Play Alarm"
action: play_wake_alarm

- action: notify.jason
data:
message: clear_notification
data:
tag: upcoming_alarm_clock
else:
- action: notify.jason
data:
title: "Alarm Clock"
message: "Alarm clock was scheduled but nobody is home!"
data:
visibility: public
persistent: true
channel: Urgent
group: Alarm Clock
notification_icon: "{{ state_attr('binary_sensor.alarm_clock', 'icon') }}"
icon_url: !secret ALARM_CLOCK_ICON

- action: notify.jason
data:
message: clear_notification
data:
tag: upcoming_alarm_clock

###############################################################################
## Alarm Clock - Play Wake Alarm
###############################################################################
- id: alarm_clock_play_wake_alarm
alias: "[Alarm Clock] Play Wake Alarm"
description: "Turn on alarm clock."
triggers:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: play_wake_alarm
actions:
- action: switch.turn_on
target:
entity_id: switch.alarm_clock_wake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
Alarm Time: {{ alarm_time.strftime('%-I:%M %p') }}
data:
tag: upcoming_alarm_clock
visibility: public
persistent: true
channel: Urgent
group: Alarm Clock
notification_icon: "{{ state_attr('binary_sensor.alarm_clock', 'icon') }}"
icon_url: !secret ALARM_CLOCK_ICON
actions:
Expand Down Expand Up @@ -76,7 +79,10 @@
Alarm Time: {{ alarm_time.strftime('%-I:%M %p') }}
data:
tag: skipped_alarm_clock
visibility: public
persistent: true
channel: Urgent
group: Alarm Clock
notification_icon: "{{ state_attr('binary_sensor.alarm_clock', 'icon') }}"
icon_url: !secret ALARM_CLOCK_ICON
actions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###################################################################################################
## PACKAGE: Unavailable Entities Sensor
## PACKAGE: Unavailable Entities Sensor v2.0
## DESCRIPTION: Count and list entities with a state of unknown or unavailable
## REQUIREMENTS: Home Assistant v2022.5
## USAGE: https://github.com/jazzyisj/unavailable-entities-sensor/blob/main/README.md
Expand Down Expand Up @@ -61,15 +61,14 @@ automation:
mode: restart
trigger:
- trigger: state
entity_id: sensor.unavailable_entities
entity_id: group.unavailable_entities
attribute: entity_id
to: ~
for: 5 # prevent blank notifications
condition:
- condition: template
alias: "Sensor state is a valid numerical value"
value_template: >
{{ is_number(trigger.from_state.state)
and is_number(trigger.to_state.state) }}
value_template: "{{ is_number(states('sensor.unavailable_entities')) }}"
action:
- if:
- condition: numeric_state
Expand Down
8 changes: 1 addition & 7 deletions scripts/media/media_player/turn_media_player_on.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
test_media:
sequence:
- action: script.turn_media_player_on
data:
entity_id: "{{ state_attr('group.cast_media_players','entity_id') }}"

###############################################################################
## Turn Media Player On
###############################################################################
Expand All @@ -25,7 +19,7 @@ turn_media_player_on:
{% if is_state_attr(entity_id, 'type', 'group') %}
{% set entities = state_attr('sensor.' ~ entity_id.split('.')[1], 'entity_id') %}
{% else %}
{% set entities = [entities] %}
{% set entities = [entities] %}
{% endif %}
{% elif entities | count == 1 %}
{% if is_state_attr(entities[0], 'type', 'group') %}
Expand Down
2 changes: 1 addition & 1 deletion templates/weather/weather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@
and is_number(states('sensor.tempest_st_00057689_temperature')) }}
- name: "Outdoor Apparent Temperature"
unique_id: outdoor_apparent_temperature
unique_id: outdoor_apparent_temperature #TEST addon settings less updates in stats
device_class: temperature
state_class: measurement
unit_of_measurement: °C
Expand Down
2 changes: 1 addition & 1 deletion ui-hass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ views:
## Subviews
###############################################################################
# hass
- !include /config/ui/dashboard/hass/hass_system.yaml
- !include /config/ui/dashboard/hass/system.yaml
- !include /config/ui/dashboard/hass/network.yaml
- !include /config/ui/dashboard/hass/shelly.yaml
2 changes: 1 addition & 1 deletion ui/card/climate/climate_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ entities:
entity: sensor.indoor_temperature_target
icon: mdi:thermometer
name: "Thermostat Target"
state: "{{ states('sensor.indoor_temperature_targete', with_unit=true) }}"
state: "{{ states('sensor.indoor_temperature_target', with_unit=true) }}"
tap_action:
action: more-info
entities:
Expand Down
6 changes: 3 additions & 3 deletions ui/card/hass/status_summary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ entities:
name: "HASS"
tap_action:
action: navigate
navigation_path: hass-system
navigation_path: system-history
card_mod:
style: |
{% from 'style.jinja' import summary_status_sensor_style %}
Expand All @@ -29,7 +29,7 @@ entities:
name: "Server"
tap_action:
action: navigate
navigation_path: hass-system
navigation_path: system-history
card_mod:
style: |
{% from 'style.jinja' import summary_status_sensor_style %}
Expand All @@ -39,7 +39,7 @@ entities:
name: "Network"
tap_action:
action: navigate
navigation_path: network
navigation_path: network-history
card_mod:
style: |
{% from 'style.jinja' import summary_status_sensor_style %}
Expand Down
5 changes: 3 additions & 2 deletions ui/card/weather/include/air_quality_entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
- type: custom:template-entity-row
entity: sensor.air_quality_index
name: "Air Quality Risk"
state: "{{ states('sensor.aqi_risk_level') }}"
secondary: "Index: {{ states('sensor.air_quality_index') }}"
state: "{{ states('sensor.air_quality_index') }}"
secondary: "Risk Level: {{ states('sensor.aqi_risk_level') }}"
card_mod:
style: >
{% from 'weather.jinja' import aqi_index_color %}
{{ aqi_index_color(states('sensor.air_quality_index')) }}
- entity: sensor.ozone_index
name: "Ozone"
card_mod:
style: >
{% from 'weather.jinja' import aqi_index_color %}
Expand Down
22 changes: 11 additions & 11 deletions ui/card/weather/include/precipitation_entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
{% set type = states('sensor.precipitation_type') %}
{{ 'None­' if type == 'none' else type | title }}
secondary: >
{%- set exp = states('sensor.precipitation_expected_today') %}
{%- if is_number(exp) and exp | float(-1) > 0 -%}
Accumulation: {{ '%0.1f' | format(exp) | float(-1) }} mm
{%- set exp = states('sensor.precipitation_expected_today') | float(-1) %}
{%- if exp > -1 -%}
Accumulation: {{ '%0.1f' | format(exp) }} mm
{%- endif %}
card_mod:
style: >
Expand Down Expand Up @@ -56,10 +56,10 @@
state: "{{ state_attr('sensor.precipitation_start', '12hour') }}"
secondary: >
{% set tomorrow = now().day < as_datetime(states('sensor.precipitation_start')).day | default(false) %}
{% if is_number(iif(tomorrow, states('sensor.precipitation_expected_tomorrow'),
states('sensor.precipitation_expected_today'))) %}
Accumulation: {{ '%0.1f' | format(iif(tomorrow, states('sensor.precipitation_expected_tomorrow'),
states('sensor.precipitation_expected_today')) | float(-1)) }} mm
{% set accum = iif(tomorrow, states('sensor.precipitation_expected_tomorrow'),
states('sensor.precipitation_expected_today')) | float(-1) %}
{% if accum > 0 %}
Accumulation: {{ '%0.1f' | format(accum) }} mm
{% endif %}
active: "{{ is_state('binary_sensor.precipitation_likely_soon', 'on') }}" #BUG not working
card_mod: #BUGFIX #BUG not working in conditional row
Expand Down Expand Up @@ -87,10 +87,10 @@
state: "{{ state_attr('sensor.precipitation_start', '12hour') }}"
secondary: >
{% set tomorrow = now().day < as_datetime(states('sensor.precipitation_start')).day | default(false) %}
{% if is_number(iif(tomorrow, states('sensor.precipitation_expected_tomorrow'),
states('sensor.precipitation_expected_today'))) %}
Accumulation: {{ '%0.1f' | format(iif(tomorrow, states('sensor.precipitation_expected_tomorrow'),
states('sensor.precipitation_expected_today')) | float(-1)) }} mm
{% set accum = iif(tomorrow, states('sensor.precipitation_expected_tomorrow'),
states('sensor.precipitation_expected_today')) | float(-1) %}
{% if accum > 0 %}
Accumulation: {{ '%0.1f' | format(accum) }} mm
{% endif %}
active: "{{ is_state('binary_sensor.precipitation_likely_next_24_hours', 'on') }}" #BUG not working
card_mod: #BUGFIX #BUG not working in conditional row
Expand Down
4 changes: 2 additions & 2 deletions ui/dashboard/hass/network.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
###############################################################################
## Network Subview
###############################################################################
title: "Network Detail"
path: network
title: "Network History"
path: network-history
subview: true
panel: true
cards:
Expand Down
2 changes: 1 addition & 1 deletion ui/dashboard/hass/shelly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ path: shelly
subview: true
panel: true
cards:
- !include /config/ui/iframe/allergy.yaml
- !include /config/ui/iframe/shelly.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
###############################################################################
## HASS System Subview
## System History Subview
###############################################################################
title: "HASS System"
path: hass-system
title: "System History"
path: system-history
subview: true
panel: true
cards:
- !include /config/ui/history/hass_system.yaml
- !include /config/ui/history/system.yaml
2 changes: 1 addition & 1 deletion ui/gauge/outdoor_temperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ segments:
color: rgb(93, 133, 198)

- from: 0 # 32
label: "Freezing"
label: "Cold"
color: rgb(68, 125, 99)

- from: 5 # 40
Expand Down
5 changes: 0 additions & 5 deletions ui/graph/climate/bathroom_humidity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ header:
series:
- entity: sensor.mold_indicator
yaxis_id: humidity
stroke_width: 3
color: rgb(247, 49, 49)

- entity: sensor.indoor_humidity
yaxis_id: humidity
color: rgb(171, 205, 255)

- entity: sensor.bathroom_sensor_humidity
yaxis_id: humidity
type: area
Expand Down
Loading

0 comments on commit 9cbf2eb

Please sign in to comment.