Be able to inject a variable into HTTP request + control a device

As a user
I want to be able to inject a scene variable into an HTTP request
In order to be able to make requests containing relevant information (door opening status for example)

As a user
I would like to be able to inject a scene variable into a block controlling a device
In order to be able to define a value for a feature (air quality recovery via api cf: Nouvelle vidéo : Gladys Assistant chez vous #5, Cyril et son café prêt tous les matins grâce à Gladys! - #15 par pierre-gilles)

I think this is a good feature so I even voted for it :smiley:

Will my Sonos finally be able to tell me what the temperature is in my daughter’s room :smiley: ?

If on top of that you play the « child » card, you’re going to make me develop it even faster haha

She is 8 months old, is that better?! XD

Yes, she will tell you to check your Dashboard :grin:

I vote for it because I have Sonos speakers too, and children too!!

My daughter is 15 months old… :grin:

Still, I don’t even know what we’re talking about with http injections :sweat_smile::sweat_smile:

A warning is better than nothing xD

In short, I created an API on the Node-RED side
And when I send this action to Gladys

And when I pass it a text + a room, I get a voice message (for now, Google) on my Sonos speakers

Oh yeah, that’s VERY cool! I really like the concept.

I can imagine that at my place with the alarm status:

  • « Alarm activation in 30sec »
  • Beep – Beep – Beep – …
  • « Alarm activated »
  • « Alert detected - Emergency services being called »

Etc… I love it :smiley:

It will be necessary to create bots that vote (no choice ^^) :stuck_out_tongue:

I vote for it! Actually, I had suggested the same idea in November, but it didn’t get as much success :wink: : Permettre d'injecter une variable dans une action "faire une requête HTTP"

Indeed, is it possible to merge the two as well as the votes @pierre-gilles / @VonOx / @Tlse-vins?

Merging is not possible as far as I know, but we need to tell @Lokkye to delete his vote from the other one and vote on this one.
We will be able to close the other request.

I just removed my vote on the other one :slight_smile:

Hi everyone!

I worked on this topic today. It’s not the most requested topic on the forum, but it’s a « quick win » and I think this feature is very useful for people who want to switch to Gladys while keeping another instance alongside (HA (Home Assistant), Node-RED, etc..) to manage devices not handled by Gladys.

For the « Make an HTTP request » action, it looks like this:

Same behavior as the « Send a message » action :slight_smile:

The PR is available here:

However, I can’t really see how we could do this in the « Control a device » action because that view doesn’t have any text fields.

I wonder if in the end it’s not a different development..

Those of you who wanted this feature in the « control a device » action, what would you have used it for?

Do you have an example use case?

You make a GET request that retrieves a value, and that value allows you to set the state of a Gladys device. It doesn’t matter which feature.

That avoids using Node-RED just to do that (in practice it can be complicated if you need to convert the data type…)

Ok I see, indeed that’s useful.

Besides, in this case it’ll be a totally different visual, since we just want to inject a « pure » value, and not concatenated text like when sending a message or an HTTP request.

The problem of data conversion is also important, because then it’s no longer text but numbers that we send.

So it will be a different PR then.

I thought it was in the new