Tydom2mqtt ne fonctionne pas

Bonjour, je tourne en boucle car je n’arrive pas a faire fonctionner un docker tydom2mqtt, j’ai mosquitto d’installé en local via mqtt manager, je suis passé par un docker compose pour la conf :

version: '3'

services:
  tydom2mqtt:
    image=fmartinou/tydom2mqtt:3.4.1
    container_name: tydom2mqtt
    restart: unless-stopped
    environment:
      TYDOM_MAC=001A25******
      DELTADORE_LOGIN=mon mail login de l'app 
      DELTADORE_PASSWORD=mon ldp de l'app
      TYDOM_PASSWORD=mon mdp de box
      TYDOM_IP=192.168.0.101
      MQTT_HOST=jeedom
      MQTT_PORT=1883
      MQTT_USER=jeedom 
      MQTT_PASSWORD=mon mdp mosquitto

le log donne ça

2025-02-04T17:38:02.016144784Z 2025-02-04 17:38:02,015 - Starting tydom2mqtt
2025-02-04T17:38:02.018109894Z 2025-02-04 17:38:02,017 - Validating configuration ({
2025-02-04T17:38:02.018208522Z     "deltadore_login": null,
2025-02-04T17:38:02.018233207Z     "deltadore_password": "",
2025-02-04T17:38:02.018249003Z     "log_level": "INFO",
2025-02-04T17:38:02.018263448Z     "mqtt_host": "localhost",
2025-02-04T17:38:02.018277651Z     "mqtt_password": "",
2025-02-04T17:38:02.018291855Z     "mqtt_port": 1883,
2025-02-04T17:38:02.018305984Z     "mqtt_ssl": false,
2025-02-04T17:38:02.018320058Z     "mqtt_user": null,
2025-02-04T17:38:02.018334114Z     "thermostat_cool_mode_temp_default": 26,
2025-02-04T17:38:02.018348762Z     "thermostat_custom_presets": null,
2025-02-04T17:38:02.018363539Z     "thermostat_heat_mode_temp_default": 16,
2025-02-04T17:38:02.018378224Z     "tydom_alarm_home_zone": 1,
2025-02-04T17:38:02.018392817Z     "tydom_alarm_night_zone": 2,
2025-02-04T17:38:02.018407039Z     "tydom_alarm_pin": "",
2025-02-04T17:38:02.018422261Z     "tydom_ip": "192.168.0.101",
2025-02-04T17:38:02.018438779Z     "tydom_mac": "001A25******",
2025-02-04T17:38:02.018453112Z     "tydom_password": "****************",
2025-02-04T17:38:02.018467983Z     "tydom_polling_interval": 300
2025-02-04T17:38:02.018482760Z }
2025-02-04T17:38:02.018543871Z 2025-02-04 17:38:02,017 - The configuration is valid
2025-02-04T17:38:02.019516768Z 2025-02-04 17:38:02,018 - tydom.TydomClient    - INFO    - Configure local mode (192.168.0.101)
2025-02-04T17:38:02.024571698Z 2025-02-04 17:38:02,023 - mqtt.MqttClient      - INFO    - Connecting to mqtt broker (host=localhost, port=1883, user=, ssl=False)
2025-02-04T17:38:02.038707054Z 2025-02-04 17:38:02,038 - tydom.TydomClient    - INFO    - Connecting to tydom
2025-02-04T17:38:04.594506694Z 2025-02-04 17:38:04,593 - mqtt.MqttClient      - WARNING - MQTT connection error : Multiple exceptions: [Errno 111] Connect call failed ('::1', 1883, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 1883)
2025-02-04T17:38:07.039231579Z 2025-02-04 17:38:07,038 - tydom.TydomClient    - ERROR   - Exception when trying to connect with websocket (server rejected WebSocket connection: HTTP 401)
2025-02-04T17:38:07.074236444Z 2025-02-04 17:38:07,066 - asyncio              - ERROR   - Task exception was never retrieved
2025-02-04T17:38:07.074326109Z future:  exception=SystemExit(1)>
2025-02-04T17:38:07.074344702Z Traceback (most recent call last):
2025-02-04T17:38:07.074359405Z   File "/app/tydom/TydomClient.py", line 197, in connect
2025-02-04T17:38:07.074373572Z     self.connection = await websockets.connect(
2025-02-04T17:38:07.074387627Z                       ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-04T17:38:07.074440238Z   File "/usr/local/lib/python3.11/site-packages/websockets/asyncio/client.py", line 444, in __await_impl__
2025-02-04T17:38:07.074456923Z     await self.connection.handshake(*self.handshake_args)
2025-02-04T17:38:07.074471164Z   File "/usr/local/lib/python3.11/site-packages/websockets/asyncio/client.py", line 104, in handshake
2025-02-04T17:38:07.074486052Z     raise self.protocol.handshake_exc
2025-02-04T17:38:07.074500367Z   File "/usr/local/lib/python3.11/site-packages/websockets/client.py", line 336, in parse
2025-02-04T17:38:07.074514959Z     self.process_response(response)
2025-02-04T17:38:07.074529144Z   File "/usr/local/lib/python3.11/site-packages/websockets/client.py", line 150, in process_response
2025-02-04T17:38:07.074543904Z     raise InvalidStatus(response)
2025-02-04T17:38:07.074558385Z websockets.exceptions.InvalidStatus: server rejected WebSocket connection: HTTP 401
2025-02-04T17:38:07.074572311Z
2025-02-04T17:38:07.074585922Z During handling of the above exception, another exception occurred:
2025-02-04T17:38:07.074600292Z
2025-02-04T17:38:07.074614162Z Traceback (most recent call last):
2025-02-04T17:38:07.074628384Z   File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
2025-02-04T17:38:07.074642995Z     self._run_once()
2025-02-04T17:38:07.074656976Z   File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
2025-02-04T17:38:07.074671032Z     handle._run()
2025-02-04T17:38:07.074684513Z   File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
2025-02-04T17:38:07.074698495Z     self._context.run(self._callback, *self._args)
2025-02-04T17:38:07.074712680Z   File "/app/main.py", line 44, in listen_tydom
2025-02-04T17:38:07.074726791Z     await tydom_client.connect()
2025-02-04T17:38:07.074740513Z   File "/app/tydom/TydomClient.py", line 207, in connect
2025-02-04T17:38:07.074754401Z     sys.exit(1)
2025-02-04T17:38:07.074768123Z SystemExit: 1
2025-02-04T17:38:07.074790160Z 2025-02-04 17:38:07,074 - asyncio              - ERROR   - Task was destroyed but it is pending!
2025-02-04T17:38:07.074844123Z task:  wait_for=>

j’ai l’impression qu’il ne se connecte pas et qu’il ne prends pas toutes les infos,
sur mqtt explorer je n’ai rien sur tydom
et je ne sais pas pourquoi, quand je créer un docker et que je le configure, il m’en créer un 2ème vide niveau conf, j’ai supprimé celui que j’ai créé et configuré celui créé automatiquement et cela fait la même chose.
Et pour finir si je supprime tout, il m’en recréer un vide automatiquement.
Merci pour vos avis.

Bonjour

Voir ce post déjà pour corriger votre fichier de configuration :

Antoine

Bonjour,
Raaah je suis passé à côté de ce post donc j’ai remis à jour, ma conf ne ressemblait vraiement plus à rien après tous mes essais ça fait pas de mal de repartir sur un truc propre, ça se rapproche de ce que j’ai tenté au tout début comme conf, mais possible que le lien soit sur une version github plus récente et entre temps j’ai aussi rajouté les login mdp deltadore
Et ça y est j’ai quelque chose de bien dans mqtt explorer, mais il a tout de même fallu passer par une suppression complète du docker créé initialement,

Pour ceux qui cherchent voilà ce que j’ai:
Nom de l’équipement : tydom
nom du docker : tydom2mqtt
Docker hôte : [1]jeedom (je pense si mosquitto installé via mqtt manager)
Mode de création docker compose

version: '3'

services:
  tydom2mqtt:
    image: ghcr.io/tydom2mqtt/tydom2mqtt:3.6.0
    container_name: tydom2mqtt
    environment:
      - TYDOM_MAC=001A250******  mac de votre box
      - DELTADORE_LOGIN= votre mail de l'apps
      - DELTADORE_PASSWORD= votre mdp de l'apps
      - TYDOM_PASSWORD= votre mdp de box
      - TYDOM_IP= ip de votre box
      - MQTT_HOST=ip de votre jeedom
      - MQTT_PORT=1883
      - MQTT_USER=jeedom  (login mosquitto dans mqtt manager)
      - MQTT_PASSWORD= mdp mosquitto dans mqtt manager

Merci beaucoup pour le lien Tonio16

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.