Skip to main content

Module websocket

Module websocket 

Source
Expand description

WebSocket client for the Home Assistant WebSocket API.

Unlike REST, the registry endpoints (config/entity_registry/*, config/device_registry/*, config/area_registry/*) are only reachable over the WebSocket API. This module provides a minimal id-multiplexed request/response client that authenticates once and exchanges JSON messages with Home Assistant.

Protocol reference: https://developers.home-assistant.io/docs/api/websocket

Structsยง

HaWs
Authenticated Home Assistant WebSocket client.