Problème d'intégration Philips Hue

Par contre, je n’ai pas trouvé comment bien formater mon copier/coller d’extrait de log… :frowning:

J’ai également ces erreurs…

Salut tu utilises cette balise pour le code </> dans l’éditeur de texte.

Je ne vois pas de « Starting philips-hue service » dans tes logs, pas normal ça, tu as du stopper le service manuellement je pense?

C’est pas normal ça, je suppose que tu es connecté via http://gladys.local? Bizarre qu’il n’arrive pas à faire la résolution DNS locale lors de la connection websocket alors qu’il arrive à la faire dans ton navigateur en HTTP…

Tu peux essayer en IP et nous montrer les mêmes logs ?

Tu as quand même une box internet atypique (box 4G), et ça ne m’étonnerait pas que ce genre de box soit configuré différemment que les routeurs traditionnelles en terme de réseau !

Bonsoir à tous,

Je me suis connecté avec l’adresse IP et stop/start le service Philips…

> gladys-server@ start:prod /src/server
> cross-env NODE_ENV=production node index.js

 Initialising OpenZWave 1.6.1051 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/local/etc/openzwave
        User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true
 2021-02-03T12:55:03+0100 <info> index.js:19 (Object.start) Starting telegram service
 2021-02-03T12:55:03+0100 <info> index.js:13 (Object.start) Starting usb service
 2021-02-03T12:55:05+0100 <info> connect.js:38 (MqttClient.<anonymous>) Connected to MQTT server mqtt://localhost
 2021-02-03T12:55:05+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic gladys/master/#
 2021-02-03T12:55:05+0100 <info> index.js:20 (Object.start) Starting Open Weather service
 2021-02-03T12:55:05+0100 <info> service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
 2021-02-03T12:55:05+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
 2021-02-03T12:55:06+0100 <error> index.js:19 (process.<anonymous>) uncaughtException catched: uncaughtException
 2021-02-03T12:55:06+0100 <error> index.js:20 (process.<anonymous>) Error: ENODEV, No such device
     at Hci.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:100:35)
     at NobleBindings.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13)
     at /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/noble.js:60:24
     at processTicksAndRejections (internal/process/task_queues.js:79:11) {
   errno: 19,
   code: 'ENODEV',
   syscall: 'bind'
 }
 2021-02-03T12:55:06+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic stat/+/+
 2021-02-03T12:55:06+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic tele/+/+
 2021-02-03T12:55:06+0100 <info> index.js:16 (Object.start) Starting zwave service
 2021-02-03T12:55:06+0100 <info> service.start.js:40 (Service.start) Service zwave is not configured, so it was not started.
 2021-02-03T12:55:07+0100 <info> index.js:63 (Server.<anonymous>) Server listening on port 80
 2021-02-03T14:55:07+0100 <info> gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
 2021-02-03T16:55:07+0100 <info> gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
 2021-02-03T18:55:07+0100 <info> gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
 2021-02-03T20:55:07+0100 <info> gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.

Toujours pas de “starting Philips service” dans le log…
Ne serait-il pas préférable que je reparte de zéro, d’une installation propre???

Hervé

oops… oublié les dernières lignes du log :

     (node:24) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 scanStop listeners added to [Noble]. Use emitter.setMaxListeners() to increase limit
 2021-02-03T22:28:48+0100 <info> light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
 2021-02-03T22:28:58+0100 <info> light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
 2021-02-03T22:29:37+0100 <info> light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges

Bon je penses qu’il manque une partie des logs, mais en soit pas grave car le service philips n’écrit rien au démarrage ( niveau de log différent )

Exemple chez moi

> gladys-server@ start:prod /src/server
> cross-env NODE_ENV=production node index.js

Initialising OpenZWave 1.6.1051 binary addon for Node.JS.

	OpenZWave Security API is ENABLED
	ZWave device db    : /usr/local/etc/openzwave
	User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/../../
	Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true


