Retrieval-augmented Generation of Enhanced Trigger-action Programming Rules in Smart Home

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.

Authors

Institutions

Publication Details

Journal
Proceedings of the ACM on Interactive Mobile Wearable and Ubiquitous Technologies
Published
2026-03-16
DOI
https://doi.org/10.1145/3789673
Citations
1
Primary Topic
Spreadsheets and End-User Computing
Type
article
Field-Weighted Citation Impact
45.92
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Retrieval-augmented Generation of Enhanced Trigger-action Programming Rules in Smart Home

Yuchen Zhao, Kai Dong, Lifu Wang
1 citations
Proceedings of the ACM on Interactive Mobile Wearable and Ubiquitous Technologies
Spreadsheets and End-User Computing
45.92
article

Retrieval-augmented Generation of Enhanced Trigger-action Programming Rules in Smart Home

Yuchen Zhao, Kai Dong, Lifu Wang
article en
1 citations

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.

Proceedings of the ACM on Interactive Mobile Wearable and Ubiquitous TechnologiesVol. 10(1)
Southeast University (CN)
Openalex Percentile: Top 0%
Spreadsheets and End-User Computing
45.92
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.