I am trying to modify the example code provided with my Seeed epaper display, shown on this page: Works with ESPHome in Home Assistant | Seeed Studio Wiki
Specifically I want to replace the sections of code which display calendar entries from the 3 separate example calendars (calendar.calendar, calendar.epaper_event & calendar.new_calendar) with code that will display all the calendar entries for the next 24 hours in the correct order from a pair of gmail calendars. I believe I should be using the calendar.get_events action but I am a YAML beginner so not sure which sections of code from the demo to replace and with what. Can anyone help? The calendar entities I want to list events from are called calendar.XXX_gmail_com and calendar.YYY_gmail_com. TIA!