home-assistant.io/source/_components/device_sun_light_trigger.markdown
Franck Nijhof 1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

1.6 KiB

title, description, logo, ha_category, ha_qa_scale, ha_release
title description logo ha_category ha_qa_scale ha_release
Presence based lights Instructions on how to automate your lights with Home Assistant. home-assistant.png
Automation
internal pre 0.7

Home Assistant has a built-in integration called device_sun_light_trigger to help you automate your lights. The integration will:

  • Fade in the lights when the sun is setting and there are people home
  • Turn on the lights when people get home after the sun has set
  • Turn off the lights when all people leave the house

This integration requires the integrations sun, device_tracker and light to be enabled.

To enable this integration, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
device_sun_light_trigger:

{% configuration %} light_group: description: Specify a specific light/group of lights that has to be turned on. required: false type: string light_profile: description: Specify which light profile to use when turning lights on. required: false default: relax type: string device_group: description: Specify which group of devices to track. required: false type: string disable_turn_off: description: Disable lights being turned off when everybody leaves the house. required: false default: false type: boolean {% endconfiguration %}

A full configuration example could look like this:

# Example configuration.yaml entry
device_sun_light_trigger:
  light_group: group.living_room
  light_profile: relax
  device_group: group.my_devices
  disable_turn_off: 1