Apple Shortcuts - Render Template Took Too Long error

Hi folks,

I’m running Home Assistant on HA Green hardware, and have a couple of Apple/Siri Shortcuts on my iPhone that work with Home Assistant (things like Night Routines, etc). I seem to be running into issues with the Render Template action responding back with “Could not run Render Template. The operation took too long to complete. Please try again.” around 70% of the time.

An example Render Template I have, checks the state of a input Boolean for an if condition:

{{ is_state('input_boolean.prepare_night_mode', 'on') }}

I’m not pulling large amounts of data, or anything that should cause the request to timeout, so I’m a little perplexed as to what could be causing it. Also running the Shortcut on my local network, but do have Nabu Casa for remote access.

Any thoughts on where I should be looking to get this sorted? Nothing seems to appear in the HA logs to indicate. It does seem to be a bit more reliable if I have recently opened the Home Assistant iOS app on the device, so wondering if there’s a background app power saving issue?

Thanks