Service ewelink en erreur

Salut tout tout le monde,
j’espère que vous avez passé de bonnes vacances.
J’ai un petit problème avec le service Ewelink qui m’indique être en erreur et pas moyen de le faire repartir.
J’ai bien vérifié le mot de passe mais ça ne fonctionne pas.

Capture d'écran 2023-08-30 à 07.59.04

Auriez-vous une idée ?
Merci de votre aide.

Peut être que ton message fait doublon avec celui-ci : Ewelink problème connections ?

Tu as entièrement raison. Mon problème a du apparaitre durant mon absence d’août.
Je vais essayer de creuser …

Salut @tiboys, est-ce que tu as des logs d’erreurs qui pourraient aider à investiguer? :slight_smile:

je réponds au cas ou ça peut aider voici mes logs on vois bien des erreurs Ewelink

Merci @pascal_sapin, est-ce que par hasard tu pourrais regarder les logs au moment où tu connecte Ewelink? Là c’est une erreur qui dit juste qu’ewelink n’est pas connecté

j’ai tenter une reconnexion


puis chargé les logs
voila

C’est les mêmes logs, est-ce que tu peux tenter une reconnexion mais avec les logs en live ?

Tu peux faire:

docker logs gladys --tail=100 -f

(le « -f » indique que tu veux les logs en live, le --tail=100 indique que tu ne veux pas plus des 100 dernières logs)

Ensuite, tu fais une reconnexion, et je veux voir les logs du moment où tu fais la connexion.

docker logs gladys --tail=100 -f

    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:13:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100128acd6
2023-08-31T11:13:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:13:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100140775c
2023-08-31T11:13:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:13:58+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-10013fbe1e
2023-08-31T11:13:58+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:00+0200 <info> scene.checkCalendarTriggers.js:24 (SceneManager.                      checkCalendarTriggers) Checking calendar triggers at Thu, 31 Aug 2023 09:14:00 G                      MT
2023-08-31T11:14:06+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to po                      ll camera
2023-08-31T11:14:16+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to po                      ll camera
2023-08-31T11:14:26+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to po                      ll camera
2023-08-31T11:14:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100078c077
2023-08-31T11:14:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-1001288ab2
2023-08-31T11:14:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100128acd6
2023-08-31T11:14:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:28+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100140775c
2023-08-31T11:14:28+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:28+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-10013fbe1e
2023-08-31T11:14:28+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:36+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to po                      ll camera
2023-08-31T11:14:46+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to po                      ll camera
2023-08-31T11:14:56+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to po                      ll camera
2023-08-31T11:14:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100078c077
2023-08-31T11:14:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-1001288ab2
2023-08-31T11:14:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100128acd6
2023-08-31T11:14:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-100140775c
2023-08-31T11:14:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:14:58+0200 <error> device.poll.js:23 (DeviceManager.poll) There wa                      s an error while polling device ewelink-10013fbe1e
2023-08-31T11:14:58+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500                      :
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/devic                      e/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.j                      s:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5                      )
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:00+0200 <info> scene.checkCalendarTriggers.js:24 (SceneManager.                      checkCalendarTriggers) Checking calendar triggers at Thu, 31 Aug 2023 09:15:00 G                      MT
2023-08-31T11:15:06+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2023-08-31T11:15:16+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2023-08-31T11:15:26+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2023-08-31T11:15:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100078c077
2023-08-31T11:15:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-1001288ab2
2023-08-31T11:15:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100128acd6
2023-08-31T11:15:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:27+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100140775c
2023-08-31T11:15:27+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:28+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-10013fbe1e
2023-08-31T11:15:28+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:36+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2023-08-31T11:15:46+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2023-08-31T11:15:56+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2023-08-31T11:15:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100078c077
2023-08-31T11:15:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-1001288ab2
2023-08-31T11:15:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100128acd6
2023-08-31T11:15:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:57+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100140775c
2023-08-31T11:15:57+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:15:58+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-10013fbe1e
2023-08-31T11:15:58+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-08-31T11:16:00+0200 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Thu, 31 Aug 2023 09:16:00 GMT

