Entity not found in cache (for one node, but fine for others)

I have a HA group that contains some input booleans that represent presence of different people. I use it quite a bit throughout my NodeRED flows and have never had an issue, until now.

Suddenly one specific node keeps returning “Entity could not be found in cache for entity_id: group.presence” errors in the debug log. The node in question is the one circled but its a direct copy/paste of the node above, which is working fine. The only difference is we use the If not true output on this one, rather than the If true output.

It was working fine, but seemingly has just stopped. I have deleted and recreated the node from scratch and by copying/pasting the node from above.

What have I missed?

Nick

Interestingly if I turn off “Delay connection attempts” in the Home Assistant Config Node then this goes away and everything works as expected.