#1368 - More voice enhancements and prompt adjustments

This commit is contained in:
CCOSTAN
2024-06-21 21:56:01 +00:00
parent d9af5da123
commit 4e7f5c182e
4 changed files with 38 additions and 24 deletions

View File

@@ -38,21 +38,11 @@
data:
personarriving: >
{% set person = expand('group.arriving')|map(attribute='name')|join(' and ') %}
{% set peoplecount = expand('group.arriving') | count %}
{% if peoplecount == 1 %}
{% set is_are = ' is ' %}
{% else %}
{% set is_are = ' are ' %}
{% endif %}
{%- macro greeting_sentence(person, is_are) -%}
{{ [
"Welcome back home " ~ person,
person ~ is_are + " home now."
] | random }}
[Welcome them home in a random style]
{%- macro greeting_sentence(person) -%}
{{ ["[Welcome " ~ person + " home]"] }}
{%- endmacro -%}
{{greeting_sentence(person, is_are)}}
{{greeting_sentence(person)}}
call_responsibilities: 1
call_no_announcement: 1
call_garage_check: 1

View File

@@ -12,7 +12,7 @@
to: 'rain'
- platform: numeric_state
entity_id: sensor.pirateweather_precip_intensity
above: 0.2
above: 0.5
- platform: numeric_state
entity_id: sensor.blitzortung_lightning_counter
above: 1
@@ -30,9 +30,6 @@
conditions:
- condition: or
conditions:
# - condition: numeric_state
# entity_id: sensor.pirateweather_cloud_coverage
# above: 90
- condition: numeric_state
entity_id: sensor.pirateweather_precip_intensity
above: 0.2
@@ -64,6 +61,7 @@
- service: script.speech_engine
data:
value1: "Because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain')|replace('counter','lightning')|replace('carlo','rain') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')| replace('carlo','and clouds')}} outside. I will turn on some extra lights in the living room."
call_outside_weather: 1
call_window_check: 1
call_garage_check: 1