You Should Keep a Handbook for Your Smart-home Automations