No idea what i am doing. looking to have my light switch automation check dark sky for cloud cover

Your first step is to create a sensor based upon dark_sky_cloud_coverage and use that to trigger an automation.

Here are a few older threads which discuss items similar to what you want to do: