#using get_events

1 messages · Page 1 of 1 (latest)

hasty vector
#

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

plush latch
#

Please use a code share site. It's impossible to read the unformatted code

spice prismBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

plush latch
#

It just spams the channel with an unreadable mess

white ibex
#

I remember answering this question before, but can't find it anymore