Execution of scenes via Tasker - Gladys Plus

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/???/YOUR_OPEN_API_KEY

Body:
{
???
}

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

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

After all, it is still possible to do it here, you can go through a « virtual Â» MQTT device as in this tutorial → Open API | Gladys Assistant

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

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 :slight_smile:

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

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?

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

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

Nickel, thank you very much!

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

Don’t hesitate if you have any questions or feedback :slightly_smiling_face:

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!

:heart_eyes:

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 :slight_smile:

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