After 5 years of a neglected Home Assistant setup, I finally found the workflow that makes home automation fun again. The secret? Treating it as a code generation problem with AppDaemon and Claude.
Business logic validation is hard. What starts as simple if-statements quickly evolves into a tangled mess of if/else/try/catch/throw - business rules need to share data, call external services, provide meaningful errors, need to be tested and understood, etc. If you're using Typescript, you might find this library useful.