How to automate a smart-home routine via Home Assistant
Когда использовать: You want to chain actions (lights + AC + music) with conditional logic.
Поток
-
List entities列出所有与 'living_room' 相关的 Home Assistant entities。✓ Скопировано→ Entity list with current states
-
Define routine我晚上 7 点到家。灯调至 60%、空调打开到 26°C、播放轻音乐。✓ Скопировано→ Sequenced service calls with expected outcome
-
Execute执行这个 routine,按步骤 echo 服务调用后再执行。✓ Скопировано→ Per-step confirmation + resulting state
Итог: A working chained automation without hand-writing HA YAML.
Подводные камни
- Wrong entity selected (similar names) — Require the skill to confirm entity_id before executing service call