How roxy228/pc-remote-net-plugin-home-assistant works
PC Remote is a Home Assistant integration for pairing Windows PCs and controlling them through the existing authenticated PC Remote protocol. The main workflow is browser-initiated pairing into a stored profile, followed by panel, service, or entity actions routed through the command manager; Wake-on-LAN is a separate path. Voice configuration and confirmations form a distinct optional branch using Yandex.Station Intents. Source excerpts support the orchestration and storage links; panel/API and pairing details are also documented in the README.
Main entry points: __init__.py Integration entry · storage.py Profile store · manager.py Command manager · voice.py Voice controller
Components 21
Integration setup
- Integration entry
custom_components/pc_remote/__init__.py - Config flow
custom_components/pc_remote/config_flow.py - Management panel
custom_components/pc_remote/www/panel.js - Panel API
custom_components/pc_remote/http.py - Integration constants
custom_components/pc_remote/const.py
Pairing and profiles
- Pairing callback
custom_components/pc_remote/http.py - Profile validation
custom_components/pc_remote/models.py - Profile store
custom_components/pc_remote/storage.py
PC control
- Command manager
custom_components/pc_remote/manager.py - Secure TCP client
custom_components/pc_remote/client.py - Wake-on-LAN
custom_components/pc_remote/manager.py - Command buttons
custom_components/pc_remote/button.py - Status entities
custom_components/pc_remote/sensor.py - Connection entity
custom_components/pc_remote/binary_sensor.py
Voice control
- Voice controller
custom_components/pc_remote/voice.py - Voice package
custom_components/pc_remote/voice.py
Other components
- HA administrator
- Pairing browser
- Windows PC
- Home Assistant
- Yandex Intents
Connections 34
- HA administrator → Config flow: configures
custom_components/pc_remote/config_flow.py - Config flow → Integration entry: creates entry
custom_components/pc_remote/__init__.py - Integration entry → Profile store: loads
custom_components/pc_remote/__init__.py - Integration entry → Command manager: creates
custom_components/pc_remote/__init__.py - Integration entry → Voice controller: creates
custom_components/pc_remote/__init__.py - Integration entry → Panel API: registers
custom_components/pc_remote/__init__.py - Integration entry → Management panel: serves
custom_components/pc_remote/__init__.py - HA administrator → Management panel: manages PCs
README.md - Management panel → Panel API: requests actions
README.md - Pairing browser → Pairing callback: completes pairing
README.md - Windows PC → Pairing callback: sends credentials
- Pairing callback → Profile validation: validates profile
custom_components/pc_remote/models.py - Pairing callback → Profile store: saves profile
- Profile store → Profile validation: loads profiles
custom_components/pc_remote/storage.py - Panel API → Profile store: reads and updates
custom_components/pc_remote/http.py - Panel API → Command manager: executes commands
custom_components/pc_remote/http.py - Command manager → Profile store: gets and saves
custom_components/pc_remote/manager.py - Command manager → Secure TCP client: sends command
custom_components/pc_remote/manager.py - Secure TCP client → Windows PC: sends encrypted TCP
README.md - Command manager → Wake-on-LAN: dispatches wake
custom_components/pc_remote/manager.py - Wake-on-LAN → Home Assistant: calls WOL service
custom_components/pc_remote/manager.py - Command buttons → Command manager: executes action
custom_components/pc_remote/button.py - Status entities → Profile store: reads state
custom_components/pc_remote/sensor.py - Connection entity → Profile store: reads state
custom_components/pc_remote/binary_sensor.py - Integration entry → Command buttons: sets up platforms
custom_components/pc_remote/__init__.py - Integration entry → Status entities: sets up platforms
custom_components/pc_remote/__init__.py - Integration entry → Connection entity: sets up platforms
custom_components/pc_remote/__init__.py - Integration entry → Voice controller: registers voice actions
custom_components/pc_remote/__init__.py - Panel API → Voice controller: configures and applies
custom_components/pc_remote/http.py - Voice controller → Voice package: generates package
README.md - Voice package → Yandex Intents: provides intents
README.md - Yandex Intents → Integration entry: invokes voice actions
README.md - Voice controller → Command manager: executes confirmed action
custom_components/pc_remote/voice.py - Voice controller → Profile store: reads settings
custom_components/pc_remote/voice.py