tydom2MQTT addon :D - Delta Dore Tydom to MQTT Broker

je n’arrive pas a lancer l’add ond

You are running the latest version of this add-on.
parse error: Expected string key before ‘:’ at line 1, column 4
[23:11:34] ERROR: Unknown HTTP error occured
System: (armv7 / raspberrypi3)
Home Assistant Core: 0.118.4
Home Assistant Supervisor: 2020.11.0

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing…
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting /opt/tydom2mqtt/main.py

I can’t manage my covers from HA, despite having the info from MQTT "{" name ": 1552989350," unique_id ": 1552989350," command_topic ":" cover / tydom / 1552989350 / set_position " , "set_position_topic": "cover / tydom / 1552989350 / set_position", "position_topic": "cover / tydom / 1552989350 / current_position", "payload_open": 100, "payload_close": 0, "retain": "false", " device ": {" manufacturer ":" Delta Dore "," model ":" Volet "," name ": 1552989350," identifiers ": 1552989350}}

As tu essayé de chercher dans tes entités si tu voyais tes volets ?

Currently I use this plugin “https://github.com/max5962/tydom2mqtt” for my shutters which works but I have a permanent error message which tells me that the source is not verifying . With the add-ons “https://github.com/WiwiWillou/hassio_addons.git” I cannot have my entities. my config " TYDOM_MAC: 001A2502A16B
TYDOM_IP: 192.168.1.16
TYDOM_PASSWORD: S******
TYDOM_ALARM_PIN: ‘123456’
TYDOM_ALARM_HOME_ZONE: 1
TYDOM_ALARM_NIGHT_ZONE: 2
MQTT_HOST: 192.168.1.20
MQTT_USER: mqtt
MQTT_PASSWORD: coucou
MQTT_PORT: 1883
MQTT_SSL: true
log_level: info

log “ttempting MQTT connection…
MQTT host : 192.168.1.20
MQTT user : mqtt
MQTT connection Error : [Errno 104] Connection reset by peer
MQTT error, restarting in 8s…
“””"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Attempting MQTT connection…
MQTT host : 192.168.1.20
MQTT user : mqtt
MQTT connection Error : [Errno 104] Connection reset by peer
MQTT error, restarting in 8s…
“”""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Attempting MQTT connection…
MQTT host : 192.168.1.20
MQTT user : mqtt
MQTT connection Error : [Errno 104] Connection reset by peer
MQTT error, restarting in 8s…"

Did you try from my git, as it is the last version ?

thank you to you it works really well

