# Gladys 4 Beta ist verfügbar! 🚀

**URL:** <https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986>\
**Category:** Actualités\
**Created:** [18. Oktober 2019 um 18:21 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986 "2019-10-18T18:21:23Z")\
**Posts on this page:** 20\
**Page:** 7

<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:** [2. Dezember 2019 um 15:16 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/148 "2019-12-02T15:16:16Z")

</div>

> [@Tlse-vins](#):
>
> Hallo @pierre-gilles, ich habe auch Philips Hue E27 White and Color Ambiance Lampen, die nicht erkannt werden.  
> Was muss ich tun, um dir die benötigten Informationen zu geben?

Du kannst die JS-Konsole auf der Philips Hue-Seite von Gladys öffnen, Reiter «&nbsp;Network&nbsp;», die Seite aktualisieren und hier (oder per PN) die JSON-Rückgabe des API GET /api/v1/service/philips-hue/light einfügen!

Noch besser, du erstellst mir ein Github-Issue mit dem JSON, das du erhältst, ähnlich wie dieses Issue:

> <https://github.com/GladysAssistant/Gladys/issues/619>
>
> \`\`\`json
> {"1":{"name":"Table à manger","service\_id":"5bf6ff05-dd2f-4c0e-80b5-238…d160a1e6c","external\_id":"philips-hue-light:00178825bff6:2","selector":"philips-hue-light:00178825bff6:2","should\_poll":true,"model":"LWB006","poll\_frequency":60000,"features":\[\],"not\_handled":true,"raw\_philips\_hue\_device":{"\_rawData":{"state":{"on":false,"bri":254,"alert":"select","mode":"homeautomation","reachable":false},"swupdate":{"state":"noupdates","lastinstall":"2018-12-14T16:33:18"},"type":"Dimmable light","name":"Table à manger","modelid":"LWB006","manufacturername":"Philips","productname":"Hue white lamp","capabilities":{"certified":true,"control":{"mindimlevel":2000,"maxlumen":800},"streaming":{"renderer":false,"proxy":false}},"config":{"archetype":"pendantround","function":"functional","direction":"omnidirectional","startup":{"mode":"safety","configured":true}},"uniqueid":"00:17:88:01:10:40:cb:71-0b","swversion":"5.127.1.26420"},"\_id":2}}}
> \`\`\`

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [2. Dezember 2019 um 16:12 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/149 "2019-12-02T16:12:57Z")

</div>

Okay, ich habe meine Konsole in meinem Chrome-Browser geöffnet, aber dann weiß ich nicht, wie ich vorgehen soll, um

> [@pierre-gilles](#):
>
> die JSON-Rückgabe des API-Aufrufs GET /api/v1/service/philips-hue/light zu finden!

---

<div class="post-metadata">

**Author:** ![Hotfix31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hotfix31/32/151_2.png) [@Hotfix31](https://community.gladysassistant.com/u/Hotfix31)\
**Post date:** [2. Dezember 2019 um 16:30 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/150 "2019-12-02T16:30:38Z")

</div>

Ja, danke, es funktioniert gut.

> [@pierre-gilles](#):
>
> Noch besser, du erstellst mir ein GitHub-Issue mit dem JSON, das du abrufst, so ähnlich wie dieses Issue:

Wie du sehen konntest, habe ich sogar ein neues Issue erstellt und den dazugehörigen Merge-Request, ich hoffe, ich habe nicht zu viele Scheiße gebaut 😃

---

<div class="post-metadata">

**Author:** ![damalgos](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@damalgos](https://community.gladysassistant.com/u/damalgos)\
**Post date:** [2. Dezember 2019 um 16:30 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/151 "2019-12-02T16:30:45Z")

</div>

Du gehst zum Reiter Netzwerk, dort hast du eine Liste der durchgeführten Webanfragen. Du suchst eine GET-Anfrage auf /api/v1/service/philips-hue/light, klickst darauf, und auf der rechten Seite erscheint deine Anfrage. Dort suchst du dann den Reiter Antworten.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/7402043f86e1b88aab35c4400c77126e741feb87.png)

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [2. Dezember 2019 um 17:04 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/152 "2019-12-02T17:04:35Z")

</div>

Alles klar, ich habe es geschafft, aber ich musste Firefox verwenden, weil ich auf Chrome nicht wusste, wie ich es machen soll.  
Danke @damalgos.  
@pierre-gilles kannst du mir bestätigen, dass das, was ich dir geschickt habe, in Ordnung ist?

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [2. Dezember 2019 um 21:55 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/153 "2019-12-02T21:55:15Z")

</div>

Ich habe diese Website gefunden, die die Modelle der Philips Hue Glühbirnen auflistet. Kann das helfen, die verschiedenen Modelle in Gladys zu integrieren?  
[https://homeautotechs.com/philips-hue-light-models-full-list/](https://homeautotechs.com/philips-hue-light-models-full-list/)

---

<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:** [3. Dezember 2019 um 09:13 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/154 "2019-12-03T09:13:48Z")

</div>

> [@Hotfix31](#):
>
> Wie du sehen konntest, habe ich sogar ein neues Issue erstellt und den dazugehörigen Merge-Request. Ich hoffe, ich habe nicht zu viele Scheiße gebaut 😃

Noch besser! 🙂 Danke, ich werde es mir ansehen!

> [@Tlse-vins](#):
>
> @pierre-gilles kannst du mir bestätigen, dass das, was ich dir geschickt habe, in Ordnung ist?

Es ist perfekt!

> [@Tlse-vins](#):
>
> Kann das helfen, die verschiedenen Modelle in Gladys zu integrieren?

Ich bevorzuge es, fallweise vorzugehen, je nach Feedback der Benutzer, oder einen „Unbekannte Lampen senden“-Button vorzuschlagen.

---

<div class="post-metadata">

**Author:** ![Hotfix31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hotfix31/32/151_2.png) [@Hotfix31](https://community.gladysassistant.com/u/Hotfix31)\
**Post date:** [3. Dezember 2019 um 14:51 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/155 "2019-12-03T14:51:43Z")

</div>

@pierre-gilles könntest du mir erklären, wie du die Methode bestimmst, die die Glühbirne verwenden soll (`getPhilipsHueColorTemperatureLight`, `getPhilipsHueColorLight`, `getPhilipsHueWhiteLight`…)?

Dann könnte ich versuchen, einen Merge-Request für das Issue von @Tlse-vins zu machen 😉

---

<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:** [3. Dezember 2019 um 15:38 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/156 "2019-12-03T15:38:17Z")

</div>

> [@Hotfix31](#):
>
> @pierre-gilles könntest du mir erklären, wie du die Methode bestimmst, die die Lampe verwenden soll (`getPhilipsHueColorTemperatureLight`, `getPhilipsHueColorLight`, `getPhilipsHueWhiteLight` …)?

Also, das ist einfach, wenn du schaust, gibt es 5 Modelltypen, die derzeit im Ordner «&nbsp;models&nbsp;» des Dienstes verwaltet werden:

 ![28](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/23cb376a03d28df8ce69ba78c1baf1116cc9e674.png)

color =\> wenn es eine Lampe ist, die die Farbe, aber nicht die Temperatur steuert (das siehst du im JSON, wenn die Temperatur gesteuert wird)

colorWithTemperature =\> wenn es eine Lampe ist, die Farbe + Temperatur steuert (es gibt ein Attribut `"ct":153` zum Beispiel in der ersten Lampe von @Tlse-vins, es ist also eine Lampe, die die Temperatur steuert)

plugOnOff =\> es ist eine Ein/Aus-Steckdose.

white =\> es ist eine Lampe ohne Temperatur und ohne Farbe

whiteWithTemperature =\> Es ist eine Lampe ohne Farbe, aber mit Temperatur. Das Attribut «&nbsp;ct&nbsp;» ist in der Regel im JSON vorhanden!

Ich habe keine exakte Methodik, es ist vor allem ein schneller Blick auf das JSON, der mir zeigt, welche Funktionen die Lampe hat und zu welchem Modelltyp sie gehört 🙂

Wenn sie einen anderen Typ von Funktionen steuert, muss ein neues Modell erstellt werden, natürlich.

---

<div class="post-metadata">

**Author:** ![Hotfix31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hotfix31/32/151_2.png) [@Hotfix31](https://community.gladysassistant.com/u/Hotfix31)\
**Post date:** [4. Dezember 2019 um 13:38 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/158 "2019-12-04T13:38:26Z")

</div>

ok danke für die Infos.  
Ich habe dann den passenden Merge Request gemacht:

> <https://github.com/GladysAssistant/Gladys/pull/624>
>
> \### 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 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/gladys-4-docs) and the \[website\](https://documentation.gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.json\`) 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
> 
> Just adding LCA001 Hue color lamp model on Hue service lamp mapping

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [4. Dezember 2019 um 14:24 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/159 "2019-12-04T14:24:56Z")

</div>

Sobald das Update fertig ist, sage ich dir, ob es funktioniert.  
Ich warte auf GU10 White, die werden wir natürlich auch hinzufügen müssen.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [6. Dezember 2019 um 21:38 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/160 "2019-12-06T21:38:42Z")

</div>

Ich habe gerade meine GU10 White erhalten, ich werde versuchen, sie dieses Wochenende einzurichten.  
@Hotfix31 Falls du das, was ich dir geschickt habe, gemerged hast, ist es dann in Gladys funktionsfähig? Denn im Moment werden sie nicht erkannt.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [8. Dezember 2019 um 16:18 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/161 "2019-12-08T16:18:34Z")

</div>

Ich habe gerade ein Issue mit den GU10 - LWG004 gemacht.

---

<div class="post-metadata">

**Author:** ![Hotfix31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hotfix31/32/151_2.png) [@Hotfix31](https://community.gladysassistant.com/u/Hotfix31)\
**Post date:** [9. Dezember 2019 um 08:49 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/162 "2019-12-09T08:49:26Z")

</div>

Ich habe den Merge-Request erstellt, aber @pierre-gilles muss ihn noch freigeben.  
Du kannst den Fortschritt hier verfolgen:

> <https://github.com/GladysAssistant/Gladys/pull/624>
>
> \### 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 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/gladys-4-docs) and the \[website\](https://documentation.gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.json\`) 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
> 
> Just adding LCA001 Hue color lamp model on Hue service lamp mapping

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [9. Dezember 2019 um 09:06 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/163 "2019-12-09T09:06:22Z")

</div>

OK, das funktioniert, ich warte auf seine Rückmeldung und sage dir dann, ob alles in Ordnung ist.

---

<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:** [9. Dezember 2019 um 17:03 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/164 "2019-12-09T17:03:21Z")

</div>

> [@renaiku](#):
>
> @pierre-gilles was du Temperatur nennst, ist das warmweiß, kaltweiß?

So in etwa! Das kommt von Philips Hue.

> [@Hotfix31](#):
>
> Ich habe den Merge-Request gemacht, aber @pierre-gilles muss ihn noch freigeben.  
> Du kannst den Fortschritt hier verfolgen:

Danke für den PR! 🙂 Es ist gemergt!

---

<div class="post-metadata">

**Author:** ![Hotfix31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hotfix31/32/151_2.png) [@Hotfix31](https://community.gladysassistant.com/u/Hotfix31)\
**Post date:** [10. Dezember 2019 um 22:38 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/165 "2019-12-10T22:38:07Z")

</div>

Neues PR für das letzte Modell, das von @Tlse-vins vorgeschlagen wurde.

> <https://github.com/GladysAssistant/Gladys/pull/629>
>
> \### 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 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/gladys-4-docs) and the \[website\](https://documentation.gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.json\`) 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
> 
> Just adding LWG004 Hue white spot model on Hue service ligth mapping

---

<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:** [11. Dezember 2019 um 16:50 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/166 "2019-12-11T16:50:24Z")

</div>

> [@Hotfix31](#):
>
> Neues PR, für das letzte Modell, das von @Tlse-vins vorgeschlagen wurde.

Toll, du hast den Bogen raus, wie ich sehe 😉 Danke, noch mehr neues Material wird verwaltet!

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [15. Dezember 2019 um 10:58 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/167 "2019-12-15T10:58:58Z")

</div>

Hallo @pierre-gilles, ich habe gerade in Gladys nachgeschaut, aber ich kann immer noch keine Lampen steuern. Ist das normal oder muss ich auf ein Update warten?

---

<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:** [16. Dezember 2019 um 16:20 UTC](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986/168 "2019-12-16T16:20:50Z")

</div>

Ich habe den PR noch nicht gemerged 🙂 Ich bin gerade ziemlich beschäftigt. Ich habe im Oktober/November Vollzeit an Gladys gearbeitet, aber da ich zwei Monate lang kein Freelancing gemacht habe, habe ich finanziell ausgeglichen, indem ich im Dezember einen recht zeitaufwendigen Freelance-Aufftrag angenommen habe, daher meine sehr reduzierte Präsenz diesen Monat ^^ Mein Auftrag endet am Wochenende, dann werde ich mich Weihnachten darum kümmern!

[Vorherige Seite](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986.md?page=6)

[Nächste Seite](https://community.gladysassistant.com/t/gladys-4-beta-est-disponible/4986.md?page=8)
