tydom2MQTT addon :D - Delta Dore Tydom to MQTT Broker

OK guys, i will try to add more things to the logs next version

I don’t see any log when I send the command… could you please give me the path where the log file is located?

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

I try to use this version but impossible to have a feedback even on mqtt, I will be receiving my other mqtt sensors on the broker. I use the version

https://github.com/max5962/tydom2mqtt

but she disconnects every day.
Thank you for your help
Docker version
20.10.1
Version
2020.12.7
Newest Version
2020.12.7

1 Like

Don’t worry I will push a PR of course.
I succeed to add switch but the point is I don’t know how/where to find the command to send ??
How did you proceed to get alarm, cover or light commands ?
I tried this randomly but no chance :sweat_smile:

await tydom_client.put_devices_data(device_id, switch_id, 'state', 'On')

Can you help me to get the right params to send ?

Thanks

My GitHub is corrected with last version, you have issues on the MQTT side, how did you configure it ?

To have full logs start the script with python on a terminal ! I will try to make hassio displays more logs but the forever script seem to hide logs in interface (no issue with python)

Latest version 0.97 changed things for climate, any feedback guys ? (Don’t have climate here)

cote mqtt j’ai bien tout mes sensors qui remonte
Capture

Capture

hi this’s my error message

IndexError: list index out of range
Task exception was never retrieved
future: <Task finished name='Task-79027' 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

Do you have a solution?
thank you in advance

my news message

Subscribing to :  +/tydom/#
>>>>>>>>>> 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...
>>>>>>>>>> Sending to tydom client..... POST /refresh/all
<<<<<<<<<< Receiving from tydom_client...
MQTT Disconnected !
##################################
##################################
Subscribing to :  +/tydom/#
>>>>>>>>>> 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

Hello,

I’m migrated to SYNOlogy and the container do not work anymore :frowning:

The only logs is :

sudo docker logs tydom2mqtt

Starting main.py
[CONNACK] 0x1

any idea ?
thks

You are using docker directly or the add-on ? The docker version is x86 only, you should modify the docker file to change the base to an arm version (alpine for example) or use the hassio version.

Ok seems related to the same previous error with lack of endpoint_id from tydom… I need to adapt mqtt part but again, time in front of my computer is missing…

my synology is base of an intel celeron X64 so it’s not an issue.
if i connect into the container and run “python main.py” i have all logs… strange.

“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
Attempting MQTT connection…
MQTT host : 172.18.1.18
MQTT user :
[CONNACK] 0x1
MQTT Disconnected !
##################################

I dont understand by it can’t connect to my mqtt broker anymore ( same configuration ) … just newer image

on mqtt broker side :
1610201032: New connection from 172.18.1.21 on port 1883.
1610201032: New client connected from 172.18.1.21 as fe3ad02430422021-01-09 14:03:46.879460 (c0, k60, u’').

it’s seems connected …

hello,

how to run a “python main.py” run? I’m a nooby, my ha is installed under docker with an intel-nuc.

Hostname
debian
IP Address
192.168.1.20/24
Operating System
Debian GNU/Linux 10 (buster)
Docker version
20.10.1

Thank’s

Normally you don’t have to run it manually.
The container run it at startup.

I use the version https://github.com/max5962/tydom2mqtt which works but it loses connection once a day

It’s my version completed outdated ^^
Goes to @WiwiWillou version :slight_smile:

Just download / git clone the repo and with python3 installed, try python3 main.py or python3 forverer.py main.py, after modding the main with credentials, etc.

You should try with home assistant addon, this is the way ^^

Can you explain it in more detail because I’m not a pro but a nooby, thank’s