Installation¶
There are two main ways to install the Area Occupancy Detection integration for Home Assistant:
Method 1: HACS (Recommended)¶
- Ensure HACS is installed: If you don't have the Home Assistant Community Store (HACS) installed, follow their instructions to set it up first.
- Navigate to HACS: Open your Home Assistant frontend and go to HACS in the sidebar.
- Go to Integrations: Click on "Integrations".
- Explore & Add Repositories: Click the vertical ellipsis (three dots) in the top right corner and select "Custom repositories".
- Add Custom Repository:
- Repository: Enter the URL of this integration's GitHub repository:
https://github.com/hanskohl/Area-Occupancy-Detection
- Category: Select
Integration
. - Click Add.
- Repository: Enter the URL of this integration's GitHub repository:
- Install Integration: Back in the main HACS Integrations view, search for "Area Occupancy Detection". Click on it and then click the Download button. Select the latest version and confirm.
- Restart Home Assistant: After the download is complete, restart your Home Assistant instance (Configuration -> Settings -> Server Management -> Restart, or use the Developer Tools).
Method 2: Manual Installation¶
- Download the Latest Release: Go to the Releases page of the GitHub repository and download the
area_occupancy.zip
file from the latest release assets. - Unzip the File: Extract the contents of the downloaded zip file. You should have a folder named
area_occupancy
containing files like__init__.py
,manifest.json
, etc. - Access Home Assistant Configuration Directory: Connect to the machine running your Home Assistant instance (e.g., via Samba, SSH, or the File editor add-on).
- Navigate to
custom_components
: Inside your main Home Assistant configuration directory (where yourconfiguration.yaml
file is located), find or create a folder namedcustom_components
. - Copy Integration Folder: Copy the entire extracted
area_occupancy
folder (the one containing__init__.py
) into thecustom_components
folder. Your directory structure should look like this: - Restart Home Assistant: Restart your Home Assistant instance (Configuration -> Settings -> Server Management -> Restart, or use the Developer Tools).
Verification¶
After installation:
- Restart Home Assistant
- Go to Settings → Devices & Services
- Click "+ Add Integration"
- Search for "Area Occupancy Detection"
- If it appears, installation was successful
- If not, check Home Assistant logs for errors
Getting Help¶
If you encounter issues:
- Search GitHub Issues
- Join the Discussion
Next Steps¶
After restarting, proceed to the Configuration guide to set up your first Area Occupancy instance.