All tags
yaml
Narrow down
Home Assistant14
- Tip
iif(condition, if_true, if_false, if_none)Iif() is the short if/else for Home Assistant templatesiif() turns a condition into one of two values in a single template expression.2 Dec 2026 - Tip
Sensor is availableHas_value() checks that a Home Assistant entity has a usable statehas_value() is true only when the entity exists and is not unavailable or unknown.2 Dec 2026 - TipToday_at() makes time-of-day checks in Home Assistant templates easytoday_at("18:00") returns today's date at that time, so you can compare it with now().2 Dec 2026
- Tip
actions:Wait_for_trigger with a timeout stops Home Assistant automations from waiting foreverSet timeout and continue_on_timeout on wait_for_trigger to decide what happens when nothing arrives.2 Dec 2026 - Tip
actions:Add a round limit to a Home Assistant repeat until loopA repeat until loop ends when its condition is met, so add a repeat.index check to bound it.2 Dec 2026 - Tip
- stop: "Nobody is home, nothing left to do"The stop action ends a Home Assistant run and can mark it as failedstop ends the whole automation or script run, and error: true marks it as failed.2 Dec 2026 - Tip
automation:Keep more than five Home Assistant automation traces with stored_tracesLets you inspect older runs of an automation that fires often.1 Dec 2026 - Tip
sequence:Continue_on_error lets a Home Assistant script carry on past a failed stepStops one unreachable device from cancelling the rest of a routine.1 Dec 2026 - Tip
template:Give a Home Assistant template sensor an availability templateShows a sensor as unavailable instead of a wrong number when its source is gone.1 Dec 2026 - Tip
enabled: falseSwitch off one step in a Home Assistant automation with enabled falseTries an automation without one action while keeping that action in place.1 Dec 2026 - Tip
mode: queuedMode: queued and max keep a Home Assistant automation from dropping triggersChooses what a Home Assistant automation does when it triggers again while still running.28 Nov 2026 - Tip
logger:The logger integration sets one default log level and a louder one for a single integrationLowers the Home Assistant log level for everything and raises it for one integration.28 Nov 2026 - Tip
packages: !include_dir_named packagespackages group everything for one feature in a single Home Assistant YAML filePuts the sensor, helper and automation for one feature in a single YAML package file.28 Nov 2026 - Tip
automation: !include_dir_merge_list automation/!include_dir_merge_list turns a folder of automation files into one listMerges all YAML list files in a folder into one automation list.28 Nov 2026
Docker6
- Tip
yamllint -d relaxed docker-compose.ymlyamllint -d relaxed keeps the style nagging down on an existing fileSwitch yamllint to a more forgiving preset so real YAML errors stand out.3 Dec 2026 - Tip
services:$$ writes a literal dollar sign in a Compose fileWrites a literal dollar sign in a compose file, so the container shell expands the variable.28 Nov 2026 - Tip
services:Extends reuses one Compose service inside anotherLets one compose service inherit another and override only a few keys.28 Nov 2026 - Tip
docker compose -f compose.yaml -f compose.prod.yaml up -ddocker compose -f a.yaml -f b.yaml merges files in orderCombines several compose files in order, so a small file can override parts of the base file.28 Nov 2026 - Tip
include:The include element pulls another compose file into yoursPulls other compose files into your main one so a big stack can be split into smaller files.28 Nov 2026 - Tip
x-common: &commonShare config between services with YAML anchors and x- fieldsDefines a settings block once and reuses it in several services of one compose file.17 Sep 2026
Other tips1
Network1
Nothing matches.