OpenHAB3 / Thing Status / How to extract the thing status and work with it on items

It seems there is a way:

However, I couldn’t get this example to work for OH3 yet.