It would be great if scripts could return values. Using global helpers for this feels far from ideal; Jinja templates are sketchy at best (though perhaps you differ from me in that view, and I haven’t even figured out how I might use Jinja templates in HA scripts–though perhaps that’s where I go wrong); and the alternative feels like building a top-down script architecture where every possible piece of information is passed down from the top to a series of scripts that call one another in only one direction.
Am I missing something here? I’d love to be able to extract a return value from a script.
Thank you for reviewing. I have just two gripes with HA (which I have started using over teh last year) and have posted them both. I don’t want to abuse the opportunity
Nothing wrong with the idea but its impossible at an architectural level right now. Service calls have no capability to return values, scripts are no exception. Could change though.
But yea, I’ll vote for it. Probably bigger then a WTH but I would definitely use this capability.