Digital-Alchemy-TS / Digital-Alchemy-TS/hass

coalesce_messages support

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
25
Forks
4
Avg merge
20h 37m
Merged PRs (30d)
1

Description

This appears as a socket frame that appears immediately after Home Assistant replies with `auth_ok`.

```json
{"type":"supported_features","id":1,"features":{"coalesce_messages":1}}
```

It appears alter the way Home Assistant sends updates over the websocket. With this enabled, messages can appear as both single objects, or an array of objects. Objects appear to be patch changes, rather than full size entity states being sent with every update.

Example update

```json
{"id":3,"type":"event","event":{"c":{"sensor.adguard_home_dns_queries":{"+":{"s":"1171995","lc":1669568008.42719,"c":"01GJX0447BF912599CZBXNY4AX"}}}}}
```

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the existing TypeScript WebSocket bindings and how the auth_ok response is handled. Trace the supported_features frame and event updates, then verify that both single objects and arrays of patch changes are handled as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.