OH3: MQTT topic to an item / ECMA script

Example below for one of my items controlled via MQTT:

Thing:

Channels and Item:

Example ECMA rule:

Hope those help you to build your setup.