Skip to main content

Multi-vendor desktop telemetry agent for Home Assistant

Project description

Desk2HA Agent

Multi-vendor desktop telemetry agent for Home Assistant.

Collects hardware metrics, peripheral status, and display settings from Windows, Linux, and macOS — and exposes them via HTTP and MQTT for the Desk2HA HA integration.

Features

  • Cross-platform: Windows, Linux, macOS
  • 3-tier collector model: Platform (OS) → Generic (DDC/CI, HID, BLE) → Vendor (Dell, HP, ...)
  • Display control: Brightness, contrast, volume, input source, KVM switch via DDC/CI
  • Dual transport: HTTP API (OpenAPI v2.0.0) + MQTT with HA Discovery
  • Auto-discovery: Zeroconf/mDNS (_desk2ha._tcp.local.)
  • Self-update: Version check via GitHub Releases + pip upgrade
  • System tray: Windows tray icon with status menu

Collectors

Tier Collector Metrics
Platform Windows (WMI + psutil) CPU, RAM, disk, battery, network, GPU, OS info
Platform Linux (sysfs + psutil) Same as above
Platform macOS (IOKit + psutil) Same as above
Generic DDC/CI Monitor brightness, contrast, volume, input, power, KVM, PBP
Generic USB PD Charger connected, voltage, charging state
Generic HeadsetControl Headset battery, sidetone, LED, chatmix
Generic HID Battery USB peripheral battery levels
Generic BLE Battery Bluetooth device batteries
Vendor Dell Command Monitor CPU/GPU/SSD thermals, fan speeds, AC adapter wattage

Installation

pip install desk2ha-agent
# Windows extras (WMI, tray icon):
pip install desk2ha-agent[windows]

Quick Start

  1. Create a config file (desk2ha-agent.toml):
[http]
enabled = true
bind = "0.0.0.0"
port = 9693
auth_token = "YOUR_RANDOM_TOKEN"
  1. Run the agent:
desk2ha-agent --config desk2ha-agent.toml
  1. In Home Assistant, add the Desk2HA integration and point it to http://<agent-ip>:9693.

Configuration

See examples/full-config.toml for all options.

Section Key Options
[http] bind, port, auth_token
[mqtt] broker, port, username, password_env, base_topic
[collectors] disabled, intervals (per-collector poll rate)
[logging] level (DEBUG/INFO/WARNING)

API Endpoints

Method Path Auth Description
GET /v1/health No Health check
GET /v1/info Yes Device identity + collector status
GET /v1/metrics Yes All collected metrics
GET /v1/commands Yes List available commands
POST /v1/commands Yes Execute a command (e.g. set brightness)
GET /v1/update/check Yes Check for new agent release
POST /v1/update/install Yes Install agent update

Recommended Vendor Software

The agent works out of the box with basic metrics via standard OS APIs. For full telemetry (detailed thermals, fan speeds, battery health, thermal profile control), install the vendor-specific software for your hardware:

Dell

Software What it unlocks Download
Dell Command | Monitor CPU/GPU/SSD/skin thermals, fan RPM, AC adapter wattage, thermal profile control Dell Support
Dell Peripheral Manager Webcam settings, keyboard backlight, mouse DPI for Dell peripherals Dell Support

HP

Software What it unlocks Download
HP System Event Utility BIOS settings, thermal profile, fan control HP Support (search your model)
HP Notifications Battery health, power delivery info Included with HP Support Assistant

Lenovo

Software What it unlocks Download
Lenovo Vantage Thermal mode, battery thresholds, keyboard backlight Microsoft Store
Lenovo System Interface Foundation WMI access for BIOS settings, fan speed Lenovo Support

Linux (ThinkPad)

Module What it unlocks How to enable
thinkpad_acpi Fan speed, thermal mode Usually auto-loaded. Check: lsmod | grep thinkpad
ideapad_acpi Performance mode (IdeaPad/Legion) Usually auto-loaded. Check: lsmod | grep ideapad

Cross-Platform

Software What it unlocks Download
HeadsetControl Headset battery, sidetone, LED, chatmix (SteelSeries, Corsair, Logitech, HyperX) GitHub

Note: All vendor software is optional. The agent gracefully skips collectors when the required software is not installed. You can check which collectors are active via GET /v1/info.

Windows Autostart

The agent needs an interactive desktop session for DDC/CI monitor control. Use the Startup folder (not a Windows Service):

%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\Desk2HA Agent.vbs

Known Issues

Issue Workaround Status
DDC/CI not working as Windows Service DDC/CI requires an interactive desktop session (Session 1+). Use Startup folder autostart, not NSSM/Windows Service. By design (Windows limitation)
Dell Command Monitor v10.x WMI not available DCM v10.13 may not register the root\dcim\sysman WMI provider automatically. Ensure the dcstor64 and dcevt64 services are running. Investigating
Bluetooth peripherals not detected Devices connected via Dell Universal Receiver (Bluetooth/RF) are not yet enumerated. Only direct USB devices are listed. Planned
Duplicate devices after upgrade After upgrading from an older version, orphaned entity registry entries may create duplicate devices. Fix: delete the integration in HA and re-add it. Known
Logitech Litra G HUB conflict If Logitech G HUB is running, it may hold the HID interface and prevent the agent from reading Litra status. Close G HUB or disable Litra in G HUB

Upcoming Features

  • Bluetooth peripheral enumeration: Detect mouse/keyboard via Dell Universal Receiver and Logitech Bolt
  • Dell Command Monitor v10 support: Resolve WMI provider registration for DCM v10.x
  • Webcam UVC controls: Brightness, contrast, white balance, FOV, autofocus
  • Corsair/SteelSeries/Razer plugins: iCUE SDK, Sonar REST, Synapse integration
  • Product image system: Vendor-specific device silhouettes and fetched product photos
  • Remote agent installation: Deploy agent from HA UI via SSH/WinRM
  • Prometheus endpoint: /metrics in Prometheus scrape format
  • Fleet management: Multi-agent coordination for enterprise environments

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desk2ha_agent-0.3.0.tar.gz (68.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

desk2ha_agent-0.3.0-py3-none-any.whl (81.4 kB view details)

Uploaded Python 3

File details

Details for the file desk2ha_agent-0.3.0.tar.gz.

File metadata

  • Download URL: desk2ha_agent-0.3.0.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for desk2ha_agent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 41e77f140fedf4cc056f0377012ce12685389afec80ee33a75b2783a74b9b38b
MD5 3255204568eb7465ec90ac38c2d2a239
BLAKE2b-256 cde6b293b7029b0bd7b3b144dcdf11181aa2fce0c3de2a919a08e75d861beb76

See more details on using hashes here.

Provenance

The following attestation bundles were made for desk2ha_agent-0.3.0.tar.gz:

Publisher: release.yml on maximusIIxII/desk2ha-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file desk2ha_agent-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: desk2ha_agent-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 81.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for desk2ha_agent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 543adbb3fcf6aeed251ea90e8c2243f765f760361d6fa6e33bcb5a02dbd947cb
MD5 fb17e7cbe7348e6b03291dbdfbbe9355
BLAKE2b-256 dd0d5caca430913d8ff3e4417bf2c43cc01ac631c6e74475abd153ef2b55c56b

See more details on using hashes here.

Provenance

The following attestation bundles were made for desk2ha_agent-0.3.0-py3-none-any.whl:

Publisher: release.yml on maximusIIxII/desk2ha-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page