Salut @pascal_sapin :slight_smile:

Pense à formatter tes messages quand tu postes des bout de code aussi long !

Malheureusement ça ne m’aide pas, c’est la même chose qu’avant.

Est-ce que par hasard tu pourrais me passer des identifiants Ewelink en privée (change ton mot de passe avant limite), et comme ça je peux faire un test chez moi ?

ok désolé pour le formatage

Merci pour la manip que j’allais te redemander.
Je tente de sortir ça demain matin mais vu mes compétences, je ne garanti pas un meilleur résultat que @pascal_sapin :yum:

Voici ce que j’en sors ce matin :face_with_raised_eyebrow:

2023-09-01T08:33:40+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-10013a843f
2023-09-01T08:33:40+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:40+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100183db8a
2023-09-01T08:33:40+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:40+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-100183d0f0
2023-09-01T08:33:40+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:41+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-1000b0b43e
2023-09-01T08:33:41+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:41+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-1000cf4d84
2023-09-01T08:33:41+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:41+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-1000cc65bd
2023-09-01T08:33:41+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:41+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-1000475e64
2023-09-01T08:33:41+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}
2023-09-01T08:33:41+0200 <error> device.poll.js:23 (DeviceManager.poll) There was an error while polling device ewelink-10013a8d6a
2023-09-01T08:33:41+0200 <error> device.poll.js:24 (DeviceManager.poll) Error500:
    at EweLinkHandler.throwErrorIfNeeded (/src/server/services/ewelink/lib/device/index.js:65:11)
    at EweLinkHandler.connect (/src/server/services/ewelink/lib/device/connect.js:43:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EweLinkHandler.poll (/src/server/services/ewelink/lib/device/poll.js:23:5)
    at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5) {
  status: 500,
  code: 'SERVER_ERROR',
  error: 'eWeLink: Sign:oauthClient enable invalid'
}

Malheureusement c’est les mêmes logs ça ne m’aide pas plus :stuck_out_tongue:

Est-ce que l’un d’entre vous peut me passer ses identifiants temporairement pour que je teste ?

Fait en mp

L’issue est connue du côté de la lib : Error: 406 { error: 406, msg: 'Authentication failed' } · Issue #221 · skydiver/ewelink-api · GitHub avec la nouvelle API, les choses ont changé. A suivre si une nouvelle version va arriver ou alors dans le thread il parlait de https://www.npmjs.com/package/ewelink-api-next qui semble plus récent.

Merci @tiboys je viens de voir, par contre effectivement @ProtZ a raison, la librairie n’est plus fonctionnelle, la conclusion sur le topic que tu cites est :

So in summary - its time to give up trying to make this project work (as it uses the old v1 endpoints and an outdated method of connection with a password stored in plain text in your code) and move to the meow common and more secure OAuth2.0 authorisation flow with the resultant token to use as a bearer token in future requests.

Même la lib « ewelin-api-next » n’est pas fonctionnelle apparement :

There is « start » of such a project at « ewelink-api-next » but it’s completely missing the OAuth stuff according to the TODO list and even I was unable to make it actually control my devices.

Malheureusement il n’y a donc pas de bug côté Gladys à corriger, ce que je vois c’est :

  • Dans un premier temps, déprécier l’intégration actuelle avec un message pour prévenir les utilisateurs pour éviter les frustrations comme ici.
  • Voir si une intégration est faisable avec la nouvelle API, il n’y a pas forcément besoin d’attendre une nouvelle lib Node, ça peut-être une intégration faites nous même avec l’API REST Ewelink. Je ne sais pas si tu veux te lancer là dedans @ProtZ ? :slight_smile:

Je suis entrain de rajouter un message pour éviter les frustrations :

La PR :

Merci pour les réponses , donc si je comprends bien plus possible d’utiliser mes devices sonoff en attendant, sauf de devoir tout flascher en tasmota par exemple?

Effectivement !