tydom2MQTT addon :D - Delta Dore Tydom to MQTT Broker

Sure

{
        "id_endpoint": 1581359409,
        "first_usage": "alarm",
        "id_device": 1581359409,
        "name": "Alarme",
        "anticipation_start": false,
        "picto": "picto_alarm",
        "last_usage": "alarm"
      }

They seem to be the same

Well… really strange !

It means there is something different depending on the type of alarm used (I have a CSX40) or configuration (?).

But at the end no matter because in your case (device id = endpoint id) you can’t arm the alarm. The same goes for me with device id <> endpoint id.

I guess we need perhaps some help from @fransiouz who should understand this better than us :slight_smile: If you are listening to us ? :wink:

1 Like

Hi Cyril,
Don’t know what you are talking about ? :thinking:
But please tell me if I did a mistake

Hi @WiwiWillou,
Sorry, away for a long time…
I saw you have merged with my changes perfectly !! Do I need to do something else ?

See u !

you removed the code to refresh all the data when Home Assistant sends a message to tell it is starting. but WiwiWillou reverted the change and it’s ok now, no worry

@WiwiWillou
There is an error in alarm control panel for the code ARM required.
The condition is wrong. I just send a pull request.
Can you adjust it ?
Thanks

In case anyone is interested, I found a fork of tydom2mqtt with the climate support: https://github.com/gus8313/tydom2mqtt/commits/master
How about adding this to the main repo @WiwiWillou so everyone can benefit from it :slight_smile: ?

Anyone can do a PR and I will happily merge it ! That repo 26 commits behind ! I don’t have time and hardware to test !

I will try it this month thank you !

I will try to help then and submit a PR then. Thanks a lot for keeping this OSS project alive.

Hi guys.

I’m still getting the http error when starting up the tydom2mqtt. Any ideas what I need to do? Any help would be really appreciated.

Thanks.

Which http error ? Is it a new and fresh installation ?

Hello.
I am also a new user and I also get an HTTP error.

Blockquote

parse error: Expected string key before ‘:’ at line 1, column 4
[09:33:17] ERROR: Unknown HTTP error occured

Blockquote

I still get the temperature info but all the alarm info are not working.

Any suggestions

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Tydom2MQTT - Beta
 Link between a Delta Dore's Tydom 1.0 Hub and and a MQTT broker, unofficial of course, hassio addon version
-----------------------------------------------------------
 Add-on version: release_v1.2.4
 You are running the latest version of this add-on.
parse error: Expected string key before ':' at line 1, column 4
[09:33:17] ERROR: Unknown HTTP error occured
 System:   (armv7 / raspberrypi3)
 Home Assistant Core: 2021.10.6
 Home Assistant Supervisor: 2021.10.8
-----------------------------------------------------------
 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 TRACE
[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

To all new users : could you please restart the inital process with an old tydom app (from 2020 for example), the new onboarding seems to change some things…

I don’t see the error (“blockquote”) ?

 Add-on version: release_v1.2.4
 You are running the latest version of this add-on.
parse error: Expected string key before ':' at line 1, column 4
[09:33:17] ERROR: Unknown HTTP error occured
 System:   (armv7 / raspberrypi3)
 Home Assistant Core: 2021.10.6
 Home Assistant Supervisor: 2021.10.8

the error is not “blockquote”, that was just me trying to isolate the line where the error appear.

The error is "

parse error: Expected string key before ':' at line 1, column 4
[09:33:17] ERROR: Unknown HTTP error occured

"

I do not understand your request to use a old tydom app. How do you do that?

Download an old version of the tydom app for the initial onboiarding ! (Old APK))

I don’t think the http error is the cause of the alarm issues… I think you could ignore it, try to arm / disarm while connecting to check if you have more data !

I just get this in log and nothing else?

TYDOM WEBSOCKET CONNECTION INITIALISING…
Building headers, getting 1st handshake and authentication…
Traceback (most recent call last):
File “/opt/tydom2mqtt/main.py”, line 159, in
loop_task()
File “/opt/tydom2mqtt/main.py”, line 103, in loop_task
loop.run_until_complete(listen_tydom_forever(tydom_client))
File “/usr/lib/python3.8/asyncio/base_events.py”, line 616, in run_until_complete
return future.result()
File “/opt/tydom2mqtt/main.py”, line 115, in listen_tydom_forever
await tydom_client.connect()
File “/opt/tydom2mqtt/tydomConnector.py”, line 96, in connect
conn.request(“GET”, “/mediation/client?mac={}&appli=1”.format(self.mac), None, httpHeaders)
File “/usr/lib/python3.8/http/client.py”, line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.8/http/client.py”, line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.8/http/client.py”, line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.8/http/client.py”, line 1007, in _send_output
self.send(msg)
File “/usr/lib/python3.8/http/client.py”, line 947, in send
self.connect()
File “/usr/lib/python3.8/http/client.py”, line 1414, in connect
super().connect()
File “/usr/lib/python3.8/http/client.py”, line 918, in connect
self.sock = self._create_connection(
File “/usr/lib/python3.8/socket.py”, line 808, in create_connection
raise err
File “/usr/lib/python3.8/socket.py”, line 796, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Operation timed out
Starting /opt/tydom2mqtt/main.py