# In der Lage sein, eine Variable in HTTP-Anfrage zu injizieren + Gerät zu steuern

**URL:** <https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045>\
**Category:** Demandes livrées\
**Tags:** feature-integration, scene, scene-action\
**Created:** [9. März 2022 um 18:14 UTC](https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045 "2022-03-09T18:14:03Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [23. Mai 2022 um 15:57 UTC](https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045/17 "2022-05-23T15:57:27Z")

</div>

Hallo zusammen!

Ich habe heute an diesem Thema gearbeitet. Es ist nicht das am häufigsten gefragte Thema im Forum, aber es ist ein «&nbsp;Quick Win&nbsp;» und ich denke, diese Funktion ist sehr nützlich für Leute, die zu Gladys wechseln möchten, aber eine andere Instanz (HA, Node-RED, etc.) nebenbei behalten wollen, um Geräte zu verwalten, die nicht von Gladys unterstützt werden.

Für die Aktion «&nbsp;HTTP-Anfrage senden&nbsp;» sieht das also so aus:

 ![Screenshot 2022-05-23 at 16.48.48](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e9f993a35b27fa7944ce7b695936f7f3cc5d27e4.png)

Gleiches Verhalten wie die Aktion «&nbsp;Nachricht senden&nbsp;» 🙂

Der PR ist hier verfügbar:

> <https://github.com/GladysAssistant/Gladys/pull/1540>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- \[x\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[x\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

Allerdings sehe ich nicht, wie man das in der Aktion «&nbsp;Gerät steuern&nbsp;» machen könnte, da diese Ansicht keine Textfelder hat.

Ich frage mich am Ende, ob es nicht eine andere Entwicklung ist..

Wer wollte diese Funktion in der Aktion «&nbsp;Gerät steuern&nbsp;»? Wofür?

Habt ihr ein Beispiel für einen Anwendungsfall?

---

_[View the full topic](https://community.gladysassistant.com/t/etre-capable-dinjecter-une-variable-dans-requete-http-controler-un-appareil/7045)._
