I have implemented this rule for my washing machine and it works just fine. Bu I can’t get the current state of the washing machine displayed as nicely as in the linked post.
It is a Number iten and I have only been able to implement it as a Selection or Switch with text mappings, both of which is not pretty and could even be changed via the sitemap.
How do I display Washingmachine_OpState values 0 to 3 as nice texts as in the OP? Maybe even with the little symbols?