Refactor project into two standalone components

Split monorepo into separate units for future independent repositories:
- media-server/: Standalone FastAPI server with own README, requirements,
  config example, and CLAUDE.md
- haos-integration/: HACS-ready Home Assistant integration with hacs.json,
  own README, and CLAUDE.md

Both components now have their own .gitignore files and can be easily
extracted into separate repositories.

Also adds custom icon support for scripts configuration.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 14:36:23 +03:00
parent 5519e449cd
commit e26df64e4b
44 changed files with 367 additions and 105 deletions

View File

@@ -1,50 +0,0 @@
# Media Server for Home Assistant
## Project Overview
A server-client system to control PC media playback from Home Assistant.
- **Server**: FastAPI REST API on Windows controlling system-wide media via WinRT
- **Client**: Home Assistant custom integration exposing a media player entity
## Running the Server
### Manual Start
```bash
cd c:\Users\Alexei\Documents\haos-integration-media-player
python -m media_server.main
```
### Auto-Start on Boot (Windows Task Scheduler)
Run in **Administrator PowerShell** from the project root:
```powershell
.\media_server\service\install_task_windows.ps1
```
To remove the scheduled task:
```powershell
Unregister-ScheduledTask -TaskName "MediaServer" -Confirm:$false
```
## Home Assistant Integration
Copy `custom_components/remote_media_player/` to your Home Assistant config folder.
Integration files location: `U:\custom_components\remote_media_player`
## API Token
The API token is generated on first run and displayed in the console output.
Configure the same token in Home Assistant integration settings.
## Server Port
Default: `8765`
## Git Rules
Always ask for user approval before committing changes to git.