# MQTT Energy Meter implementation ? need help!

**URL:** <https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679>\
**Category:** Questions & Help\
**Created:** [November 21, 2025, 3:06pm UTC](https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679 "2025-11-21T15:06:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans\_Wurst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans_wurst/32/120984_2.png) [@Hans\_Wurst](https://community.homey.app/u/Hans_Wurst)\
**Post date:** [November 21, 2025, 3:06pm UTC](https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679/1 "2025-11-21T15:06:51Z")

</div>

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

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d77fd81d9e66f0318d1787a981cd723240fa430.png)

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [November 21, 2025, 3:41pm UTC](https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679/2 "2025-11-21T15:41:02Z")

</div>

Something like this?

```auto
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

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 22, 2025, 12:05am UTC](https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679/3 "2025-11-22T00:05:21Z")

</div>

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:

 ![1000001404](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c800a71ff2382c61c288782ebdfced266e5c1111.jpeg)

It’s case sensitive as you can see.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 22, 2025, 10:47am UTC](https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679/4 "2025-11-22T10:47:54Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9da30f1f9f5228d4e6a169332397fe03d712fc4f.png)

---

<div class="post-metadata">

**Author:** ![Hans\_Wurst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans_wurst/32/120984_2.png) [@Hans\_Wurst](https://community.homey.app/u/Hans_Wurst)\
**Post date:** [November 23, 2025, 1:31pm UTC](https://community.homey.app/t/mqtt-energy-meter-implementation-need-help/145679/5 "2025-11-23T13:31:47Z")

</div>

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