oven-lab / tuya_cloud_map_extractor

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

[BUG] - Map format not supported (LeJoy LD20) #49

Open thehullmeister opened 3 months ago

thehullmeister commented 3 months ago

Describe the bug Unsupported data type error messaging occurring when trying to setup device, following all instructions on the page.

To Reproduce Steps to reproduce the behavior:

  1. Follow instructions for new device setup as per here... https://github.com/oven-lab/tuya_cloud_map_extractor
  2. After entering all parameters into Add Integration, error message saying check logs appears.
  3. Review Logs, two entries showing a) Unsupported data type & b) Map version [21] is not supported.

Expected behavior Vacuum would be setup for map related feature.

Version: Core 2024.7.2 Supervisor 2024.08.0 Operating System 12.4 Frontend 20240710.0

Log entry FIRST LOG ENTRY: Logger: custom_components.tuya_cloud_map_extractor.tuya_vacuum_map_extractor.main Source: custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py:147 integration: Tuya Cloud Map Extractor (documentation, issues) First occurred: 21:58:38 (2 occurrences) Last logged: 21:58:58

Unsupported data type. Include the following data in a github issue to request the data format to be added: 200b'FXMABQA3AJ0AlgG4AFoBmwV8H/8BAP9FH/kBAAEPbAEPUPDw8PD5BQAHAgAPOAAQBy4ABgIAD28ADwYsAAcCAA83AFsPpAAOF/+bAAYCAA83ACMPNgAPDxQBAgAXAA8CAA0GmwAEAgAPMgANAQIABC0ABgIAARcADwIADQYvAAMvAg8xAA0CAgAALwAEAgAPVgIQAwIACpACDzgAFwRqAAICAA84ABYCLwAFAgAPjwIPAgIABTEAAwIADzgAFAMuAAUCAA83ACQChAAPAgAPCkwBH/AxAA8BAgAPNgAiKvn5NwABSgAPAgAPCjUAD6IAFgo3AA9nAA8CAgAPNgAjCjcAAkoADwIAEQg3AAJZBA/uARIGNwABxAIAogUPbgAcAGcADzcAEAIzBgWLAhLwEAABdQAPAgAJBqAABQIAAHEADwIADQ83ADgPpQARDW8AAeoAH/+qAA0BJgAIAgACEQAPNwAOCDMAAQIAAYAAD00BDAJcAAoCAAE4AAmUBw1ZA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G9yYWdlLXBlcm1hbmVudC50dXlhZXUuY29tLzQ3M2VhOS0yMjY0ODkxLXR1eWE2OWEyNTkwNDA4YzVmZDdkL2NvbW1vbi9yb3V0ZS9uYXYuYmluP0NDPWQ4NDhlZjc2MTJhMjRkNGM4YzVjZWY1MzhiOWMyMmJiJkNTPTQzMTM0OTA4Mzc1NjM2NThhODUwMjg2ODhhNTA3Y2FjYzIxMDMxN2NkYjk5YjEyMGQ5OTZjYTgyZTFkYmEwYWQmQ0U9MTcyMjk4MTUxNzM3MyZDQT1WMSZDUj0yJ31dLCAnc3VjY2Vzcyc6IFRydWUsICd0JzogMTcyMjk3NzkxNzM3NSwgJ3RpZCc6ICdhNmFiNmY2NjU0MzYxMWVmYjRhYWQ2M2NiNjUwNWVmOCd9' Thank you!

Unsupported data type. Include the following data in a github issue to request the data format to be added: 200b'FXMABQA3AJ0AlgG4AFoBmwV8H/8BAP9FH/kBAAEPbAEPUPDw8PD5BQAHAgAPOAAQBy4ABgIAD28ADwYsAAcCAA83AFsPpAAOF/+bAAYCAA83ACMPNgAPDxQBAgAXAA8CAA0GmwAEAgAPMgANAQIABC0ABgIAARcADwIADQYvAAMvAg8xAA0CAgAALwAEAgAPVgIQAwIACpACDzgAFwRqAAICAA84ABYCLwAFAgAPjwIPAgIABTEAAwIADzgAFAMuAAUCAA83ACQChAAPAgAPCkwBH/AxAA8BAgAPNgAiKvn5NwABSgAPAgAPCjUAD6IAFgo3AA9nAA8CAgAPNgAjCjcAAkoADwIAEQg3AAJZBA/uARIGNwABxAIAogUPbgAcAGcADzcAEAIzBgWLAhLwEAABdQAPAgAJBqAABQIAAHEADwIADQ83ADgPpQARDW8AAeoAH/+qAA0BJgAIAgACEQAPNwAOCDMAAQIAAYAAD00BDAJcAAoCAAE4AAmUBw1ZAQIjAAoCAAIUAAIGAAUCAAo6AAsdAAICAAEVAAEFAAYCAA83ABYAiAEDAgAAtAAJOAALVAACAgAPKAAACwIADzcAAgECAA+DAQoPNwAqDz0AAQ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9uYXYuYmluP0NDPWQ4NDhlZjc2MTJhMjRkNGM4YzVjZWY1MzhiOWMyMmJiJkNTPWNjOTg5OTYzNDMwMjk5MzgwMDdjYzliM2FhZTE0YzczYzYyYWE0MzljNWJiYzgxMzNkNThiZGFhYTZlYTE3NDUmQ0U9MTcyMjk4MTUzNzc3OCZDQT1WMSZDUj0yJ31dLCAnc3VjY2Vzcyc6IFRydWUsICd0JzogMTcyMjk3NzkzNzc4MCwgJ3RpZCc6ICdiMmRhMzk2NTU0MzYxMWVmYjRhYWQ2M2NiNjUwNWVmOCd9' Thank you!

SECOND LOG ENTRY: Logger: custom_components.tuya_cloud_map_extractor.config_flow Source: custom_components/tuya_cloud_map_extractor/config_flow.py:57 integration: Tuya Cloud Map Extractor (documentation, issues) First occurred: 21:58:38 (2 occurrences) Last logged: 21:58:58

Map version [21] is not supported. Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 974, in json return complexjson.loads(self.text, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/init.py", line 514, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 386, in decode obj, end = self.raw_decode(s) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 30, in parse_map data = response.json() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 978, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

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 41, in parse_map raise NotSupportedError("Map version " + str(header["version"]) +" is not supported.") custom_components.tuya_cloud_map_extractor.tuya_vacuum_map_extractor.const.NotSupportedError: Map version [21] is not supported.