alias: Get all Google Events at 10am
description: ""
trigger:
- platform: time
at: "10:00:00"
condition: []
action:
- service: homeassistant.update_entity
target:
entity_id:
- calendar.solvstrom
data: {}
- service: conversation.process
data_template:
agent_id: conversation.chatgpt
text: >-
You are an advanced smart home personal assistant for Morten. Your tasks
is to brief Morten about all of his events. Please list only
the time and not the date for each event. The event starts on {{
state_attr('calendar.solvstrom', 'start_time') }}. The event is about
{{ state_attr('calendar.solvstrom', 'message') }}.
response_variable: cal_agent
- service: tts.cloud_say
data_template:
cache: true
entity_id: media_player.living_room_speaker
language: en-GB
message: "{{ cal_agent.response.speech.plain.speech | replace('*', '') }}"
mode: single
generally speaking, please start new threads for new questions. if it’s related to an existing one, you can reference it. in this case, although your new question is related, it stands alone just fine.
doing this as its own separate question helps the community because will be searched and categorized as the independent question that it is.
that said, the way to do what you’re asking for is
i’ve casted it to a string… that may be unnecessary as it may already be a string, i’m not positive… but doesn’t hurt…
if you want other tweaks to the output, look at strftime docs.