ESPHOME - Event List (calendar)

hello

i would like show my Calendar-Events on a Display. but how do i get the next three events transferred, for exampe?

Docs:

A calendar entity has a state and attributes representing the next event (only)

I think you’d probably create a text sensor in HA for each of the next three events using something like this.

Then you’d import the three text sensors into ESPHOME.

Might be other ways.

thx. had try this. but will not work. add the code to custom…yaml and get a error

service: calendar.list_events
target:
  entity_id: calendar.mycal
data:
  duration:
    hours: 24
response_variable: agenda

You might need to search around a bit and see what people are doing. Check for recent solutions.

Like this kind of thing.