ultimately it does not work. once I remove the HACS plugin tydom2mqtt it doesn’t work anymore I have the following message “future: <Task finished name = ‘Task-320’ coro = <MQTT_Hassio.on_message () done, defined at / opt / tydom2mqtt / mqtt_client .py: 78> exception = IndexError (‘list index out of range’)>
Traceback (most recent call last):
File “/opt/tydom2mqtt/mqtt_client.py”, line 131, in on_message
endpoint_id = (get_id.split (”")) [1] #extract id from mqtt
IndexError: list index out of range
Task exception was never retrieved
future: <Task finished name = ‘Task-332’ coro = <MQTT_Hassio.on_message () done, defined at /opt/tydom2mqtt/mqtt_client.py:78> exception = IndexError (‘list index out of range’)>
Traceback (most recent call last):
File “/opt/tydom2mqtt/mqtt_client.py”, line 131, in on_message
endpoint_id = (get_id.split ("
")) [1] #extract id from mqtt
IndexError: list index out of range "

or otherwise I just have the info position in MQTT and no flap control. I have tydom 1.0 which is slowly flashing.

Thanks for your help

Je suis en train de tester home assistant après des années sur jeedom : j’aimerai pouvoir gérer mes volets en DELTADORE x2d
Je suis en train de monter un broker mqtt :grin:

Est ce que je peux commander les volets via ton « Addon » sous ha ?

Merci pr ton retour et ton addon

Hello everybody, thank you for the great work to everybody who contributed. Got it working with heating finally with the plugin from -> https://github.com/tonioa/hassio_addons
Big thanks to tonioa and WiwiWillou for the hard work.
Though there is a small issue, I can see the first 4 thermostats I added to the tydom ecosystem, the later 3 I can’t see, I think there are definitions missing, see attached logfile, could anybody point in the direction where to add them. Thanks a lot,
Michael

>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156305 not in dic device_name
1609156305 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156176 not in dic device_name
1609156176 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156521 not in dic device_name
1609156521 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
Incoming data parsed successfully !
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156622 not in dic device_name
1609156622 not in dic device_type
Incoming data parsed successfully !
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156305 not in dic device_name
1609156305 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156176 not in dic device_name
1609156176 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156521 not in dic device_name
1609156521 not in dic device_type
Incoming data parsed successfully !
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156622 not in dic device_name
1609156622 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
Incoming data parsed successfully !
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156176 not in dic device_name
1609156176 not in dic device_type
Incoming data parsed successfully !

Small guide on how to install the plugin:

  1. add tydom2mqtt plugin, since this is not official you need to input the git url to allow hassio to find the files. install and fill in credentials, you need your tydoms basestations MAC adress, IP and login details (the ones used on your phones app to connect to tydom)
  2. install mosquito broker and fill in credentials
  3. find you thermostats or lighting relais

2 Likes

Hi all,
Still trying to improve the addon by adding switch management.
I have tyxia 4620 to control my garage and portal door.

Can anyone help me to add this component in the addon? I did some try but i didn’t succeed. The switch does not appear in HA, only in MQTT.

You can check my fork where I add switch.py :

Thanks !

Hi all,
I’ve just received TODAY my Tydom 1.0 box. I’ m using it only for my old alarm system (Tyxal CSX40 alarm)
When the Tydom2mqqt addon start, I have the following error :

ValueError: invalid HTTP header line: realm=“Protected Area”,

Does someone already have suche an error?

Lionel

So here is my guide on how to make a dump of the tydom configuration:

  1. Take another raspberry, in my case Rpi4

  2. Install raspbian OS, connect to machine, open Terminal

  3. Install nodejs https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04-de, this came with npm installed in my case, no need to install npm separately

  4. Install tydom client into nodejs ->
    npm install tydom-client
    https://www.npmjs.com/package/tydom-client

  5. I had to modifie client.js file cause the script wasn able to locate my tydom box ->
    /home/pi/node_modules/tydom-client
    from mediation.tydom.com to my boxes IP address

  6. run ->

npx tydom-client request /configs/file /devices/data /devices/meta /devices/cmeta --file tydom_output.json --username 001A25XXXXXX --password XXXXXX

  1. find dump file in /home/pi tydom_output.json

Hope this helps as I think there is no way to install nodejs into hassio.

1 Like

devices with short “2 letter” ID work as expected, the ones with “10 letter” id don’t, except for lighting relais, they work. could this be connected to the length of the ID when parsing into MQTT. very strange

{
  "/configs/file": {
    "date": 1609236587,
    "version_application": "03.04.03-257-dd",
    "endpoints": [
      {
        "id_endpoint": 7,
        "first_usage": "hvac",
        "id_device": 7,
        "name": "Fussboden Bad",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "boiler"
      },
      {
        "id_endpoint": 8,
        "first_usage": "hvac",
        "id_device": 8,
        "name": "Panel XXXXXX",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "boiler"
      },
      {
        "id_endpoint": 12,
        "first_usage": "hvac",
        "id_device": 12,
        "name": "Panel Wohnzimmer",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "boiler"
      },
      {
        "id_endpoint": 11,
        "first_usage": "hvac",
        "id_device": 11,
        "name": "Fussboden WC",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "boiler"
      },
      {
        "id_endpoint": 9,
        "first_usage": "others",
        "id_device": 9,
        "name": "Repeater 1",
        "anticipation_start": false,
        "picto": "picto_plug",
        "last_usage": "others"
      },
      {
        "id_endpoint": 10,
        "first_usage": "others",
        "id_device": 10,
        "name": "Repeater 2",
        "anticipation_start": false,
        "picto": "picto_plug",
        "last_usage": "others"
      },
      {
        "id_endpoint": 1551009262,
        "first_usage": "light",
        "id_device": 1551009262,
        "name": "LED Küche",
        "anticipation_start": false,
        "picto": "picto_ceiling",
        "last_usage": "light"
      },
      {
        "id_endpoint": 1551085229,
        "first_usage": "hvac",
        "id_device": 1551085229,
        "name": "Panel XXXXXX",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "electric"
      },
      {
        "id_endpoint": 1564916221,
        "first_usage": "light",
        "id_device": 1564916221,
        "name": "LED Garten",
        "anticipation_start": false,
        "picto": "picto_lamp",
        "last_usage": "light"
      },
      {
        "id_endpoint": 1609156176,
        "first_usage": "hvac",
        "id_device": 1609156176,
        "name": "XXXXXX Fernsehzimmer",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "electric"
      },
      {
        "id_endpoint": 1609156305,
        "first_usage": "hvac",
        "id_device": 1609156305,
        "name": "XXXX Schlafzimmer",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "electric"
      },
      {
        "id_endpoint": 1609156423,
        "first_usage": "hvac",
        "id_device": 1609156423,
        "name": "XXXXXXX EG",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "electric"
      },
      {
        "id_endpoint": 1609156521,
        "first_usage": "hvac",
        "id_device": 1609156521,
        "name": "Bad EG",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "electric"
      },
      {
        "id_endpoint": 1609156622,
        "first_usage": "hvac",
        "id_device": 1609156622,
        "name": "XXXXXXX EG",
        "anticipation_start": false,
        "picto": "picto_thermometer",
        "last_usage": "electric"
      }
    ]
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156622 not in dic device_name
1609156622 not in dic device_type
Incoming data parsed successfully !
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156423 not in dic device_name
1609156423 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156305 not in dic device_name
1609156305 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156176 not in dic device_name
1609156176 not in dic device_type
Incoming data parsed successfully !
<<<<<<<<<< Receiving from tydom_client...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Incoming message type : data detected
1609156521 not in dic device_name
1609156521 not in dic device_type
Incoming data parsed successfully !

Hi,

I reset my Tydom Box, set a new password (only with letter and digit, no special character).
The Tydom2mqtt can now connect to the box, and I correctly get the alarm status (on/off)

However, I’m not able to arm or disarm the alarm from Home Assistant
Is the feature implemented for Tyxal alarm (Tyxal CSX40 alarm) ?

Thank in advance?

Lionel

Si tes volets fonctionnent avec une box tydom et que tu en as une, oui :slight_smile:

HACS version ? Just add the one as specified on OP, i’ve updated the hassio repo with the latest docker build

1 Like

I don’t have DD’s switches at home, but if you succeed in don’t forget to make a PR :slight_smile:

Mmh i don’t have that model, maybe the payload is different, do you have anything in logs ?