I have a python script that retrieves water usage and responds with the json of the date and usage. I have this .py file added to HACs pyscript integration in the /homeassistant/pyscript/ directory and is an available service in HA.
I can see how it could be called as a new Automation but it’s unclear to me how to get the response as data available in HA. Do I need a device that calls the service? According to the doc Reference — hacs-pyscript 1.5.0 documentation, the response can be captured by the call if you set the optional keyword parameter return_response=True
. But I don’t understand where this parameter would get set.
Using Home Assistant Core 2024.1.3