fmartinou / tydom2mqtt

Deltadore Tydom to MQTT Bridge
https://fmartinou.github.io/tydom2mqtt/
MIT License
86 stars 49 forks source link

No device added to home-assistant even if everything started correctly #179

Closed qraynaud closed 1 week ago

qraynaud commented 4 months ago

Hi, I just tried tydom2mqtt but I can’t get it to work. It connects successufully to both the tydom box and the MQTT broker but it does not seem to publish the messages needed to add my devices in HA.

Here is my startup log:

2024-03-02 14:23:10.134884+01:002024-03-02 14:23:10,134 - Starting tydom2mqtt
2024-03-02 14:23:10.135033+01:002024-03-02 14:23:10,134 - Validating configuration ({
2024-03-02 14:23:10.135041+01:00"deltadore_login": null,
2024-03-02 14:23:10.135046+01:00"deltadore_password": "",
2024-03-02 14:23:10.135050+01:00"log_level": "INFO",
2024-03-02 14:23:10.135054+01:00"mqtt_host": "mosquitto.ix-mosquitto.svc.cluster.local",
2024-03-02 14:23:10.135063+01:00"mqtt_password": "Y****************************H",
2024-03-02 14:23:10.135067+01:00"mqtt_port": 1883,
2024-03-02 14:23:10.135071+01:00"mqtt_ssl": false,
2024-03-02 14:23:10.135075+01:00"mqtt_user": "mosquitto",
2024-03-02 14:23:10.135079+01:00"thermostat_custom_presets": null,
2024-03-02 14:23:10.135083+01:00"tydom_alarm_home_zone": 1,
2024-03-02 14:23:10.135087+01:00"tydom_alarm_night_zone": 2,
2024-03-02 14:23:10.135094+01:00"tydom_alarm_pin": "",
2024-03-02 14:23:10.135098+01:00"tydom_ip": "10.0.3.114",
2024-03-02 14:23:10.135102+01:00"tydom_mac": "001A2507DDF4",
2024-03-02 14:23:10.135106+01:00"tydom_password": "w********t",
2024-03-02 14:23:10.135110+01:00"tydom_polling_interval": 300
2024-03-02 14:23:10.135113+01:00}
2024-03-02 14:23:10.135123+01:002024-03-02 14:23:10,135 - The configuration is valid
2024-03-02 14:23:10.135141+01:002024-03-02 14:23:10,135 - tydom.TydomClient    - INFO    - Configure local mode (10.0.3.114)
2024-03-02 14:23:10.136717+01:002024-03-02 14:23:10,136 - mqtt.MqttClient      - INFO    - Connecting to mqtt broker (host=mosquitto.ix-mosquitto.svc.cluster.local, port=1883, user=mosquitto, ssl=False)
2024-03-02 14:23:10.138317+01:002024-03-02 14:23:10,138 - tydom.TydomClient    - INFO    - Connecting to tydom
2024-03-02 14:23:12.688133+01:002024-03-02 14:23:12,688 - mqtt.MqttClient      - INFO    - Connected to mqtt broker
2024-03-02 14:23:15.141137+01:002024-03-02 14:23:15,140 - tydom.TydomClient    - INFO    - Connected to tydom
2024-03-02 14:23:15.141191+01:002024-03-02 14:23:15,141 - tydom.TydomClient    - INFO    - Setup tydom client
2024-03-02 14:23:15.371716+01:002024-03-02 14:23:15,371 - tydom.MessageHandler - INFO    - Device update (id=1709295453, endpoint=1709295453, name=1er | Suite | Temp, type=boiler)
2024-03-02 14:23:15.372132+01:002024-03-02 14:23:15,372 - sensors.Boiler       - INFO    - set hvac action
2024-03-02 14:23:15.372415+01:002024-03-02 14:23:15,372 - tydom.MessageHandler - INFO    - Device update (id=1709295589, endpoint=1709295589, name=1er | Bureau | Temp, type=boiler)
2024-03-02 14:23:15.372657+01:002024-03-02 14:23:15,372 - sensors.Boiler       - INFO    - set hvac action
2024-03-02 14:23:15.372882+01:002024-03-02 14:23:15,372 - tydom.MessageHandler - INFO    - Device update (id=1709296189, endpoint=1709296189, name=RdT | Salon | Temp, type=boiler)
2024-03-02 14:23:15.373151+01:002024-03-02 14:23:15,373 - sensors.Boiler       - INFO    - set hvac action
2024-03-02 14:23:15.373364+01:002024-03-02 14:23:15,373 - tydom.MessageHandler - INFO    - Device update (id=1709296281, endpoint=1709296281, name=RdT | Bureau | Temp, type=boiler)
2024-03-02 14:23:15.373608+01:002024-03-02 14:23:15,373 - sensors.Boiler       - INFO    - set hvac action
2024-03-02 14:23:15.373730+01:002024-03-02 14:23:15,373 - tydom.MessageHandler - INFO    - Device update (id=1709296414, endpoint=1709296414, name=Airbnb | Salon | Tem, type=boiler)
2024-03-02 14:23:15.373897+01:002024-03-02 14:23:15,373 - sensors.Boiler       - INFO    - set hvac action
2024-03-02 14:23:15.374005+01:002024-03-02 14:23:15,373 - tydom.MessageHandler - INFO    - Device update (id=1709296510, endpoint=1709296510, name=Airbnb | Chambre | T, type=boiler)
2024-03-02 14:23:15.374175+01:002024-03-02 14:23:15,374 - sensors.Boiler       - INFO    - set hvac action
2024-03-02 14:23:15.374473+01:002024-03-02 14:23:15,374 - tydom.MessageHandler - WARNING - Unknown message type received ([]
2024-03-02 14:23:15.374485+01:00)

Any ideas?

qraynaud commented 3 months ago

If I listen using HA to the topic homeassistant/climate/tydom/1709295453_1709295453/config, it receives the following config:

{
    "name": null,
    "temperature_command_topic": "climate/tydom/1709295453_1709295453/set_setpoint",
    "temperature_state_topic": "climate/tydom/1709295453_1709295453/setpoint",
    "current_temperature_topic": "climate/tydom/1709295453_1709295453/temperature",
    "modes": [
        "off",
        "heat",
        "cool"
    ],
    "mode_state_topic": "climate/tydom/1709295453_1709295453/hvacMode",
    "mode_command_topic": "climate/tydom/1709295453_1709295453/set_hvacMode",
    "preset_modes": [
        "STOP",
        "ANTI_FROST",
        "ECO",
        "COMFORT",
        "AUTO"
    ],
    "preset_mode_state_topic": "climate/tydom/1709295453_1709295453/thermicLevel",
    "preset_mode_command_topic": "climate/tydom/1709295453_1709295453/set_thermicLevel",
    "action_topic": "climate/tydom/1709295453_1709295453/action",
    "unique_id": "1709295453_1709295453"
}

but even so, it does not add any device to HA…

qraynaud commented 1 week ago

It’s now working. Thanks anyway ^^.