homeassistant-ws

JSON →
library 0.2.5 ·javascript
verified Jun 7, 2026

Minimalist WebSocket client library for Home Assistant's websocket API. Current stable version is 0.2.5. It provides a simple async interface to connect, authenticate, and interact with Home Assistant, including fetching states, services, panels, config, media player thumbnails, camera thumbnails, calling services, and subscribing to events. Works in Node.js and browsers. Ships TypeScript types. Key differentiators: minimal dependencies, straightforward API, built-in event system for state_changed and other HA events.