Skip to content

Commit

Permalink
More AI updates #1368
Browse files Browse the repository at this point in the history
  • Loading branch information
CCOSTAN committed Jun 3, 2024
1 parent 12104c2 commit 83e455a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/.HA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.5.4
2024.5.5
2 changes: 0 additions & 2 deletions config/automation/Speech/announcements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
- delay: '00:01:00'
- service: script.speech_engine
data:
# {% set person = state_attr(trigger.entity_id, "friendly_name")%} This is another way to do it.
# {% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
personarriving: >
{% set person = expand('group.arriving')|map(attribute='name')|join(' and ') %}
{% set peoplecount = expand('group.arriving') | count %}
Expand Down
1 change: 1 addition & 0 deletions config/group/switches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Interior Switches:
- switch.living_room_tv_outlet
- switch.office_lamp_switch_socket
- switch.front_office_window
- switch.front_office_window_led

Kitchen Accents:
entities:
Expand Down
4 changes: 3 additions & 1 deletion config/packages/finance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ yahoofinance:
hours: 4
symbols:
- TSLA
- VMW
- APPL
- AMZN
- MSFT

2 changes: 1 addition & 1 deletion config/script/speech_processing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ speech_processing:
state: 'off'
- condition: time
after: '08:00:00'
before: '20:00:00'
before: '21:30:00'
- condition: state
entity_id: input_boolean.alert_mode
state: 'on'
Expand Down
11 changes: 8 additions & 3 deletions config/templates/speech/briefing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
{% else %}
Today is Paige's day to do the chores.
{% endif %}
[Only mention chores if today is garbage day or if this is the only information point you have]
{%- endmacro -%}

{%- macro inside_weather() -%}
Expand Down Expand Up @@ -114,7 +115,7 @@

{%- macro iss() -%}
{% if is_state('binary_sensor.iss', 'on') -%}
The international space station is above us now and there are {{ states.binary_sensor.iss.attributes['number_of_people_in_space'] }} people in space right now. [Add an additional ISS fact at the end]
The international space station is above us now and there are {{ states.binary_sensor.iss.attributes['number_of_people_in_space'] }} people in space right now. [include an ISS fact at the end]
{% endif -%}
{%- endmacro -%}

Expand Down Expand Up @@ -164,7 +165,11 @@
{%- endmacro -%}

{% macro inspirational_quote() %}
[Give a fact or inspirational quote relevant to the day or situation at the end of the message with the phrase and one more thing.]
[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]
{% endmacro %}

{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
Expand Down Expand Up @@ -251,7 +256,7 @@
{% endif %}

{# call a Random fact about the house or inspiration quote #}
{{ ([iss, moon, uv, holiday, days_until, outside_weather, outside_weather, inspirational_quote]|random)() }}
{{ ([iss, moon, uv, holiday, days_until, outside_weather, outside_weather, inspirational_quote, fact_of_the_day]|random)() }}

{%- endmacro -%}
{{- cleanup(mother_of_all_macros()) -}}

0 comments on commit 83e455a

Please sign in to comment.