brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: switch off one step in a Home Assistant automation with enabled false

Home Assistant
~/tips/tip-ha-step-enabled-false

enabled: false

Tries an automation without one action while keeping that action in place.

When testing, I’d rather not delete the noisy step and then try to rebuild it from memory. You can park it where it is.

Add one line to the action:

actions:
  - action: notify.mobile_app_phone
    data:
      message: "Washing machine is done"
    enabled: false
  - action: light.turn_on
    target:
      entity_id: light.laundry

The notification is skipped, the light still turns on, and your carefully written message stays in the file. The visual editor offers the same thing in the step’s menu.

It shines while debugging. Disable half the steps, run the automation, and see whether the problem goes away. Then narrow it down. It’s also handy for seasonal things, such as an action for the garden that sleeps all winter.

The value can be a template as well, so a step can depend on a helper like a holiday mode toggle. If that template can’t be rendered, though, the run stops with an error, so keep it simple.

Disabled steps have a habit of being forgotten. A comment above the line with the reason and the date helps, but in editor managed automations comments may not survive a save, so use the step’s own name or description there instead. Every now and then, I’d search your YAML for enabled: false and decide whether those steps should come back or be removed for good.

Further reading: Home Assistant script syntax

Going deeper: Guide: Home Assistant backups in Docker, with a failure alert on your phone and a copy off the box

More Home Assistant tips Trust X-Forwarded-For: on Unlimited login attempts: off automation: sequence: template: All Home Assistant tips (11) All topics

Link