2021-02-03T23:26:11+0100 <info> connect.js:38 (MqttClient.<anonymous>) Connected to MQTT server mqtt://192.168.1.42:1883
2021-02-03T23:26:11+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic gladys/master/#
2021-02-03T23:26:11+0100 <info> index.js:19 (Object.start) Starting telegram service
2021-02-03T23:26:12+0100 <info> index.js:20 (Object.start) Starting Open Weather service
2021-02-03T23:26:13+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2021-02-03T23:26:13+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic stat/+/+
2021-02-03T23:26:13+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic tele/+/+
2021-02-03T23:26:13+0100 <info> index.js:16 (Object.start) Starting zwave service
2021-02-03T23:26:14+0100 <info> index.js:13 (Object.start) Starting usb service
2021-02-03T23:26:14+0100 <info> index.js:63 (Server.<anonymous>) Server listening on port 8012
2021-02-03T23:26:14+0100 <info> index.js:743 (Socket.<anonymous>) Gladys Gateway: connected in websockets

Pour voir le status des services c’est via l’interface

Pour mettre en forme tes posts tu peux t’aider de ce sujet => [TUTORIEL] Formater son code dans un message: Aidez nous à vous aider ;)

Oui, tout à fait, j’utilise cette interface pour vérifier, démarrer ou arrêter les services.
D’ailleurs le service Bluetooth à l’air de dysfonctionner également, côté interface et côté Logs… mais là c’est peut-être normal car je n’ai rien configuré côté raspberry.

Lol c’est pas vrai ^^ ici je pars d’une installation fraîche donc 0 scènes ^^

As-tu tenter comme je l’ai fait plus haut d’attendre 30 minutes / 1h en faisant des refresh régulièrement ? Même si ce n’est pas normal, ce peut être un indicateur si on reproduit tout les 2 la chose.

As-tu refais un « inspecter » sur la page internet ? Et as-tu toujours les mêmes erreurs ? Peux-tu également aller dans l’onglet « network » de cette fenêtre « inspecter » et nous faire un imp-ecran des différents retours (pour cela ouvre l’onglet network et ensuite fait un refresh de la page de conf Philips-hue, des choses devraient apparaître en dessous)

@Herve je suis rentré plus en détail de l’intégration, et je viens de me rappeler que pour trouver les ponts sur le réseau on fait un N-UPnP Search qui se base sur l’API de Philips Hue:

Par conséquent, il faut que ton bridge soit register côté Philips Hue, c’est le cas?

Il faudrait peut-être l’ajouter à la doc pour le coup

@pierre-gilles , oui mon pont est enregistré côté Philips Hue et fonctionne.

Par contre, comment dois-je utiliser la commande N-UPnP Search?

Tu n’as rien à faire, je parlais du code dans Gladys. C’est Gladys qui fait le N-UPnP search :slight_smile:

Bonsoir tout le monde,

Je viens de repartir d’une installation toute fraiche à partir de l’image v4.0.4 rev4… et rien à faire, le pont n’est pas détecté malgré les refresh depuis 2 jours…
Voici le log complet et copie d’écran :

 > gladys-server@ start:prod /src/server

