Help with HA Print invoice

I’m looking for a solution that when I run automation in HA after finishing the automation I need my printer print report based on the status of many entities like an invoice template all that be locally

Any idea ?

Thanks