mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-09 00:55:34 +00:00
Made some LoveLace changes.
This commit is contained in:
parent
ca3b3b3360
commit
d26d74ffa4
@ -1 +1 @@
|
|||||||
2024.8.0.dev202407200219
|
2024.8.0.dev202407250220
|
@ -20,8 +20,9 @@ template:
|
|||||||
platform: event
|
platform: event
|
||||||
event_type: openai_instructions_sent
|
event_type: openai_instructions_sent
|
||||||
sensor:
|
sensor:
|
||||||
- name: "OpenAI"
|
- name: "openai_instructions"
|
||||||
state: "{{now()}}"
|
unique_id: openai_instructions
|
||||||
|
state: "on"
|
||||||
attributes:
|
attributes:
|
||||||
instructions: "{{ trigger.event.data.instructions }}"
|
instructions: "{{ trigger.event.data.instructions }}"
|
||||||
|
|
||||||
@ -29,8 +30,9 @@ template:
|
|||||||
platform: event
|
platform: event
|
||||||
event_type: openai_response
|
event_type: openai_response
|
||||||
sensor:
|
sensor:
|
||||||
- name: "OpenAI"
|
- name: "openai_response"
|
||||||
state: "{{now()}}"
|
unique_id: openai_response
|
||||||
|
state: "on"
|
||||||
attributes:
|
attributes:
|
||||||
response: "{{ trigger.event.data.response }}"
|
response: "{{ trigger.event.data.response }}"
|
||||||
|
|
||||||
@ -58,7 +60,7 @@ automation:
|
|||||||
options:
|
options:
|
||||||
voice: JennyNeural
|
voice: JennyNeural
|
||||||
message: >-
|
message: >-
|
||||||
"{{ state_attr('sensor.openai', 'response') }}"
|
"{{ state_attr('sensor.openai_response', 'response') }}"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
|
@ -75,9 +75,9 @@ speech_processing:
|
|||||||
{{ agent.response.speech.plain.speech }}
|
{{ agent.response.speech.plain.speech }}
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- event: openai_iresponse
|
- event: openai_response
|
||||||
event_data:
|
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
|
- service: input_boolean.turn_off
|
||||||
data:
|
data:
|
||||||
|
@ -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]
|
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 -%}
|
{%- 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() %}
|
{% macro outside_weather() %}
|
||||||
[Here is the current weather outside]
|
[Here is the current weather outside]
|
||||||
{%- for entity in states.sensor if 'pirateweather' in entity.entity_id %}
|
{%- for entity in states.sensor if 'pirateweather' in entity.entity_id %}
|
||||||
@ -175,7 +171,7 @@
|
|||||||
{%- elif states('sensor.easter_countdown') | int(9999)< 15 -%}
|
{%- elif states('sensor.easter_countdown') | int(9999)< 15 -%}
|
||||||
and don't forget, there are {{ states.sensor.easter_countdown.state }} days until Easter Sunday!
|
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 -%}
|
{%- 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 -%}
|
{%- elif states('sensor.thanksgiving_day_countdown') | int(9999)< 1 -%}
|
||||||
and don't forget, Thanksgiving is tomorrow!
|
and don't forget, Thanksgiving is tomorrow!
|
||||||
{%- elif states('sensor.halloween_countdown') | int(9999)< 30 and states('sensor.halloween_countdown') | int(9999)> 0 -%}
|
{%- 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') }}
|
- Justin (Son): {{ states('person.justin') }}
|
||||||
- Paige (Daughter): {{ states('person.paige') }}
|
- Paige (Daughter): {{ states('person.paige') }}
|
||||||
and our cat Molly: Always home.
|
and our cat Molly: Always home.
|
||||||
[Avoid repeating information from the last broadcast if it was recently broadcasted]
|
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
|
||||||
Last broadcast: {{states('input_text.lastmsg_openai')}}
|
[Avoid repeating information from the previous broadcast if it was within the hour]
|
||||||
|
|
||||||
New Information:
|
New Information:
|
||||||
{% if call_no_announcement != 1 %}
|
{% if call_no_announcement != 1 %}
|
||||||
|
251
config/www/community/clock-weather-card/clock-weather-card.js
Normal file
251
config/www/community/clock-weather-card/clock-weather-card.js
Normal file
File diff suppressed because one or more lines are too long
BIN
config/www/community/clock-weather-card/clock-weather-card.js.gz
Normal file
BIN
config/www/community/clock-weather-card/clock-weather-card.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user