diff --git a/meta-ohos-blueprints/recipes-homeassistant/homeassistant/homeassistant-useradd.inc b/meta-ohos-blueprints/recipes-homeassistant/homeassistant/homeassistant-useradd.inc
new file mode 100644
index 0000000000000000000000000000000000000000..1c9dc948208b13a9e36fd947408badd0217c2617
--- /dev/null
+++ b/meta-ohos-blueprints/recipes-homeassistant/homeassistant/homeassistant-useradd.inc
@@ -0,0 +1,16 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+inherit useradd
+
+HOMEASSISTANT_USER ?= "homeassistant"
+HOMEASSISTANT_USER[doc] = "User the home-assistent service runs as."
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system homeassistant"
+USERADD_PARAM_${PN} = "\
+    --system --no-create-home --shell /bin/false \
+    --home ${HOMEASSISTANT_CONFIG_DIR} \
+    --groups homeassistant,dialout --gid homeassistant \
+    ${HOMEASSISTANT_USER}"