--- layout: page title: "Tracking the Sun" description: "Instructions how to track the sun within Home Assistant." date: 2015-01-24 14:39 sidebar: false comments: false sharing: true footer: true --- The `sun` component will use your current location to track if the sun is above or below the horizon. This is a common ingredient within Home Automation. To set it up, add the following lines to your `configuration.yaml`: ``` homeassistant: latitude: 32.87336 longitude: -117.22743 sun: ```