oven-lab / tuya_cloud_map_extractor

Tuya cloud vacuum map extractor for Home Assistant
MIT License
29 stars 6 forks source link

[BUG] - Honiture Q6 Map format not supported #44

Closed Wh1t3Rose closed 6 months ago

Wh1t3Rose commented 6 months ago

Added Honiture Q6 to Smart Life app. Device shows in Tuya Cloud IOT

Added Client ID / Clent Secret / Device ID to Integration.

Version:

Log entry Include the logs here. If possible, enable debug logging.


2024-05-26 19:00:32.236 ERROR (SyncWorker_38) [custom_components.tuya_cloud_map_extractor.tuya_vacuum_map_extractor.main] Unsupported data type. Include the following data in a github issue to request the data format to be added: 200b'eyJkYXRhIjp7IkFsbG93Rm9yYmlkQXJlYSI6dHJ1ZSwiYXJlYSI6W10sImF1dG9BcmVhSWQiOjAsImJhc2U2NF9sZW4iOjM3MjgsImNoYXJnZUhhbmRsZVN0YXRlIjoibm90RmluZCIsImhlaWdodCI6MTI3LCJsejRfbGVuIjoyNzk0LCJtYXAiOiJIMzhCQVAvLy8vLy8vMFFmQUZJR2hxOEFmMzkvQUg4QS8vLy9vd0NEUWdEL2YvK2dBQStoQUlPQ0FQLy8vd0FBQVA4QkFBOUVBWDhFbWdBRUFnQVBvZ0FQRDJnQld3MmdBQTkvQUZzUEFnQU5CZG9CQmdJQUR6TUFDQWJOQUFieEF4TUFBUUFQTndBSUR3SUFKdytmQUFBTEtRTUJvQUlFWVFBRGl3QUtBZ0FSLzBVQUJyRUFEd0lBT1FGK0FBR1VBQWtDQUFCaEN5SUFmM3dBREFJQUNTa0FCd0lBRDVjQU9RWUNBQStmQUFJQlF3RWgvMzhKQUE4Q0FCVUdVd0FQQWdBNUR3OEJCeC8vb0FBY0JnVUNEd0lBT2craEFBa1Bvd0FiRHlRRFJBYVRBdzhDQUM4UEpBTkJENkFBakEvZ0FRc1BBZ0FMRFVFREQwQUJRQTgvQVRrUEl3TkJUUUQvZjM4SUFROENBQ1VIUUFFR05nVVB6d01zQXV3RUQrY0JLUVlDQUFLTkFBS2JBQVFXQUFJVUFBOENBQ2N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-26 19:00:32.237 ERROR (MainThread) [custom_components.tuya_cloud_map_extractor.config_flow] 'chargeHandlePos'
Traceback (most recent call last):
  File "/config/custom_components/tuya_cloud_map_extractor/config_flow.py", line 57, in async_step_user
    headers, image = await validate(self.hass, user_input)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_cloud_map_extractor/config_flow.py", line 214, in validate
    return await hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 154, in get_map
    raise e
  File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 144, in get_map
    header, mapDataArr = parse_map(response)
                         ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 31, in parse_map
    header, mapDataArr = decode_custom0(data)
                         ^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/custom0.py", line 45, in decode_custom0
    "pileX": data["data"]["chargeHandlePos"][0],
             ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'chargeHandlePos'
Wh1t3Rose commented 6 months ago

Solved. Redid map and resized rooms/sections. Issue resolved.