¡Hola a todos!
Estaba revisando las issues de GitHub, ¿se han corregido todas estas issues? ¿Puedo cerrar esta issue => [philips-hue] Newly bridge paired lamp cannot be used in Gladys · Issue #1006 · GladysAssistant/Gladys · GitHub ?
VonOx
7 Mayo, 2021 06:34
22
Voy a probar y ver si está arreglado
VonOx
7 Mayo, 2021 08:18
23
No está fijado.
Solo para recordar el flujo
Puente configurado en Gladys
Emparejamiento de una nueva lámpara en el puente
Añadir la lámpara en Gladys
=> Imposible controlar la lámpara
2021-05-07T10:12:53+0200 <debug> scene.executeSingleAction.js:15 (SceneManager.executeSingleAction) Ejecutando acción de tipo device.set-value
2021-05-07T10:12:53+0200 <debug> light.setValue.js:17 (PhilipsHueLightHandler.setValue) Cambiando el estado de la luz philips-hue-light:001788286ece:10 con valor = 0
2021-05-07T10:12:53+0200 <warn> scene.executeActions.js:37 (executeAction) ApiError: La luz con id:10 no se encontró en este puente
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)
Un reinicio del servidor Gladys y la lámpara es utilizable.
¡Vale! ¿Huele a error en la librería Philips Hue node, no?
No tengo más ideas al respecto, he mirado los issues de GitHub de la librería pero no hay nada sobre esto
VonOx
7 Mayo, 2021 09:23
25
Voy a crear un issue en la lib para obtener feedback
También habrá que que otros usuarios intenten reproducirlo.
VonOx
11 Mayo, 2021 13:16
26
He recibido una primera retroalimentación del mantenedor de la lib
Esto podría deberse a que el estado ligero no esté presente en la caché del puente… No recuerdo si esto aún se usa en esa versión (ya que he estado migrando la base de código a TypeScript).
Si un reinicio está limpiando esto, ahí es donde creo que podría estar el problema. Necesitaría configurar un escenario de prueba para eso, ya que no tengo una manera fácil de escribir una prueba de automatización para esto.
¡Vale! Bueno, habrá que ver si se soluciona con la nueva versión, y en cuanto salga de beta habrá que actualizar
VonOx
21 Junio, 2021 21:29
28
@pierre-gilles no lo había visto, pero el mantenedor de la lib ha encadenado una 2ª respuesta
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
Hay una caché que sobra
¡Era sobre ! Sería genial si tenemos respuestas del lado de la lib. ¡Mantenos informados aquí :)!
VonOx
13 Julio, 2021 10:08
30
Cache a refresh confirmado
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
¡Genial! ¿Cuál es el procedimiento para Philips Hue Gladys? ¿Hay que actualizar la caché después de añadir una bombilla?
¿Tienes tiempo para hacernos un PR?
Me encontré con este error, y hice una PR para corregir el problema
Añadí un botón en la interfaz que permite re-sincronizar Gladys con el puente Philips Hue:
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


Más vale tarde que nunca