# Execution of scenes via Tasker - Gladys Plus

**URL:** <https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394>\
**Category:** Gladys Plus\
**Created:** [June 14, 2021, 11:22pm UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394 "2021-06-14T23:22:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![djokoss22](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@djokoss22](https://community.gladysassistant.com/u/djokoss22)\
**Post date:** [June 14, 2021, 11:22pm UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/1 "2021-06-14T23:22:38Z")

</div>

Hello,  
Given the new integrations added in version 4.4 of Gladys, I plan to subscribe to Gladys Plus.

I would like to know if it is possible to launch a Gladys scene via Gladys Plus and Tasker? (I assume yes)  
But what should I put in my config?

> POST [https://api.gladysgateway.com/v1/api/](https://api.gladysgateway.com/v1/api/) **???** /YOUR\_OPEN\_API\_KEY
> 
> Body:  
> {  
> **???**  
> }

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 15, 2021, 1:17am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/2 "2021-06-15T01:17:17Z")

</div>

Hello @djokoss22 and thank you very much for your support if you join Gladys Plus 🙏

> [@djokoss22](#):
>
> I would like to know if it is possible to launch a Gladys scene via Gladys Plus and Tasker? (I suppose so)  
> But what should I put in my config?

As it stands, there is no direct API to launch a scene from Gladys Plus, but that could be an interesting feature 🙂

After all, it is still possible to do it here, you can go through a «&nbsp;virtual&nbsp;» MQTT device as in this tutorial → [Open API | Gladys Assistant](https://gladysassistant.com/fr/docs/plus/open-api)

You create an MQTT device for example called «&nbsp;Scene Trigger&nbsp;», and you send a request like this:

```http
POST https://api.gladysgateway.com/v1/api/device/state/YOUR_OPEN_API_KEY

Body:
{
    "device_feature_external_id": "mqtt:declenchement-scene",
    "state": 1
}

```

And then you make a scene that triggers on state change to 1 of this device 🙂

What is your use case? What do you want to do in Tasker? (so we can see together what is best for you)

---

<div class="post-metadata">

**Author:** ![djokoss22](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@djokoss22](https://community.gladysassistant.com/u/djokoss22)\
**Post date:** [June 15, 2021, 3:01am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/3 "2021-06-15T03:01:33Z")

</div>

I have several use cases, but for example, I would like to launch a scene when I place my smartphone in certain places (via NFC) such as turning off my lights when I place my smartphone on my nightstand, that kind of thing.  
But your solution seems pretty good. I will try that.  
Just, can you confirm that we are not obliged to configure an MQTT broker for this? We just create the virtual device?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 15, 2021, 3:23am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/4 "2021-06-15T03:23:21Z")

</div>

> [@djokoss22](#):
>
> I have several use cases, but for example, I would like to launch a scene when I place my smartphone in certain places (via NFC) such as turning off my lights when I place my smartphone on my nightstand, that kind of thing.

Ok I see, you’re right that makes sense. I’ll see what I can do to add that 👍

Meanwhile, the virtual MQTT device works well. I don’t think you need to configure MQTT 🙂

---

<div class="post-metadata">

**Author:** ![djokoss22](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@djokoss22](https://community.gladysassistant.com/u/djokoss22)\
**Post date:** [June 15, 2021, 4:28am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/5 "2021-06-15T04:28:02Z")

</div>

Nickel, thank you very much!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 15, 2021, 4:34am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/6 "2021-06-15T04:34:00Z")

</div>

I just noticed that you signed up, thank you for your support 🙌

Don’t hesitate if you have any questions or feedback 🙂

---

<div class="post-metadata">

**Author:** ![djokoss22](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@djokoss22](https://community.gladysassistant.com/u/djokoss22)\
**Post date:** [June 15, 2021, 4:45am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/7 "2021-06-15T04:45:37Z")

</div>

It’s more than normal given the evolution of Gladys, the community behind it, and the work done on this version 4.

I used to struggle every time I wanted to do something on Gladys3, it took me hours or even days each time because of Linux, Java, and all that stuff, I know nothing about it.  
And now, with Gladys4, it took me less than an hour to set up everything again + the entire configuration of all my devices and scenes. It’s just super user-friendly now. It’s clear that Gladys4 still has to grow and see more integrations and improvements added to it, but, damn, what a pleasure this version 4!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 15, 2021, 4:49am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/8 "2021-06-15T04:49:48Z")

</div>

> [@djokoss22](#):
>
> but damn, what a pleasure this version 4!

😍

It’s great to read that! Indeed, in version 3 there were a lot of annoying things.

It took 2 years to rewrite everything to get here, it wasn’t easy but you can see the result, the product is completely different 🙂

---

<div class="post-metadata">

**Author:** ![djokoss22](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@djokoss22](https://community.gladysassistant.com/u/djokoss22)\
**Post date:** [June 15, 2021, 6:24am UTC](https://community.gladysassistant.com/t/execution-de-scenes-via-tasker-gladys-plus/6394/9 "2021-06-15T06:24:43Z")

</div>

It works perfectly with the virtual MQTT device solution, thanks!
