MQTT Energy Meter implementation ? need help!

Hello there i have a bitshake enegry meter connected via MQTT Broker and Client to my homey pro.

theres a data string wich is updated correctly but iam not able to get the single values out of it to put “watt” or whatever to virtual devices. how can i pull out the values out of this string and put it to vidtual devices or in variables ? outputted string looks like this

Something like this?

const argument = args[0];
const result = argument.replace("tele/Tasmota/SENSOR", "");
const data = JSON.parse(result);
const value = data.eBZ.Power;
return value;

You can use it in HomeyScript, with the “Run code with argument“ card, and using the Result tag in your Flow

This should work, but it"s unknown how the data is received by Homey
I added 2 examples to extract values from the JSON data:

It’s case sensitive as you can see.

I use a Hichi IR reader (Tasmota) and, thanks to @RonnyW, I got it up and running with these flows:

Ill check that :smiley: thanks so far …. if iam stuck again i will let you know