cross-env NODE_ENV=production node index.js
2021-02-22T17:58:06+0100 20210129155044-multi-user.js:23 (Object.up) Multi-user migration: 0 users found
Initialising OpenZWave 1.6.0 binary addon for Node.JS.
OpenZWave Security API is ENABLED
ZWave device db : /usr/local/etc/openzwave
User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/…/…/
Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true
2021-02-22T17:58:14+0100 index.js:19 (Object.start) Starting example service
2021-02-22T17:58:14+0100 index.js:18 (Object.start) Starting Philips Hue service
2021-02-22T17:58:14+0100 index.js:16 (Object.start) Starting RTSP service
2021-02-22T17:58:14+0100 index.js:51 (Object.start) Starting CalDAV service
2021-02-22T17:58:14+0100 index.js:16 (Object.start) Starting MQTT service
2021-02-22T17:58:15+0100 updateContainer.js:13 (MqttHandler.updateContainer) MQTT: checking for required changes…
2021-02-22T17:58:15+0100 service.start.js:40 (Service.start) Service mqtt is not configured, so it was not started.
2021-02-22T17:58:15+0100 index.js:20 (Object.start) Starting Open Weather service
2021-02-22T17:58:15+0100 service.start.js:40 (Service.start) Service openweather is not configured, so it was not started.
2021-02-22T17:58:15+0100 index.js:18 (Object.start) Starting TP-Link service
2021-02-22T17:58:15+0100 index.js:17 (Object.start) Starting eWeLink service
2021-02-22T17:58:15+0100 service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
2021-02-22T17:58:15+0100 index.js:15 (Object.start) Starting Bluetooth service
2021-02-22T17:58:16+0100 index.js:19 (process.) uncaughtException catched: uncaughtException
2021-02-22T17:58:16+0100 index.js:20 (process.) Error: ENODEV, No such device
at Hci.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:100:35)
at NobleBindings.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13)
at /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/noble.js:60:24
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
errno: 19,
code: ‹ ENODEV ›,
syscall: ‹ bind ›
}
2021-02-22T17:58:16+0100 index.js:15 (Object.start) Starting Tasmota service
2021-02-22T17:58:16+0100 index.js:16 (Object.start) Starting zwave service
2021-02-22T17:58:16+0100 bluetooth.initPresenceScanner.js:18 (BluetoothManager.initPresenceScanner) Bluetooth configuration: starting presence scanner
2021-02-22T17:58:16+0100 service.start.js:40 (Service.start) Service zwave is not configured, so it was not started.
2021-02-22T17:58:16+0100 index.js:14 (Object.start) Starting Xiaomi service
2021-02-22T17:58:16+0100 index.js:13 (Object.start) Starting usb service
2021-02-22T17:58:16+0100 index.js:19 (Object.start) Starting Telegram service
2021-02-22T17:58:16+0100 service.start.js:40 (Service.start) Service telegram is not configured, so it was not started.
2021-02-22T17:58:17+0100 index.js:63 (Server.) Server listening on port 80
2021-02-22T19:58:16+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-22T21:58:16+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-22T23:58:16+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T01:58:16+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T02:52:11+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:16+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:21+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:30+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:34+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:38+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:43+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T02:52:48+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gladys-server@ start:prod: cross-env NODE_ENV=production node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gladys-server@ start:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-23T01_59_50_051Z-debug.log
gladys-server@ start:prod /src/server
cross-env NODE_ENV=production node index.js
Initialising OpenZWave 1.6.0 binary addon for Node.JS.
OpenZWave Security API is ENABLED
ZWave device db : /usr/local/etc/openzwave
User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/…/…/
Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true
2021-02-23T03:05:05+0100 index.js:19 (Object.start) Starting example service
2021-02-23T03:05:05+0100 index.js:18 (Object.start) Starting Philips Hue service
2021-02-23T03:05:05+0100 index.js:16 (Object.start) Starting MQTT service
2021-02-23T03:05:05+0100 updateContainer.js:13 (MqttHandler.updateContainer) MQTT: checking for required changes…
2021-02-23T03:05:05+0100 service.start.js:40 (Service.start) Service mqtt is not configured, so it was not started.
2021-02-23T03:05:06+0100 index.js:51 (Object.start) Starting CalDAV service
2021-02-23T03:05:06+0100 index.js:20 (Object.start) Starting Open Weather service
2021-02-23T03:05:06+0100 service.start.js:40 (Service.start) Service openweather is not configured, so it was not started.
2021-02-23T03:05:06+0100 index.js:18 (Object.start) Starting TP-Link service
2021-02-23T03:05:06+0100 index.js:17 (Object.start) Starting eWeLink service
2021-02-23T03:05:06+0100 service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
2021-02-23T03:05:06+0100 index.js:15 (Object.start) Starting Bluetooth service
2021-02-23T03:05:07+0100 index.js:19 (process.) uncaughtException catched: uncaughtException
2021-02-23T03:05:07+0100 index.js:20 (process.) Error: ENODEV, No such device
at Hci.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:100:35)
at NobleBindings.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13)
at /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/noble.js:60:24
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
errno: 19,
code: ‹ ENODEV ›,
syscall: ‹ bind ›
}
2021-02-23T03:05:07+0100 bluetooth.initPresenceScanner.js:18 (BluetoothManager.initPresenceScanner) Bluetooth configuration: starting presence scanner
2021-02-23T03:05:07+0100 index.js:15 (Object.start) Starting Tasmota service
2021-02-23T03:05:07+0100 index.js:16 (Object.start) Starting zwave service
2021-02-23T03:05:07+0100 service.start.js:40 (Service.start) Service zwave is not configured, so it was not started.
2021-02-23T03:05:07+0100 index.js:14 (Object.start) Starting Xiaomi service
2021-02-23T03:05:07+0100 index.js:13 (Object.start) Starting usb service
2021-02-23T03:05:07+0100 index.js:19 (Object.start) Starting Telegram service
2021-02-23T03:05:07+0100 service.start.js:40 (Service.start) Service telegram is not configured, so it was not started.
2021-02-23T03:05:07+0100 index.js:16 (Object.start) Starting RTSP service
2021-02-23T03:05:08+0100 index.js:63 (Server.) Server listening on port 80
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gladys-server@ start:prod: cross-env NODE_ENV=production node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gladys-server@ start:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-23T02_09_20_839Z-debug.log
gladys-server@ start:prod /src/server
cross-env NODE_ENV=production node index.js
Initialising OpenZWave 1.6.0 binary addon for Node.JS.
OpenZWave Security API is ENABLED
ZWave device db : /usr/local/etc/openzwave
User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/…/…/
Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true
2021-02-23T03:10:47+0100 index.js:16 (Object.start) Starting RTSP service
2021-02-23T03:10:48+0100 index.js:51 (Object.start) Starting CalDAV service
2021-02-23T03:10:48+0100 index.js:19 (Object.start) Starting example service
2021-02-23T03:10:48+0100 index.js:18 (Object.start) Starting Philips Hue service
2021-02-23T03:10:48+0100 index.js:16 (Object.start) Starting MQTT service
2021-02-23T03:10:48+0100 updateContainer.js:13 (MqttHandler.updateContainer) MQTT: checking for required changes…
2021-02-23T03:10:48+0100 service.start.js:40 (Service.start) Service mqtt is not configured, so it was not started.
2021-02-23T03:10:48+0100 index.js:20 (Object.start) Starting Open Weather service
2021-02-23T03:10:48+0100 service.start.js:40 (Service.start) Service openweather is not configured, so it was not started.
2021-02-23T03:10:48+0100 index.js:18 (Object.start) Starting TP-Link service
2021-02-23T03:10:48+0100 index.js:17 (Object.start) Starting eWeLink service
2021-02-23T03:10:48+0100 service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
2021-02-23T03:10:48+0100 index.js:15 (Object.start) Starting Bluetooth service
2021-02-23T03:10:49+0100 index.js:19 (process.) uncaughtException catched: uncaughtException
2021-02-23T03:10:49+0100 index.js:20 (process.) Error: ENODEV, No such device
at Hci.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:100:35)
at NobleBindings.init (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13)
at /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/noble.js:60:24
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
errno: 19,
code: ‹ ENODEV ›,
syscall: ‹ bind ›
}
2021-02-23T03:10:50+0100 bluetooth.initPresenceScanner.js:18 (BluetoothManager.initPresenceScanner) Bluetooth configuration: starting presence scanner
2021-02-23T03:10:50+0100 index.js:15 (Object.start) Starting Tasmota service
2021-02-23T03:10:50+0100 index.js:16 (Object.start) Starting zwave service
2021-02-23T03:10:50+0100 service.start.js:40 (Service.start) Service zwave is not configured, so it was not started.
2021-02-23T03:10:50+0100 index.js:14 (Object.start) Starting Xiaomi service
2021-02-23T03:10:50+0100 index.js:13 (Object.start) Starting usb service
2021-02-23T03:10:50+0100 index.js:19 (Object.start) Starting Telegram service
2021-02-23T03:10:50+0100 service.start.js:40 (Service.start) Service telegram is not configured, so it was not started.
2021-02-23T03:10:50+0100 index.js:63 (Server.) Server listening on port 80
2021-02-23T03:11:13+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T03:11:32+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T03:11:39+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T03:11:44+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T03:11:49+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T03:26:07+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T04:36:05+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T04:36:10+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T04:36:14+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T04:36:19+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T04:38:58+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T04:39:02+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T05:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T07:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T09:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T11:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T13:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T15:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T17:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T19:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T21:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T23:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-23T23:14:21+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:14:26+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:14:35+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:15:21+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:15:27+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:20:24+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:20:28+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:29:21+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:29:26+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:29:45+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:30:00+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:54:26+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:54:29+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-23T23:54:39+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T00:56:46+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T00:57:03+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T00:57:24+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:03:28+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:03:31+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:03:40+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:03:45+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:09:56+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:10:00+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:10:04+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:10:07+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:10:11+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:10:15+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T01:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T02:04:02+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:04:20+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:04:42+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:04:48+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:05:20+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:05:28+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:05:35+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:05:39+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:05:43+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:05:47+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T02:45:13+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:08:22+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:08:34+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:08:39+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:09:32+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:09:37+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:09:44+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:09:48+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:10:40+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T03:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T05:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T07:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T09:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T11:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T13:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T15:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T17:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T19:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T21:04:28+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T21:06:12+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T21:10:50+0100 gateway.checkIfBackupNeeded.js:9 (Gateway.checkIfBackupNeeded) Instance not connected to Gladys Gateway, not backing up.
2021-02-24T21:15:42+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges
2021-02-24T21:16:26+0100 light.getBridges.js:10 (PhilipsHueLightHandler.getBridges) PhilipsHueService: Found 0 bridges

