I created a simple automation that announces when LG washer is finished and would like to persist a variable of the cycle used: (example: Towels) and include this in the announcement after the cycle completes.
What happens is once the washer completes, the state of the cycle switches from “Towels” to “-”.
So how can store the state attribute value before the washer completes and then recall it?