Automation GPIO Switch

Here’s a cookbook link to some sections for suggested reading. The Home Assistant Cookbook - Index