Hallo zusammen!
Ich habe mal kurz die GitHub-Issues durchgeschaut. Sind alle diese Issues wirklich behoben? Kann ich diese Issue schließen => [philips-hue] Newly bridge paired lamp cannot be used in Gladys · Issue #1006 · GladysAssistant/Gladys · GitHub ?
VonOx
7. Mai 2021 um 06:34
22
Ich werde es testen und sehen, ob es funktioniert
VonOx
7. Mai 2021 um 08:18
23
Das ist nicht fixiert.
Nur zur Erinnerung an den Ablauf
Bridge in Gladys konfiguriert
Neue Lampe mit der Bridge gekoppelt
Lampe in Gladys hinzugefügt
=> Lampe nicht steuerbar
2021-05-07T10:12:53+0200 <debug> scene.executeSingleAction.js:15 (SceneManager.executeSingleAction) Ausführung der Aktion vom Typ device.set-value
2021-05-07T10:12:53+0200 <debug> light.setValue.js:17 (PhilipsHueLightHandler.setValue) Änderung des Zustands der Lampe philips-hue-light:001788286ece:10 mit dem Wert = 0
2021-05-07T10:12:53+0200 <warn> scene.executeActions.js:37 (executeAction) ApiError: Lampe mit der ID:10 wurde auf dieser Bridge nicht gefunden
at /home/vonox/repos/Gladys/server/services/philips-hue/node_modules/node-hue-api/lib/api/Lights.js:121:17
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async PhilipsHueLightHandler.setValue (/home/vonox/repos/Gladys/server/services/philips-hue/lib/light/light.setValue.js:38:3)
Ein Neustart des Gladys-Servers und die Lampe ist nutzbar.
Ok! Das riecht nach einem Bug in der Philips Hue Node-Bibliothek, oder?
Ich habe keine weiteren Ideen dazu, ich habe die GitHub-Issues der Bibliothek durchgeschaut, aber nichts dazu gefunden.
VonOx
7. Mai 2021 um 09:23
25
Ich werde ein Issue in der Bibliothek erstellen, um Feedback zu erhalten
Es müssten auch andere Benutzer versuchen, das Problem zu reproduzieren.
VonOx
11. Mai 2021 um 13:16
26
Ich habe ein erstes Feedback vom Maintainer der Bibliothek erhalten
Das könnte daran liegen, dass der Light-Zustand nicht im Bridge-Cache vorhanden ist… Ich kann mich nicht erinnern, ob das in dieser Version noch verwendet wird (da ich den Code auf TypeScript migriere).
Falls ein Neustart das Problem behebt, dann könnte das der Ort sein, an dem ich das Problem vermute. Dafür müsste ich ein Test-Szenario einrichten, da ich keine einfache Möglichkeit habe, einen Automatisierungstest dafür zu schreiben.
Ok! Gut, wir müssen sehen, ob das Problem durch die neue Version behoben ist, und sobald sie aus der Beta-Phase kommt, müssen wir aktualisieren
VonOx
21. Juni 2021 um 21:29
28
@pierre-gilles ich hatte es nicht gesehen, aber der Betreuer der Bibliothek hat direkt eine zweite Antwort nachgeschoben
ouvert 10:13AM - 07 May 21 UTC
Hi
I'm contributor to open-source project [GladysAssistant](https://gladysass… istant.com/)
We use this lib in our Philips Hue services ( in version 4.0.9 ). Thank you BTW !
We have some weird behavior, newly bridge paired light can't be controlled without a restart.
See gladys log
```
2021-05-07T10:12:53+0200 <debug> light.setValue.js:17 (PhilipsHueLightHandler.setValue) Changing state of light philips-hue-light:001788286ece:10 with value = 0
2021-05-07T10:12:53+0200 <warn> scene.executeActions.js:37 (executeAction) ApiError: Light with id:10 was not found on this bridge
at /home/vonox/repos/Gladys/server/services/philips-hue/node_modules/node-hue-api/lib/api/Lights.js:121:17
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async PhilipsHueLightHandler.setValue (/home/vonox/repos/Gladys/server/services/philips-hue/lib/light/light.setValue.js:38:3)
```
Like I said, restarting the app and the problem is gone.
For reference: https://github.com/GladysAssistant/Gladys/blob/master/server/services/philips-hue/lib/light/light.setValue.js
I've no clue about that, what do you think ?
Thank you
Da hängt ein Cache rum
Das war ja Super, wenn wir Antworten von der Bibliothekseite haben! Halt uns hier auf dem Laufenden
VonOx
13. Juli 2021 um 10:08
30
Toll! Was ist jetzt der nächste Schritt bei Philips Hue Gladys? Muss man den Cache nach dem Hinzufügen einer Lampe aktualisieren?
Hast du Zeit, uns einen Pull Request zu machen?
Ich bin auf diesen Bug gestoßen und habe einen PR erstellt, um das Problem zu beheben
Ich habe einen Button in der Oberfläche hinzugefügt, mit dem Gladys mit der Philips Hue Bridge neu synchronisiert werden kann:
master ← add-philips-hue-sync-with-bridge-button
ouvert 01:49PM - 29 Apr 24 UTC
### 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 ([french forum](https://community.gladysassistant.com/)/[english forum](https://en-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
Fix #2062


Besser spät als nie