🚀 Setup & Installation
Follow these steps to get your WhatsApp integration up and running in minutes! ⏱️
📦 1. Installation
A. HACS (Recommended) ⭐
Coming soon to HACS Default Repository.
- Open HACS > Integrations.
- Click the 3 dots (top right) > Custom Repositories.
- Add
https://github.com/FaserF/ha-whatsappas an Integration. - Click Install.
- Restart Home Assistant. 🔄
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 setup flow.
B. Manual Installation
- Download the latest release
ha-whatsapp.zip. - Extract the
custom_components/whatsappfolder to your HAconfig/custom_components/directory. - Restart Home Assistant.
⚙️ 2. Configuration (The Ingress Way 🛡️)
The integration is secured with a token. The easiest way to get it is via the specific Ingress Web UI.
1. Get Token & Check Status
- Start the WhatsApp Home Assistant App.
- Click “Open Web UI” (Ingress).
- Tip: If you see “Checking Status…”, just give it a second!
- You will see a Status Badge and (eventually) a QR Code.
- Click “Show API Key” to reveal your token.
- Copy this token. 🔑
2. Add Integration in Home Assistant
- Go to Settings > Devices & Services > Add Integration.
- Search for WhatsApp (Custom).
- Host:
- Usually
http://localhost:8066works. - If not, use the App hostname e.g.
http://7da084a7-whatsapp:8066.
- Usually
- API Key: Paste the token you copied from the Web UI.
- Click Submit.
🛑 Error Handling:
- If you get “Invalid API Key”, double-check what you copied.
- If you get “Cannot Connect”, check the Host URL.
3. Link Device 📱
- If the API Key is valid, the integration will ask the App to start a session.
- Go back to the Ingress Web UI. You should see a QR Code.
- Open WhatsApp on your phone -> Linked Devices -> Link a Device.
- Scan the QR Code.
- The Web UI should update to “Device Linked ✅”.
- Go back to the Integration setup and click Submit.
🔧 Options & Reset
Reset Authentication / Logout
If you need to change phones or fix a stuck session:
- Go to Settings -> Devices & Services -> WhatsApp.
- Click Configure.
- Options Available:
- Debug Payloads: Log every incoming event to Home Assistant logs (useful for developers).
- Polling Interval: How often to fetch new messages (default 2s).
- Mask Sensitive Data: Hides phone numbers in logs (e.g.
491*****67). - Reset Session: Check this box to log out and clear data.
- Click Next.
- This will:
- Log out the session on WhatsApp.
- Delete the session files in the App.
- Reset the App state to “Disconnected”.
- This will:
- You can now re-configure a new session.