Migration to get_events from list_event
I'm doing something wrong but cant see it
I have the following yaml which produces error message
"Error rendering data template: Result is not a Dictionary"
This is a severely cutdown version of the final where the {{ event.summary }} will be replaced by a whole lot of logic to list out start time, summary, details, location etc and take care of null entries.
What am I doing wrong?
alias: Say U3A Events (Duplicate)
sequence:
- service: calendar.get_events
target:
entity_id:
- calendar.u3a
device_id: []
area_id: []
data:
duration:
hours: 18
minutes: 0
seconds: 0
response_variable: u3alist - service: notify.alexa_media_lounge
data: >-
{% for key, value in u3alist.items() %}
{% for event in value.events%}
{{ event.summary }}
{% endfor %}
{% endfor %}
description: >-
lists the next 24 hours events at U3A , has default output device lounge echo
show but this can be changed by setting input_text.name_of_output_device
mode: single