mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
add 'hours' to the prompt (#34474)
This commit is contained in:
parent
e643141539
commit
d4cf69f11c
@ -123,7 +123,7 @@ action:
|
||||
Forecast: {{ forecast.condition }} ({{ forecast.temperature }}{{ temperature_unit }}, {{ forecast.precipitation }}% precipitation)
|
||||
{%- endif %}
|
||||
|
||||
Calendar "{{ state_attr(calendar_entity, 'friendly_name') }}" events for the next {{ calendar_duration.hours }}:
|
||||
Calendar "{{ state_attr(calendar_entity, 'friendly_name') }}" events for the next {{ calendar_duration.hours }} hours:
|
||||
{%- set agenda = (events_response | items | first)[1] %}
|
||||
{%- if agenda.events %}
|
||||
{%- for event in agenda.events %}
|
||||
@ -148,4 +148,4 @@ action:
|
||||
data:
|
||||
target: !input notify_target
|
||||
title: "{{ now().strftime('%A') }} Agenda"
|
||||
message: "{{ agent.response.speech.plain.speech }}"
|
||||
message: "{{ agent.response.speech.plain.speech }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user