tydom2mqtt
tydom2mqtt copied to clipboard
Connected Door not detected at all
Hi,
I have a connected door (https://www.k-line.fr/porte-ouverture-distance-connectee) I can open remotely. It use a Tydom box, but it's not detected at all by tydom2mqtt. I have another device on the same box (door open detection), and this one works.
Here the startup logs of tydom2mqtt :
2022-12-26 11:34:14,807 - __main__ - INFO - STARTING TYDOM2MQTT
2022-12-26 11:34:14,807 - __main__ - INFO - Detecting environnement......
2022-12-26 11:34:14,808 - __main__ - INFO - No /data/options.json, seems we are not in hassio addon mode.
2022-12-26 11:34:14,808 - tydomConnector - INFO - Initialising TydomClient Class
2022-12-26 11:34:14,808 - tydomConnector - INFO - Setting local mode context.
2022-12-26 11:34:14,813 - __main__ - INFO - Starting main loop_task
/app/main.py:141: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
2022-12-26 11:34:14,816 - mqtt_client - INFO - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2022-12-26 11:34:14,816 - mqtt_client - INFO - Attempting MQTT connection...
2022-12-26 11:34:14,817 - mqtt_client - INFO - MQTT host : localhost
2022-12-26 11:34:14,817 - mqtt_client - INFO - MQTT user : hass
2022-12-26 11:34:14,824 - gmqtt.mqtt.protocol - INFO - [CONNECTION MADE]
2022-12-26 11:34:14,827 - mqtt_client - INFO - ##################################
2022-12-26 11:34:14,828 - mqtt_client - INFO - Subscribing to : +/tydom/#
2022-12-26 11:34:14,828 - gmqtt.mqtt.package - INFO - [SEND SUB] 1 [b'homeassistant/status']
2022-12-26 11:34:14,829 - gmqtt.mqtt.package - INFO - [SEND SUB] 2 [b'+/tydom/#']
2022-12-26 11:34:14,831 - gmqtt.mqtt.handler - INFO - [SUBACK] 1 (0,)
2022-12-26 11:34:14,831 - gmqtt.mqtt.handler - INFO - [SUBACK] 2 (0,)
2022-12-26 11:34:14,832 - tydomConnector - INFO - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2022-12-26 11:34:14,832 - tydomConnector - INFO - TYDOM WEBSOCKET CONNECTION INITIALISING....
2022-12-26 11:34:14,833 - tydomConnector - INFO - Building headers, getting 1st handshake and authentication....
2022-12-26 11:34:16,708 - tydomConnector - INFO - Upgrading http connection to websocket....
2022-12-26 11:34:16,709 - tydomConnector - INFO - Attempting websocket connection with tydom hub.......................
2022-12-26 11:34:16,709 - tydomConnector - INFO - Host Target : 192.168.1.11
2022-12-26 11:34:18,136 - __main__ - INFO - Tydom Client is connected to websocket and ready !
2022-12-26 11:34:18,137 - tydomConnector - INFO - Requesting 1st data...
2022-12-26 11:34:18,137 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /info
2022-12-26 11:34:18,138 - tydomConnector - INFO - ##################################
2022-12-26 11:34:18,139 - tydomConnector - INFO - ##################################
2022-12-26 11:34:18,139 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... POST /refresh/all
2022-12-26 11:34:18,141 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /configs/file
2022-12-26 11:34:18,142 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/cmeta
2022-12-26 11:34:23,148 - tydomConnector - INFO - >>>>>>>>>> Sending to tydom client..... GET /devices/data
2022-12-26 11:34:23,154 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2022-12-26 11:34:23,161 - tydomMessagehandler - INFO - Configuration updated
2022-12-26 11:34:23,161 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2022-12-26 11:34:23,164 - tydomMessagehandler - INFO - Metadata configuration updated
2022-12-26 11:34:23,165 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2022-12-26 11:34:23,169 - sensors - INFO - Sensor created / updated : openState_tydom__Porte_Fenêtre LOCKED
2022-12-26 11:34:23,170 - tydomMessagehandler - INFO - Incoming data parsed successfully !
Any idea or way to support it ?
Thank you !
Yep same problem, any plans to support this device?
Hello i managed to get the door status by adding podPosition to the door keywords in MessageHandler.py. now need to find how to create a button command to send the set_podPosition:OPEN message