Here you can see how the topic event has been set up with its own script in order to display the value coming from the shelly device. This topic will display the energy counter in Watt-minute. Topic Event Topic: shellies/shellyem-/emeter//energy Script: return payload;