Read and display service call response

Is there any way of reading and displaying the response from a service call?

Like from this:

- service: vacuum.send_Command
    entity_id: vacuum.xiaomi_vacuum_cleaner

This is what the command’s response should look like:

If it’s not possible through a service call, is it possible through a shell command (like

Since the miio command output is json, I created a script that runs miio and redirected the output to a file in /config/www and then used a REST template to fetch the json through http://hassio:8123/local/miio.json

So, is there a way to capture the response from a service call?
If I need to do it using a script, what must be in the script, how do I call it, and how do I get hold of the resulting data?