#Hi does anyone knows how to bypass the
1 messages ยท Page 1 of 1 (latest)
If you mean "global" to all of HA then try https://www.home-assistant.io/integrations#search/input
Or use something like this
https://community.home-assistant.io/t/wth-cant-input-helpers-be-read-only-in-ui/467562/32
So in my loop I would set a HA input? It would probably work but I have theses concerns:
- Seems pretty inefficient
- If there is some cache on reading value from a input during a script (now or later after an update), this will not work
- It's not easily shareable because only script and automation have blueprints
For the Trigger based template sensor, I'm afraid of the https://www.home-assistant.io/integrations/template/#rate-limiting-updates too.
This path will make potentially (with my current template script loop) 8 events in a row ๐
Though, I will try that and see if it's works ๐ Will share back as soon as I get a chance to try!
And big thanks to both of you, it's super encouraging ๐
Wanted to update you, I think I found a solution!
What I did is: have two variable block in my script, one for executing my template and write one variable output as result1@result2@result3... then the next variable block, set all my variable with a simple myVariableResult1: "{{bool(templateResult.split('@')[0]) }}" and so on!
Here is my script so far if you're curious and want to see how I dealt with that!
https://gist.github.com/holblin/c4750ac0e5883f8bcad93ce84b6ca063
Yeah, sure that works, but you were asking about variables outside the local scope of an automation/script.
Unless I misunderstood your question