Home Assistant
  • Getting started
    • Installing Home Assistant
    • Configuration Basics
    • Adding devices
    • Presence Detection
    • Automation
    • Advanced Topics
  • Components
  • Examples
  • Developers
    • Setup Development
    • Architecture
    • Frontend Development
    • Creating Components
    • Adding Platform Support
    • API and SSE
    • Credits
  • Blog
  • Need help?

Cookbook


This is a community curated list of different ways to use Home Assistant. Most of these examples are using the automation component and other built-in automation related and organization components available.

New recipes can be added via the home-assistant.io repository.

Automation Examples

  • Automation for rainy days

  • Dim lights when playing media

  • Example using use_trigger_values

  • Examples for flashing lights

  • Examples using the sun

  • Foscam Recording during Away Mode Only using Pan/Tilt/Zoom Control and Motion Detection

  • Perform actions based on input select

  • Restart Home Assistant if Wemo Switch is not detected

  • Send a reminder

  • Send notification based on sensor

  • Track your battery level

  • Turn on lights for 10 minutes after motion detected

  • Using time interval and input boolean

Automation in Python Examples

  • Flash lights when intruder detected

Custom Python Component Examples

  • Basic MQTT Example

  • Basic Service Example

  • Basic State Setting Example

Customize Defaults

  • Customize polling interval for any component

Example configuration.yaml

  • Configuration.yaml by Carlo Costanzo

  • Configuration.yaml by Danichispa

  • Configuration.yaml by GreenTurtwig

  • Configuration.yaml by bassclarinetl2

  • Configuration.yaml by brusc

  • Configuration.yaml by happyleavesaoc

Website powered by Jekyll and the Oscalite theme.
Hosted by GitHub and served by CloudFlare.