#Hi does anyone knows how to bypass the

1 messages ยท Page 1 of 1 (latest)

remote lake
hollow cloak
topaz temple
#

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 ๐Ÿ™‚

topaz temple
#

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!

hollow cloak
#

Yeah, sure that works, but you were asking about variables outside the local scope of an automation/script.
Unless I misunderstood your question

topaz temple
#

Yeah, because I was trying to get my loop working without being stuck with local scope variable! I wanted to have a script scope vairable or something like that

#

Solution was to use template where I could use a namespace to cheat and then use another block ๐Ÿ™‚