Skip to content

Automations

All levels

Automations are the heart of a smart home. Here you’ll find guides to build everything from simple light automations to complex flows.

All automations have three parts:

TRIGGER β†’ CONDITION β†’ ACTION
(When?) (If?) (What?)
PartDescriptionExamples
TriggerWhat starts the automationSunset, motion, time, temperature
ConditionWhat must be trueIs anyone home? Is it dark?
ActionWhat happensTurn on lights, send message, play music
AutomationTriggerAction
Lights at sunsetSun goes downTurn on living room lights
Good morning routine7:00 AM on weekdaysTurn on lights, start coffee
Welcome homePerson arrivesTurn on lights, unlock door
Good night11:00 PMTurn off everything, lock doors
AutomationTriggerAction
Washing machine donePower < 5WPush notification
Door left openDoor open > 10 minPush notification
Low temperatureTemp < 18Β°CPush notification
AutomationTriggerAction
Adaptive lightingTime of dayAdjust color temperature
Vacation modeNo one home 24h+Simulate presence
Energy monitoringHigh powerLog and alert

Go to Settings β†’ Devices β†’ Helpers to create:

HelperUse for
Input BooleanVacation mode, guest mode
Input NumberTemperature limits, timers
Input SelectHouse state (home/away/sleeping)
TimerCountdown to actions

Combine multiple actions:

scenes.yaml
- name: "Cozy evening"
entities:
light.living_room:
state: on
brightness_pct: 40
color_temp: 400
light.tv_backlight:
state: on
rgb_color: [255, 100, 50]
media_player.living_room:
state: playing

πŸ“‘ More Sensors

The more sensors, the smarter your automations.

Zigbee2MQTT β†’