A vos avis?
Hervé

@pierre-gilles

L’api conseille de fallback sur upnpSearch si la première méthode de fonctionne pas, y’a une raison de pas le faire ou ça se tente ?

@VonOx pas con !

Je vois deux possibilités de fix:

  • Déjà, mettre à jour la lib à la dernière version (4.0.9), là ou de notre côté on utilise la 3.4.0. Il y a peut-être des modifications dans l’API Philips Hue qui feraient que certains bridges ne sont plus retournés
  • Ensuite, rajouter un cas, si le résultat du nUpnp search est un tableau vide, lancer un Upnp search

@VonOx tu pourrais faire une PR ? ou je m’en charge? :slight_smile:

Edit: fait, PR ici : Upgrade philips-hue dependency to 4.0.9 & improve bridge search by Pierre-Gilles · Pull Request #1080 · GladysAssistant/Gladys · GitHub

@Herve Je ne vois rien de mal de ton côté. Comme on se dit plus haut avec Vincent, il y a peut-être des modifications dans le code qui pourraient aider la détection dans ton cas. Il faut qu’on code ça, et on reviendra vers toi avec un fix possible (qui n’est pas garanti de fonctionner, mais bon il faut tenter :stuck_out_tongue: )

Je vois que tu l’as déjà faites :wink:

