tydom2mqtt icon indicating copy to clipboard operation
tydom2mqtt copied to clipboard

Tybox 137 not recognized

Open Chartreusito opened this issue 1 year ago • 0 comments

I'm running Home Assistant 2023.7.3 within a HAOS 10.3 VM I'm using the tydom2mqtt add-on with the Mosquitto broker also from the official add ons.

I'm connected to a Tydom 1.0 to which i linked a Tybox 137

Problem is my device doesn't seem to be recognized.

If you need any more info i'm happy to help get it sorted.

2023-07-24 22:15:34,555 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:15:39,559 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:15:41,332 - websockets.client    - DEBUG   - < BINARY 50 4f 53 54 20 2f 65 76 65 6e 74 73 2f 68 6f 6d ... 0a 0d 0a 30 0d 0a 0d 0a [183 bytes]
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/logging/__init__.py", line 1110, in emit
    msg = self.format(record)
          ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/logging/__init__.py", line 953, in format
    return fmt.format(record)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/logging/__init__.py", line 687, in format
    record.message = record.getMessage()
                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/logging/__init__.py", line 377, in getMessage
    msg = msg % self.args
          ~~~~^~~~~~~~~~~
TypeError: not all arguments converted during string formatting
Call stack:
  File "/app/main.py", line 119, in <module>
    main()
  File "/app/main.py", line 115, in main
    loop.run_forever()
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
    handle._run()
  File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/app/main.py", line 54, in listen_tydom
    await message_handler.incoming_triage()
  File "/app/tydom/MessageHandler.py", line 250, in incoming_triage
    await self.parse_response(incoming)
  File "/app/tydom/MessageHandler.py", line 294, in parse_response
    logger.warning('Unknown message type received', data)
Message: 'Unknown message type received'
Arguments: ('{"mode": "HEATING", "support": ["STOP", "HEATING"]}',)
2023-07-24 22:15:41,333 - tydom.MessageHandler - DEBUG   - Incoming data parsed with success
2023-07-24 22:15:41,333 - tydom.MessageHandler - DEBUG   - POST message processed
2023-07-24 22:15:44,562 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:15:49,565 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:15:50,530 - websockets.client    - DEBUG   - < BINARY 50 55 54 20 2f 64 65 76 69 63 65 73 2f 64 61 74 ... 0a 0d 0a 30 0d 0a 0d 0a [265 bytes]
2023-07-24 22:15:50,531 - tydom.MessageHandler - DEBUG   - PUT /devices/data message detected !
2023-07-24 22:15:50,531 - tydom.MessageHandler - DEBUG   - Message received detected as (msg_data)
2023-07-24 22:15:50,531 - tydom.MessageHandler - WARNING - Unknown device name (1690229319_1690229319)
2023-07-24 22:15:50,531 - tydom.MessageHandler - WARNING - Unknown device type (1690229319_1690229319)
2023-07-24 22:15:50,531 - tydom.MessageHandler - INFO    - Device update (id=1690229319, endpoint=1690229319, name=, type=)
2023-07-24 22:15:50,531 - tydom.MessageHandler - DEBUG   - Incoming data parsed with success
2023-07-24 22:15:54,472 - websockets.client    - DEBUG   - % sending keepalive ping
2023-07-24 22:15:54,472 - websockets.client    - DEBUG   - > PING 64 9b 93 8c [binary, 4 bytes]
2023-07-24 22:15:54,474 - websockets.client    - DEBUG   - < PONG '' [0 bytes]
2023-07-24 22:15:54,566 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:15:59,572 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:16:04,574 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:16:06,700 - websockets.client    - DEBUG   - < BINARY 50 55 54 20 2f 64 65 76 69 63 65 73 2f 64 61 74 ... 0a 0d 0a 30 0d 0a 0d 0a [261 bytes]
2023-07-24 22:16:06,701 - tydom.MessageHandler - DEBUG   - PUT /devices/data message detected !
2023-07-24 22:16:06,701 - tydom.MessageHandler - DEBUG   - Message received detected as (msg_data)
2023-07-24 22:16:06,701 - tydom.MessageHandler - WARNING - Unknown device name (1690229319_1690229319)
2023-07-24 22:16:06,701 - tydom.MessageHandler - WARNING - Unknown device type (1690229319_1690229319)
2023-07-24 22:16:06,701 - tydom.MessageHandler - INFO    - Device update (id=1690229319, endpoint=1690229319, name=, type=)
2023-07-24 22:16:06,701 - tydom.MessageHandler - DEBUG   - Incoming data parsed with success
2023-07-24 22:16:14,473 - websockets.client    - DEBUG   - % sending keepalive ping
2023-07-24 22:16:14,474 - websockets.client    - DEBUG   - > PING aa 82 fa 64 [binary, 4 bytes]
2023-07-24 22:16:14,475 - websockets.client    - DEBUG   - < PONG '' [0 bytes]
2023-07-24 22:16:14,576 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]
2023-07-24 22:16:19,581 - gmqtt.client         - DEBUG   - [QoS query IS EMPTY]

Chartreusito avatar Jul 24 '23 20:07 Chartreusito