I ran into a problem where I am trying to create a pretty log message presentation. I was trying to use input text since that gives me more liberty then using a logbook from what I saw.
The problem I had was that apparently the state of the input text is not updating inside the loop. I am trying to use its state + the message I want to add but for some reason it only shows me a single message of the loop, which is not what I want
This isnt quite what I have if you prefer I can send the whole thing but I felt like that would just be more confusing.
As you can see there is a bigger loop, and then smaller batch loops.
The ideia is that it turns on all lights in the batch, and then it registeres whether they turned on or not
I’m thinking you will run in to the maximum characters quite fast with an input text.
If you have on Failure: then that is 11 characters. Then add a entity_id and then do the same for all lights…
I’m not sure that will work even if you get it to work.
Your repeat loop is a different scope than your outer variables,.
You lost scope.
You will need a namespace to pull stuff out, or use a helper to store the variable, or something like this: Trigger based template sensor to store global variables.