# How to call a Homey script from an App

**URL:** <https://community.homey.app/t/how-to-call-a-homey-script-from-an-app/84313>\
**Category:** Questions & Help\
**Created:** [July 10, 2023, 12:05pm UTC](https://community.homey.app/t/how-to-call-a-homey-script-from-an-app/84313 "2023-07-10T12:05:08Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [July 10, 2023, 2:12pm UTC](https://community.homey.app/t/how-to-call-a-homey-script-from-an-app/84313/14 "2023-07-10T14:12:40Z")

</div>

> [@Teun\_Pasterkamp](#):
>
> { “SetRoomTemperature” : “{{value}}” }

Did you try this example:

> [@MQTT Hub/Gateway](https://community.homey.app/t/mqtt-hub-gateway/6766/842):
>
> MQTT Devices are now able to handle JSON input & output. Version 3.1.0 MQTT device: grab input value from json messages (jsonPath) MQTT device: format output message payload to json (JSON-T template) I added two optional config parameters per capability: value path: point to a value within the JSON payload of the state messate using [JSONPath](https://github.com/dchester/jsonpath#readme). output template: format the output using [JSON-T](https://github.com/lightsofapollo/json-templater). Both string & object output are supported. All values from the device state (capabilities)…

So:  
{ “SetRoomTemperature” : {{value}} }

HUB Version 3.1.0+

---

_[View the full topic](https://community.homey.app/t/how-to-call-a-homey-script-from-an-app/84313)._
