AIOW  /  Home  ·  02

Does my smart home need AI or just a rule?

If you can say exactly when something should happen, start with a rule. Turning on the hall light when the front door opens after sunset takes a signal, a condition and an action. It does not require a model to guess who is coming in.

Worked example / 02
  1. 01 Door opens
  2. 02 After sunset?
  3. 03 Hall light on

01 / 03

Write down the three parts

In the Home Assistant documentation a trigger starts an automation. An optional condition checks whether the action should go ahead. Here the opening door is the trigger, sunset is the condition and the lamp is the action. Opening the door during the day should do nothing. The example assumes a suitable sensor and a controllable light; it is not a compatibility promise.

02 / 03

Test the exception deliberately

Test during the day, after dark and with the sensor unavailable. Write down the expected and actual outcome each time. Can someone still operate the light by hand? Let other residents disable the rule without your phone. Start with something reversible such as lighting; a lamp test says nothing about a door lock or alarm.

03 / 03

When might a model be worth testing?

An open question such as ‘why does the light keep coming on?’ is different from a switching command. A trial assistant could summarise an event log. Compare its explanation with the timestamps and do not give it device controls during the trial. If one misconfigured rule is the cause, fix the rule rather than adding more AI.

Source

Home Assistant · Understanding automations

Explore the related service · Knowledge library