tydom2mqtt icon indicating copy to clipboard operation
tydom2mqtt copied to clipboard

Tydom Password not used in the container while correctly setup as environment

Open BilayKhan opened this issue 1 year ago • 4 comments

Hi, I am using docker and portainer to launch tydom2mqtt.

Here is my compose (latest=3.5.2):

version: '3'
services:
  tydom2mqtt:
    image: fmartinou/tydom2mqtt:latest
    container_name: tydom2mqtt
    environment:
      - TYDOM_MAC=0**********4
      - TYDOM_PASSWORD=0****4
      - TYDOM_IP=192.168.1.9
      - DELTADORE_LOGIN=g****@********.com
      - DELTADORE_PASSWORD=p******************s
      - TYDOM_POLLING_INTERVAL=300
      - MQTT_HOST=homeassistant
      - MQTT_PORT=1883
      - MQTT_USER=MQTTUser
      - MQTT_PASSWORD=8************************************************d
      - MQTT_SSL=false
      - LOG_LEVEL=DEBUG

But the containers failed with an "exited - code1" error. And here is the log:

2024-08-09T16:31:00.155499208Z 2024-08-09 16:31:00,155 - Starting tydom2mqtt
2024-08-09T16:31:00.710078945Z 2024-08-09 16:31:00,709 - Validating configuration ({
2024-08-09T16:31:00.710299924Z     "deltadore_login": "g****@********.com",
2024-08-09T16:31:00.710401176Z     "deltadore_password": "p******************s",
2024-08-09T16:31:00.710468002Z     "log_level": "DEBUG",
2024-08-09T16:31:00.710532328Z     "mqtt_host": "homeassistant",
2024-08-09T16:31:00.710606967Z     "mqtt_password": "8************************************************d",
2024-08-09T16:31:00.710676681Z     "mqtt_port": "1883",
2024-08-09T16:31:00.710741757Z     "mqtt_ssl": "false",
2024-08-09T16:31:00.710808296Z     "mqtt_user": "MQTTUser",
2024-08-09T16:31:00.710878485Z     "thermostat_cool_mode_temp_default": 26,
2024-08-09T16:31:00.710943198Z     "thermostat_custom_presets": null,
2024-08-09T16:31:00.711009437Z     "thermostat_heat_mode_temp_default": 16,
2024-08-09T16:31:00.711075976Z     "tydom_alarm_home_zone": 1,
2024-08-09T16:31:00.711156140Z     "tydom_alarm_night_zone": 2,
2024-08-09T16:31:00.711225566Z     "tydom_alarm_pin": "",
2024-08-09T16:31:00.711289017Z     "tydom_ip": "192.168.1.9",
2024-08-09T16:31:00.711357331Z     "tydom_mac": "0**********4",
2024-08-09T16:31:00.711421107Z     "tydom_password": "",
2024-08-09T16:31:00.711483921Z     "tydom_polling_interval": "300"
2024-08-09T16:31:00.711550972Z }
2024-08-09T16:31:00.711614386Z 2024-08-09 16:31:00,710 - Tydom password must be defined

We can see that the tydom_password environment is not well setup and is null ("") where it is required by the system.

Just to test, I also try with the release 3.4.3 and the issue remain the same.

Would you have an idea of what happen? I must miss something as it seems that everyone succeed to create the container correctly.

Many thanks for your help !

BilayKhan avatar Aug 09 '24 16:08 BilayKhan