provide a way for result variables to be displayed in a dashboard card #655
Unanswered
hrabbach
asked this question in
Automations & scripts
Replies: 2 comments 7 replies
-
|
Do you think there should be any memory (like remember the last run), or is this strictly an ephemeral: push button -> run script -> show result, and then that is gone when you reload the page? I could maybe see the Script more-info page being one place that might be useful to show a response variable. Though that would be a JSON result and I'm not sure how we get from that to a nice display. Or maybe a popup dialog result when running a script from the dashboard. |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
I guess a "result file" option in automations and a dashboard card that can
display file contents would also be a possibility - I briefly looked into
that, but the available cards don't seem to have a way to display multi
line text files.
…On Thu, 14 Aug 2025, 19:08 karwosts, ***@***.***> wrote:
I guess if we need to recall the result from a previous run (i.e. not
attached to a run immediately requested in the frontend), than that data
needs to be attached to some entity in the state machine somehow, as that's
the only real way for frontend to get the data.
Maybe script/automation could have their last run response variable
attached as an attribute... but I really think this is going against the
current direction of development, trying to remove attributes and
unnecessary data as possible from the state machine.
—
Reply to this email directly, view it on GitHub
<#655 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLKKUMFYNBUH7CEMVCFTD4T3NS67VAVCNFSM6AAAAACD4AQMGGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJQG4YDCNA>
.
You are receiving this because you authored the thread.Message ID:
<home-assistant/feature-requests/repo-discussions/655/comments/14107014@
github.com>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
I'd like to be able to run an automation and use the result variable in a dashboard card. Currently (unless the result is guaranteed to be less than 255 characters, in which case I could use an input text helper) this needs to be worked around with a trigger template sensor storing the result as an attribute, which is basically an automation, but needs to be configured in YAML mode with no way to easily manage and test.
Use cases
With the new AI tasks functionality, I can ask for a weather summary based on all my weather-related sensors, weather warnings from different services etc. - I'd like the result to be shown in a dashboard. The same would be true for other AI generated summaries about the states of multiple sensors, etc.
Current workarounds
Currently that had to be configured as a trigger template sensor, storing the result as a sensor attribute, and then displaying the attribute in a markdown card. While the automation can generate the summary, there is no way to pass the result anywhere that can be displayed in a dashboard card.
Anything else?
I'm not asking for a special dashboard card, although I guess that could be part of the solution
Beta Was this translation helpful? Give feedback.
All reactions