J’aurai pas eu le temps avant ce week-end

@VonOx En fait je pense qu’on va abandonner le nupnp-search… l’API a changé, et il ne retourne plus les informations dont on a besoin. Il faut forcément passer par le search local dans tous les cas.

C’est pas déconnant, au moins pas d’appel Cloud qui pourrait faire péter Gladys :slight_smile:

@VonOx est-ce que tu pourra tester “en réel” ma PR ? J’ai pas de matos Philips Hue sous le coude

Ce week-end oui pas de problèmes

Testé aujourd’hui, j’ai un souci avec des lampes Hue Ambiance :

2021-02-27T12:14:10+0100 <debug> device.notify.js:35 (DeviceManager.notify) Function device.postCreate in service undefined does not exist.
2021-02-27T12:14:13+0100 <trace> errorMiddleware.js:49 (errorMiddleware) TypeError: Cannot read property 'capabilities' of undefined
    at getPhilipsHueWhiteTemperatureLight (/Users/cyril.be.home/workspace/Gladys/server/services/philips-hue/lib/models/whiteWithTemperature.js:48:37)
    at /Users/cyril.be.home/workspace/Gladys/server/services/philips-hue/lib/light/light.getLights.js:43:31
    at Array.forEach (<anonymous>)
    at /Users/cyril.be.home/workspace/Gladys/server/services/philips-hue/lib/light/light.getLights.js:31:12
From previous event:
    at processImmediate (internal/timers.js:461:21)
From previous event:
    at PhilipsHueLightHandler.getLights (/Users/cyril.be.home/workspace/Gladys/server/services/philips-hue/lib/light/light.getLights.js:23:17)
    at getLights (/Users/cyril.be.home/workspace/Gladys/server/services/philips-hue/api/hue.controller.js:31:49)

Quand je log l’objet philipsHueLight, les données ne sont plus dans _rawData mais dans _data.

À corriger dans :

  • server/services/philips-hue/lib/models/colorWithTemperature.js (lignes 59/60)
  • server/services/philips-hue/lib/models/whiteWithTemperature.js (lignes 48/49)

Même chose pour les scènes (même si on ne les utilise pas) :

  • server/services/philips-hue/lib/light/light.getScenes.js (ligne 27)

Je confirme je viens de test ( la recherche du bridge est ok )