I have a Snapdragon laptop, a desktop PC and a Home Assistant box on a
Raspberry Pi. I wanted the computers in Home Assistant like any other device:
sensors, power buttons, notifications, media. The usual answer is HASS.Agent
plus an MQTT broker. HASS.Agent had no native ARM64 build, and I didn't want
a broker just so two machines in the same house could talk.
So I built Deskmate. It's a desktop app (Tauri 2, Rust, React) and its own
Home Assistant integration (Python, in the default HACS catalog). It's MIT
licensed. This post is about the three parts I use every day and a few
design decisions behind them.
One encrypted connection instead of a broker
The integration opens a WebSocket endpoint inside Home Assistant. The PC
connects to it with a pairing code you copy from the integration's setup
screen. Every session starts with a fresh X25519 key exchange, frames are
AES-256-GCM with replay protection, and a second cipher layer can be turned
on.…