mgcrea / homebridge-tydom

Homebridge plugin to manage Tydom hardware by Delta Dore from Apple HomeKit.
62 stars 13 forks source link

Pb de configuration / installation #121

Closed StevenPBL closed 1 year ago

StevenPBL commented 1 year ago

Bonjour, et merci à Olivier pour ce plugin.

Étant débutant sur home bridge, je ne suis pas certain de savoir ce que j'ai mal fait… mais cela ne semble pas fonctionner...Car je ne vois rien sur Homekit, seulement le hub.

j'ai réussit à voir le mot de passe via proxyman et l'user ID via l'app Tydom. DOnc je pense les avoir bien paramétrés.

voici mes logs : [5/1/2023, 11:28:22 AM] Loaded plugin: homebridge-config-ui-x@4.50.2 [5/1/2023, 11:28:22 AM] Registering platform 'homebridge-config-ui-x.config' [5/1/2023, 11:28:22 AM] --- [5/1/2023, 11:28:22 AM] Loaded plugin: homebridge-tydom@0.23.14 [5/1/2023, 11:28:22 AM] Registering platform 'homebridge-tydom.Tydom' [5/1/2023, 11:28:22 AM] --- [5/1/2023, 11:28:22 AM] Loading 2 platforms... [5/1/2023, 11:28:22 AM] [Tydom] Initializing Tydom platform... [5/1/2023, 11:28:22 AM] [Tydom] Initializing child bridge 0E:9A:91:79:CB:60 Setup Payload: X-HM://0024W1R4U1TVI Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ XXX-XX-XXX │     
└────────────┘     

[5/1/2023, 11:28:22 AM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge AAA9) is running on port 51007. [5/1/2023, 11:28:22 AM] [homebridge-tydom] Launched child bridge with PID 94451 [5/1/2023, 11:28:22 AM] Registering platform 'homebridge-tydom.Tydom' [5/1/2023, 11:28:22 AM] [homebridge-tydom] Loaded homebridge-tydom v0.23.14 child bridge successfully [5/1/2023, 11:28:22 AM] Loaded 0 cached accessories from cachedAccessories.0E9A9179CB60. [5/1/2023, 11:28:22 AM] [homebridge-tydom] Creating tydom client with username='001A25064XXX' and hostname='mediation.tydom.com' [5/1/2023, 11:28:22 AM] Homebridge v1.6.1 (HAP v0.11.1) (homebridge-tydom) is running on port 34040. 2023-05-01T09:28:22.916Z homebridge-tydom Connecting to hostname='mediation.tydom.com'... [5/1/2023, 11:28:23 AM] [homebridge-tydom] Failed to connect to Tydom hostname=mediation.tydom.com with username="001A25064XXX" (node:94451) UnhandledPromiseRejectionWarning: RequestError: unable to get local issuer certificate at ClientRequest. (/usr/local/lib/node_modules/homebridge-tydom/node_modules/got/dist/source/core/index.js:970:111) at Object.onceWrapper (events.js:422:26) at ClientRequest.emit (events.js:327:22) at ClientRequest.origin.emit (/usr/local/lib/node_modules/homebridge-tydom/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20) at TLSSocket.socketErrorListener (_http_client.js:469:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:80:21) at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:932:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) (Use node --trace-warnings ... to show where the warning was created) (node:94451) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:94451) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

SI quelqu'un sait ce que j'ai mal fait ?

Merci

mgcrea commented 1 year ago

Bizarre, un problème de certificats SSL avec le host de tydom, peut-être un proxy de configuré sur ta machine? Tu peux essayer:

StevenPBL commented 1 year ago

Merci pour la réponse rapide. Oui je suis sur un mac, et je vais tester sur un autre mac pour voir, car j'ai bien un proxy sur celui-ci. Justement, je teste avant d'acheter un Raspberry ;)

StevenPBL commented 1 year ago

ajouter NODE_TLS_REJECT_UNAUTHORIZED=0 comme variable d'environnement. Désolé je dois ajouter ça où ?

StevenPBL commented 1 year ago

c'était bien ça, sur mon autre mac ça marche nickel. du premier coup, c'est génial, encore merci. Me reste à paramétrer l'alarme en ajoutant le pin.

StephanH27 commented 1 year ago

Qu'as-tu comme centrale ? Je suis toujours sans solution, pour ma CTX60, à moitié reconnue ...