whatisgithub

What is ha-companion-harmonyos?

xiasi0/ha-companion-harmonyos — explained in plain English

Analysis updated 2026-05-18

6TypeScriptAudience · developerLicense

In one sentence

A native HarmonyOS app that brings Home Assistant smart-home control to Huawei devices that can no longer run the official Android companion app.

Mindmap

mindmap
  root((HA Companion HarmonyOS))
    What it does
      Home Assistant client
      HarmonyOS native app
      Sensor sync
    Tech stack
      TypeScript
      ArkUI
      HarmonyOS SDK
    Use cases
      Dashboard access
      Device registration
      Service cards
    Audience
      HarmonyOS developers
      Home Assistant users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Control your Home Assistant smart home dashboard from a HarmonyOS NEXT phone or tablet.

USE CASE 2

Register a HarmonyOS device with Home Assistant to report battery, location, and network sensors.

USE CASE 3

Add a service card widget for lights or media playback to your HarmonyOS home screen.

USE CASE 4

Set up local notifications and an app-lock flow tied to Home Assistant events.

What is it built with?

TypeScriptArkUIHarmonyOS SDK

How does it compare?

xiasi0/ha-companion-harmonyosatomicstrata/atomicmemoryazerdsq131/mcpm
Stars666
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasy
Complexity4/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

So what is it?

HA Companion For HarmonyOS is a native mobile app that brings Home Assistant, a popular home automation platform, to devices running HarmonyOS NEXT, Huawei's operating system. The problem it solves is a compatibility gap: Home Assistant's official companion apps exist for Android, iOS, and smartwatch platforms, but HarmonyOS NEXT dropped Android app compatibility, leaving HarmonyOS users without an equivalent way to control their smart home from their phone or tablet. The app lets you log in to a Home Assistant server, browse your home dashboard through a built in web view, and register your HarmonyOS device with your Home Assistant instance. Once registered, your device can report sensor data back to Home Assistant, including battery level, charging state, network status, and location. Location support covers precise positioning, zone based geofencing, and background tracking. The app also supports local notifications, notification history, and a system authentication flow for locking the app with device credentials. An additional feature is service cards, interactive widgets powered by HarmonyOS's native card system, with initial templates for lights, media playback, and scenes. These cards can be bound to specific Home Assistant entities and refresh their data automatically. The project currently supports phone and tablet form factors, sharing one adaptive shell and one set of native settings screens across both. Because Home Assistant has no official OS label for HarmonyOS yet, the app registers itself using the Android label so it can reuse the existing companion protocol, which the README is careful to note does not mean the app is built on Android in any way. The project is written in TypeScript and is currently in an early development version. It is intended as an open source reference implementation rather than a published app, and the developer notes that push notifications and wearable support are not yet included, pending real device validation and appropriate distribution arrangements. Licensed under Apache 2.0.

Copy-paste prompts

Prompt 1
Explain how HA Companion For HarmonyOS registers a device with Home Assistant's mobile_app integration.
Prompt 2
Walk me through building the HAP package with DevEco Studio and hvigor.
Prompt 3
What HarmonyOS SDK kits does this project use for notifications and location?
Prompt 4
What features are still missing or in progress in this HarmonyOS companion app?

Frequently asked questions

What is ha-companion-harmonyos?

A native HarmonyOS app that brings Home Assistant smart-home control to Huawei devices that can no longer run the official Android companion app.

What language is ha-companion-harmonyos written in?

Mainly TypeScript. The stack also includes TypeScript, ArkUI, HarmonyOS SDK.

Who is ha-companion-harmonyos for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.