homeassistant-elasticsearch icon indicating copy to clipboard operation
homeassistant-elasticsearch copied to clipboard

[2.0] Entity / Device Data is potentially old by publish time

Open strawgate opened this issue 10 months ago • 2 comments

Formatting is currently done during publish time instead of as the poller and listener add state updates to the publish queue.

As formatting enriches the state update with extended details about the entity, related floors, areas, and device, we should ensure that enrichment occurs as quickly as possible and not 1-10 minutes later.

We should likely move formatting to occur as part of the poller/listener adding an item to the queue so that that enrichment happens immediately instead of during publish time.

strawgate avatar Jan 09 '25 04:01 strawgate

@legrego thoughts on fixing this in my current testing pr vs fixing later?

strawgate avatar Jan 10 '25 18:01 strawgate

@strawgate I'd prefer if we handle this in its own PR

legrego avatar Jan 11 '25 12:01 legrego