# Logic Analyse JSON to Boelan

**URL:** <https://community.homey.app/t/logic-analyse-json-to-boelan/77133>\
**Category:** Questions & Help\
**Tags:** logic\
**Created:** [March 4, 2023, 11:02am UTC](https://community.homey.app/t/logic-analyse-json-to-boelan/77133 "2023-03-04T11:02:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Neumann1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_neumann1/32/71368_2.png) [@Thomas\_Neumann1](https://community.homey.app/u/Thomas_Neumann1)\
**Post date:** [March 4, 2023, 11:02am UTC](https://community.homey.app/t/logic-analyse-json-to-boelan/77133/1 "2023-03-04T11:02:07Z")

</div>

Hi Comunity. I have a really frustrating problem.  
I have a MQTT motion sensor delivering Bolean status via a broker.  
If i take the incomming message via a MQTT Client card, goes to a Logic analyser and filter out the “occupancy” text via JSON and sends the result to a Virtual Device with the sensor “alarm\_motion” it does not activate it. If i send the result to a text-variable i can see i get a “Hook” instead of True, and a “X” instead of False. Please help me.

Br.  
Thomas.

---

<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:** [March 4, 2023, 7:32pm UTC](https://community.homey.app/t/logic-analyse-json-to-boelan/77133/2 "2023-03-04T19:32:45Z")

</div>

Hi Thomas,  
Simplified, first send the JSON result to a Logics text match card for “hook”, and then set the virtual motion sensor’s alarm\_motion to true, by hard-coding the word ‘true’
