#Variable iterations in blueprint

1 messages · Page 1 of 1 (latest)

timber sierra
#

I have a couple of Hue dimmer switches (V2). I use a blueprint to provide sequences for each button (on_press, off_press ...). I have also added a counter (helper) that counts the number or identical button presses (i. e. on). The counter is reset, whenever a different button is pressed or if the last automation trigger was more than 10s ago. So far so good. I am now able to iterate through scenes with the "ON" button (via Choose): First press - Scene 1, second press, Scene 2 and so on.
Here's my question: I am not able to reset the counter in the automation. How can I write to the helper variable from within the last Choose action?
Or perhaps there is another solution for that?

agile pilot
#

Why can't you reset the helper with counter.reset?
But I made a blueprint to handle multipress as well. It does the counting without helper and only ouputs the result to a helper: