# MQTT berichten als Virtuele aparaten

**URL:** <https://community.homey.app/t/mqtt-berichten-als-virtuele-aparaten/70931>\
**Category:** Vragen & hulp\
**Tags:** mqtt, homey-pro\
**Created:** [October 21, 2022, 10:22am UTC](https://community.homey.app/t/mqtt-berichten-als-virtuele-aparaten/70931 "2022-10-21T10:22:43Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [October 23, 2022, 6:05pm UTC](https://community.homey.app/t/mqtt-berichten-als-virtuele-aparaten/70931/8 "2022-10-23T18:05:02Z")

</div>

Mss dat deze topics enige hulp bieden in het ontcijferen vd JSON

> [@Extracting json body](https://community.homey.app/t/extracting-json-body/47759/):
>
> I have problems getting the information out of a json body. I tried jsonpath evaluator. The input i have is; {“energyDetails”:{“timeUnit”:“YEAR”,“unit”:“Wh”,“meters”:[{“type”:“Production”,“values”:[{“date”:“2020-01-01 00:00:00”,“value”:2189424.0}]}]}} I want out of value the number 2189424.0 the solution from jsonpath is: $.energyDetails.meters.[value] when i try this in homeyscript it doesn’t work; var body = await res.json(); var body2 = body.energyDetails.meters.values[‘value’] or va…

> [@Buienradar Json](https://community.homey.app/t/buienradar-json/16706):
>
> Ik probeer vanuit de buienradar json file een variabele te vullen in better logic. Veel geprobeerd en gezocht, maar loop nu echt vast. Wat gaat hier niet goed? Zal hem zitten in het Jsonpath denk ik, krijg daar de gegevens maar niet goed in.

---

_[View the full topic](https://community.homey.app/t/mqtt-berichten-als-virtuele-aparaten/70931)._
