Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

passing output to use in other scripts with response_variable #541

Unanswered
lawya-cm asked this question in Q&A
Discussion options

Is there a way to call a pyscript from within some other automation or yaml script and make use of the output in that other script.

For many services you can use response_variable e.g

- service: weather.get_forecast
 data:
 type: hourly
 target:
 entity_id: weather.forecast_home
 response_variable: hourly_forecast

Is this possible in a pyscript or is there another approach other than using a helper with an input_text as I am doing now?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /