Script service call for many heat pump IR data codes

Hi, thanks for reply.
The broadlink device will not send the IR code, I’m not sure if HA even gets to the point of contacting the device.

If I don’t use a template to decide the IR code in my script my heat pump will beep, if a go use a template no action occurs.

Cheers.