Retrieval-augmented Generation of Enhanced Trigger-action Programming Rules in Smart Home
Yuchen Zhao, Lifu Wang, Kai Dong
Abstract
Trigger-action programming (TAP) is a popular paradigm for smart home automation, enabling users to create rules in form of “IF trigger, THEN action”. While large language models (LLMs) offer a promising path for generating TAP rules from natural language, their vanilla application, such as relying solely on pre-trained knowledge and basic prompting, falters as platforms evolve to support enhanced TAP rules. Such rules incorporate scripting for conditional logic, computations, and external API calls. Enhanced TAP rules demand users to express complex logic and environmental context, making the creation of such rules difficult without a strong programming background. This paper introduces HomeGenii, a retrieval-augmented generation (RAG) system that automates enhanced TAP creation. HomeGenii constructs a compact yet representative rulebase, retrieves semantically aligned rules using a cluster-then-search approach, and applies compression techniques to minimize token overhead. Evaluation shows HomeGenii improves enhanced TAP rule generation accuracy to 84%, a 70% increase over systems without RAG. Our work demonstrates a viable pathway for enabling non-expert users to leverage LLMs for expressive and complex home automation.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 83aba26d-086d-4903-a232-3cca2962d54eRelated papers
- ChatIoT: Zero-code Generation of Trigger-action Based IoT ProgramsYi Gao, Kaijie Xiao, Fu Li, Weifeng Xu et al.UbiComp 2024 · 18 citations
- TAPFixer: Automatic Detection and Repair of Home Automation Vulnerabilities based on Negated-property ReasoningYinbo Yu, Yuanqi Xu, Kepu Huang, Jiajia LiuUSENIX Security 2024 · 6 citations
- Practical Data Access Minimization in Trigger-Action PlatformsYunang Chen, Mohannad Alhanahnah, Andrei Sabelfeld, Rahul Chatterjee et al.USENIX Security 2022
- Sasha: Creative Goal-Oriented Reasoning in Smart Homes with Large Language ModelsEvan King, Haoxiang Yu, Sangsu Lee, Christine JulienUbiComp 2024 · 91 citations
- GenAssist: Interactive Prompt-Driven XR Program GenerationSruti Srinidhi, Akul Singh, Edward Lu, Anthony RoweIEEE VR 2026
