1

State "Variable Value" bugged, when used with multipled states and Variable Clear Action using pattern matching.

I have made a little project showcasing the bug.

Test Project

The state "Variable Value" still lights up green when I clear the variable and applies as true the next time I run the task when it should be false without any value. The problem also seems to be related to pattern matching while clearing multiple variables in one Variable Clear Action e.g. %TestVar/%TestVar1

Another user has confirmed the same bug on different android device.

Steps to reproduce:

After importing, plug in the charger and run the task 1. ON and you will see the state light up green.

Next, run the task 2. OFF and you'll immediately see the state no longer lits up.

Now run task 1.ON again and disconnect the charger which should clear all the variables and the state should also turn off but it still lights up green until you tap on the check mark at the top.

The state still applies as true even after clearing the variable because the state is still lit up when it should be false. It seems to be working properly when I turn it off manually but it gets bugged when I use the power disconnect event.

I tried using a separate Variable Clear Action for the variable but sometimes it works and sometimes it gets bugged.  Please look into the issue. Thanks!