⚙️ Installation Guide
Setting up the WhatsApp integration is a two-step process: installing the App (the engine) and then the Integration (the interface).
1️⃣ App Installation
The App handles the heavy lifting of connecting to WhatsApp.
- Add the Repository: Click the button below to add the App repository to your Home Assistant.
- Install the App: Navigate to the store, search for WhatsApp, and click Install.
TIP: Using Home Assistant OS / Supervisor? You can skip manual addon installation! The integration will offer to install the official Addon (Stable or Edge) automatically during the config flow setup.
- Start & Get Token:
- Ensure
log_levelis set toinfoin the Configuration tab. - Start the App.
- Open the Web UI and look for the API Token (hidden behind “Show API Key”). Copy this token for the next step.
- Ensure
Tip Host Network Mode: If you want the integration to be automatically discovered (“New devices found”), enable the “Use Host Network” toggle in the App configuration.
Note The QR Code might not appear immediately in the App Web UI if you are not observing it. Do not scan anything yet. The scanning happens in the Integration setup.
2️⃣ Integration Installation
The Integration connects Home Assistant’s core to the App and provides the entities.
Option A: HACS (Recommended)
- Install Repository: Add the custom repository in HACS.
- Restart: Once installed via HACS, Restart Home Assistant.
Option B: Manual Installation (Fallback)
- Go to the GitHub Release Page.
- Download the latest
ha-whatsapp.zipfile. - Open your Home Assistant configuration directory (where
configuration.yamlis located). - Create a folder
custom_componentsif it doesn’t exist. - Extract the
whatsappfolder from the zip file intocustom_components.- Final path should be:
/config/custom_components/whatsapp/__init__.pyetc.
- Final path should be:
- Restart Home Assistant.
3️⃣ Configuration & Linking
Now we connect the components and link your device.
- Click the button below to start the setup:
- Auto-Discovery: If your network supports mDNS (and Host Network is enabled in the App), you will see a notification in Home Assistant. Click Configure.
- Connection Details:
- Host: Enter the URL of your App. (Default:
http://localhost:8066). - API Key: Paste the API Token you copied from the App Web UI.
- Host: Enter the URL of your App. (Default:
- Click Submit.
📱 Pairing with WhatsApp
- After submitting the API Key, the Integration will verify the connection.
- The Integration Setup Dialog will now display a QR Code.
- On your phone, open WhatsApp -> Linked Devices -> Link a Device.
- Scan the QR code shown in the Integration Dialog.
- The integration will confirm the connection. Click Finish.
⚠️ Common Prerequisites
- Supervisor: This App requires a Home Assistant Supervised or Home Assistant OS installation.
- Network: Ensure the App port (
8066) is not blocked by a firewall if HA and the App are on different machines.