More AI updates #1368
This commit is contained in:
parent
12104c2e83
commit
83e455add2
|
@ -1 +1 @@
|
||||||
2024.5.4
|
2024.5.5
|
|
@ -36,8 +36,6 @@
|
||||||
- delay: '00:01:00'
|
- delay: '00:01:00'
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
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: >
|
personarriving: >
|
||||||
{% set person = expand('group.arriving')|map(attribute='name')|join(' and ') %}
|
{% set person = expand('group.arriving')|map(attribute='name')|join(' and ') %}
|
||||||
{% set peoplecount = expand('group.arriving') | count %}
|
{% set peoplecount = expand('group.arriving') | count %}
|
||||||
|
|
|
@ -14,6 +14,7 @@ Interior Switches:
|
||||||
- switch.living_room_tv_outlet
|
- switch.living_room_tv_outlet
|
||||||
- switch.office_lamp_switch_socket
|
- switch.office_lamp_switch_socket
|
||||||
- switch.front_office_window
|
- switch.front_office_window
|
||||||
|
- switch.front_office_window_led
|
||||||
|
|
||||||
Kitchen Accents:
|
Kitchen Accents:
|
||||||
entities:
|
entities:
|
||||||
|
|
|
@ -10,5 +10,7 @@ yahoofinance:
|
||||||
hours: 4
|
hours: 4
|
||||||
symbols:
|
symbols:
|
||||||
- TSLA
|
- TSLA
|
||||||
- VMW
|
- APPL
|
||||||
- AMZN
|
- AMZN
|
||||||
|
- MSFT
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ speech_processing:
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '08:00:00'
|
after: '08:00:00'
|
||||||
before: '20:00:00'
|
before: '21:30:00'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
Today is Paige's day to do the chores.
|
Today is Paige's day to do the chores.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
[Only mention chores if today is garbage day or if this is the only information point you have]
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro inside_weather() -%}
|
{%- macro inside_weather() -%}
|
||||||
|
@ -114,7 +115,7 @@
|
||||||
|
|
||||||
{%- macro iss() -%}
|
{%- macro iss() -%}
|
||||||
{% if is_state('binary_sensor.iss', 'on') -%}
|
{% 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 -%}
|
{% endif -%}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
@ -164,7 +165,11 @@
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{% macro inspirational_quote() %}
|
{% 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 %}
|
{% endmacro %}
|
||||||
|
|
||||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
|
{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
|
||||||
|
@ -251,7 +256,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# call a Random fact about the house or inspiration quote #}
|
{# 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 -%}
|
{%- endmacro -%}
|
||||||
{{- cleanup(mother_of_all_macros()) -}}
|
{{- cleanup(mother_of_all_macros()) -}}
|
||||||
|
|
Loading…
Reference in New Issue