The first question is the main topic of Reggio'stwo recent paper Polyadic Sets and Homomorphism Countingpapers:
- Reggio's Polyadic Sets and Homomorphism Counting, which is also a good reference for previous results in the literature (including that of Pultr mentioned in the comments). In particular, see Theorems 4.3, 5.10, and 5.12, the latter of which generalise beyond locally-finite categories.
- Fujino–Matsumoto's Lovàsz's hom-counting theorem by inclusion-exclusion principle. In particular, see Theorems 2.11 and 2.12.
As far as I understand, whichthe theorems give orthogonal sufficient conditions: it's unclear whether there is also a good reference for previous results in the literature (including that of Pultr mentioned in the comments). In particular, see Theorems 4.3, 5.10, and 5.12, the latter of which generalise beyond locally-finite categoriesgeneral theorem subsuming both.
I don't believe there are answers for enriched categories yet.