Template values loaded by calling a service?

The LG WebOS TV integration provides a set of API endpoints that can be accessed by calling the Home Assistant service webostv.command In the case of the “get” endpoints, that service call returns a value or list of values. My question is: can I capture the output of that service to load a template value or otherwise load a template sensor value?