Trying to modify example code for use with Seeed epaper display

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!

That link is now broken. Just got my ePaper display yesterday and cannot get it set up at all. Bad link on the display (same as you shared), and other tutorials from Seeed give raw errors in the compile:

InvalidJSONFile: Could not load broken JSON: /data/cache/platformio/packages/tool-cmake/.piopm