Automation HAT for Raspberry Pi4

Hi. Having issues to switch on the lights etc. Keep getting the following errors.
Also can not seem to run the examples.

Make sure that i2c is enabled.

Can you please guide me how to ensure its enabled?

It looks like you figured it out, but I’ll post it anyway.
This is found under Menu > Preferences > Raspberry Pi Configuration
Then you simply need to select the “Interfaces” tab and set SPI to “Enabled” :