{"library":"homeassistant-ws","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.2.5","tags":["javascript","homeassistant","websocket","hass","ha","smart","home","api","hassio","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install homeassistant-ws","imports":["import hass from 'homeassistant-ws';","import hass from 'homeassistant-ws';","import hass from 'homeassistant-ws'; const client = await hass({...});"]},{"cmd":"yarn add homeassistant-ws","imports":[]},{"cmd":"pnpm add homeassistant-ws","imports":[]}],"homepage":"https://github.com/filp/homeassistant-ws","github":"https://github.com/filp/homeassistant-ws","docs":null,"changelog":null,"pypi":null,"npm":"homeassistant-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}