home-assistant.io/source/_components/automation.markdown

1.0 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_qa_scale, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_qa_scale ha_release
page Automation Instructions on how to setup automation within Home Assistant. 2015-01-20 22:36 true false true true home-assistant.png
Automation
internal 0.7

Please see the docs section for in-depth documentation on how to use the automation component.

Starting with 0.28 your automation rules can be controlled with the frontend.

This allows one to reload the automation without restarting Home Assistant itself. If you don't want to see the automation rule in your frontend use hide_entity: true to hide it.

You can also use initial_state: 'false' so that the automation is not automatically turned on after a Home Assistant reboot.

automation:
  - alias: Door alarm
    hide_entity: true
    initial_state: true
    trigger:
      - platform: state
  ...