Made some LoveLace changes.

This commit is contained in:
CCOSTAN 2024-07-26 13:58:13 +00:00
parent ca3b3b3360
commit d26d74ffa4
8 changed files with 3675 additions and 3132 deletions

View File

@ -1 +1 @@
2024.8.0.dev202407200219
2024.8.0.dev202407250220

View File

@ -20,8 +20,9 @@ template:
platform: event
event_type: openai_instructions_sent
sensor:
- name: "OpenAI"
state: "{{now()}}"
- name: "openai_instructions"
unique_id: openai_instructions
state: "on"
attributes:
instructions: "{{ trigger.event.data.instructions }}"
@ -29,8 +30,9 @@ template:
platform: event
event_type: openai_response
sensor:
- name: "OpenAI"
state: "{{now()}}"
- name: "openai_response"
unique_id: openai_response
state: "on"
attributes:
response: "{{ trigger.event.data.response }}"
@ -58,7 +60,7 @@ automation:
options:
voice: JennyNeural
message: >-
"{{ state_attr('sensor.openai', 'response') }}"
"{{ state_attr('sensor.openai_response', 'response') }}"
cache: false
- service: input_boolean.turn_off

View File

@ -75,9 +75,9 @@ speech_processing:
{{ agent.response.speech.plain.speech }}
cache: true
- event: openai_iresponse
- event: openai_response
event_data:
response: "{{ now().strftime('%B %d,%Y %-I:%M %p') }} {{ now().strftime('%p') }}. {{ agent.response.speech.plain.speech | striptags}}"
response: "{{ now().strftime('%B %d,%Y %-I:%M %p') }} {{ agent.response.speech.plain.speech }}"
- service: input_boolean.turn_off
data:

View File

@ -17,10 +17,6 @@
Inside the house, it is {{ states.climate.downstairs.attributes['current_temperature'] }} degrees with {{ states('sensor.downstairs_thermostat_humidity') }} percent humidity. [Only mention humidity if it seems unusually high]
{%- endmacro -%}
{%- macro outside_weather2() -%}
Outside, it is going to be {{ states('sensor.pirateweather_temperature') }} degrees and {{ states('sensor.pirateweather_summary') }} with {{ states('sensor.pirateweather_humidity') }} % humidity. [Only mention humidity if it seems unusually high]
{%- endmacro -%}
{% macro outside_weather() %}
[Here is the current weather outside]
{%- for entity in states.sensor if 'pirateweather' in entity.entity_id %}
@ -175,7 +171,7 @@
{%- elif states('sensor.easter_countdown') | int(9999)< 15 -%}
and don't forget, there are {{ states.sensor.easter_countdown.state }} days until Easter Sunday!
{%- elif states('sensor.thanksgiving_day_countdown') | int(9999)< 10 and states('sensor.thanksgiving_day_countdown') | int(9999)> 0 -%}
and don't forget, there are {{ states.sensor.thanksgiving_day_countdown.state }} days until Thanksgiving
and don't forget, there are {{ states.sensor.thanksgiving_day_countdown.state }} thankful days until Thanksgiving
{%- elif states('sensor.thanksgiving_day_countdown') | int(9999)< 1 -%}
and don't forget, Thanksgiving is tomorrow!
{%- elif states('sensor.halloween_countdown') | int(9999)< 30 and states('sensor.halloween_countdown') | int(9999)> 0 -%}
@ -232,8 +228,8 @@
- Justin (Son): {{ states('person.justin') }}
- Paige (Daughter): {{ states('person.paige') }}
and our cat Molly: Always home.
[Avoid repeating information from the last broadcast if it was recently broadcasted]
Last broadcast: {{states('input_text.lastmsg_openai')}}
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
[Avoid repeating information from the previous broadcast if it was within the hour]
New Information:
{% if call_no_announcement != 1 %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long