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