RM5.1 Reuse defined condition bug

@bravenel
Here are a couple of screenshots of a recreation of a bug I encountered.


The second conditional reuses the condition created for the first.
When deleting the second conditional it also removed the condition.

Hubitat Elevation® Platform Version
2.3.0.113
Hardware Version
Rev C-7

-D

Did you delete the condition in "Manage Conditions"--or just delete the "IF" statement?

Just the IF statement.

Yes, removing an action removes the conditions defined for that action. Not sure whether to call this a bug or a feature; irrespective it is known behavior. The reuse of conditions is problematic, and the code doesn't track that they are used in multiple actions. I'll look into incorporating that in a future release.

3 Likes

Thanks.