Make this a setting or large enough number to accommodate power users please.
23-05-20 07:48:46 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
23-05-20 07:48:48 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
23-05-20 07:48:48 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
23-05-20 07:48:48 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-05-20 07:48:48 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 258:WebSocketError(<WSCloseCode.MESSAGE_TOO_BIG: 1009>, âMessage size 4983115 exceeds limit 4194304â) is not str
Appears to be the state of every entity, sent every second, rather than the ones that have changed or something more efficient. To be clear it is every field of every entity. So if you have multiple homes, and say 50 ring cameras, itâs 50 active tokens and a ton of other information that node red doesnât need or use as well.
There is a ânewerâ subscribe_entities call that could be used that only sends the initial compressed entity state and than diffs of the state as long as the subscription is held. That should be one or two orders of magnitude smaller. Itâs something the node red connector would need to adopt
Yeah not only would that allow power users to scale today, it would be a much better approach long term as more devices connect to HA, IMO. I guess the other option would be to shake the tree on the entities and only pass the fields node red cares about. In a perfect world, both would be implemented together.
They have been made aware a few months ago. I think someone will have to step up and do the work to make it happen. The support for the more efficient entity stream has been in Home Assistant for nearly a year now so there really isnât anything to do on the Home Assistant side for this feature request at this time