Welcome! This Python based Windows Service communicates the status of your Jabra headset to Home Assistant.
- Python 3.* installed and added to PATH
- Open a PowerShell window as administrator and run:
pip install -r .\requirements.txt
Make sure that the packages show up under C:\Program Files (x86)\Python*\Lib\site-packages
as the Windows Service needs to access it.
-
Run the script from the PowerShell console with administrator privileges.
-
Clone or download the source code from this repository. Copy
secrets.example.ini
tosecrets.ini
and provide the required info. -
Make sure the
SYSTEM
account has access to this folder as the service will run underSYSTEM
. -
Browse to the location and run the code below in PowerShell with administrator privileges:
python .\main.py --startup delayed --wait 2 install
python .\main.py start
- Check if the service is started. In PowerShell, run:
Get-Service -Name "JabraHomeAssistantSync"
Get-Service -Name "JabraHomeAssistantSync" | Start-Service
- You can run the following code to debug the service:
python .\main.py debug
- In case you receive the error
Error starting service: The service did not respond to the start or control request in a timely fashion
during the start of the service, make sure to have thepywintypes36.dll
file available from theC:\Program Files (x86)\Python*\Lib\site-packages\win32
folder. In case the file is missing, copy it from theC:\Program Files (x86)\Python*\Lib\site-packages\pywin32_system32
folder. - Open up an issue within this repository in case your issue is not listed here or listed as a closed issue.