Compare commits

...

4 Commits

Author SHA1 Message Date
github-actions[bot]
97213e22ad Update HA version badge to 2025.5.3 2025-05-29 17:59:10 +00:00
Carlo Costanzo
0e5a962863 Improve clarity in speech briefing templates by refining instructional text for quotes and facts. 2025-05-29 13:58:47 -04:00
github-actions[bot]
d2a157afe2 Update HA version badge to 2025.5.3 2025-05-29 17:13:04 +00:00
Carlo Costanzo
7dd07a011d Refactor AC media player scripts and add binary sensors for cooling status AC filter changing. #273 2025-05-29 13:12:39 -04:00
4 changed files with 28 additions and 25 deletions

View File

@@ -42,14 +42,6 @@ script:
- delay: "00:01:30"
- service: media_player.play_media
data:
entity_id: media_player.garage
media_content_id: 'turn off c life 4'
media_content_type: custom
- delay: "00:01:30"
- service: media_player.play_media
data:
entity_id: media_player.garage

View File

@@ -9,23 +9,34 @@ input_datetime:
has_date: true
has_time: true
binary_sensor:
- platform: template
sensors:
downstairs_ac_cooling:
friendly_name: "Downstairs AC is Cooling"
value_template: >
{{ state_attr('climate.downstairs', 'hvac_action') == 'cooling' }}
upstairs_ac_cooling:
friendly_name: "Upstairs AC is Cooling"
value_template: >
{{ state_attr('climate.upstairs', 'hvac_action') == 'cooling' }}
sensor:
- platform: history_stats
name: Upstairs AC Runtime Since Last Filter Change
entity_id: climate.upstairs
attribute: hvac_action
value: 'cooling'
name: Downstairs AC Runtime Since Last Filter Change
entity_id: binary_sensor.downstairs_ac_cooling
state: 'on'
type: time
start: "{{ states('input_datetime.upstairs_last_filter_change') }}"
start: "{{ states('input_datetime.downstairs_last_filter_change') }}"
end: "{{ now() }}"
- platform: history_stats
name: Downstairs AC Runtime Since Last Filter Change
entity_id: climate.downstairs
attribute: hvac_action
value: 'cooling'
name: Upstairs AC Runtime Since Last Filter Change
entity_id: binary_sensor.upstairs_ac_cooling
state: 'on'
type: time
start: "{{ states('input_datetime.downstairs_last_filter_change') }}"
start: "{{ states('input_datetime.upstairs_last_filter_change') }}"
end: "{{ now() }}"
script:

View File

@@ -208,11 +208,11 @@
{% endmacro %}
{% macro inspirational_quote() %}
[Include an inspirational quote relevant to the day or situation at the end of the message. "]
[Include an inspirational quote relevant to the day or situation at the end of the message"]
{% endmacro %}
{% macro fact_of_the_day() %}
[Include a fact about something that happened in the past on this day at the end of the message]
[Include a relevant fact about something that happened in the past on this day at the end of the message]
{% endmacro %}
{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
@@ -280,7 +280,7 @@
and our cat Molly: Always home.
{% endif %}
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
[For each person, mention their location. For those not at home, briefly state where they are and approximately how long they have been there, using relative time e.g., about 30 minutes, around 2 hours, not exact timestamps. If the same location update has already been broadcasted, do not repeat it.]
[For each person, mention their location. If they are not at home, briefly state where they are and approximately how long they have been there, using relative time e.g., about 30 minutes, around 2 hours, not exact timestamps. If the same location update has already been broadcasted, do not repeat it.]
New Information:
{% if call_no_announcement != 1 %}

View File

@@ -1,13 +1,13 @@
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.5.3">
<title>2025.5.3</title>
<linearGradient id="VySBY" x2="0" y2="100%">
<linearGradient id="lWGjP" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="OpUSW"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#OpUSW)">
<mask id="cJimI"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#cJimI)">
<rect width="615" height="200" fill="#08C" x="0"/>
<rect width="615" height="200" fill="url(#VySBY)"/>
<rect width="615" height="200" fill="url(#lWGjP)"/>
</g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.5.3</text>

Before

Width:  |  Height:  |  Size: 811 B

After

Width:  |  Height:  |  Size: 811 B