Open gsmolamodzzz opened 1 month ago
Just checking you enabled the Sweeping Robot Open Service mentioned in the Prerequisites? Doing the below fixed it for me
The Tuya Sweeping Robot Open API added to the cloud platform (Main Menu -> Cloud -> Development - Service API and make sure to have Sweeping Robot Open Service added to the list of authorized services or the integration will not install and will return an "unknown" error).
I activated the service before I entered my data, unfortunately no success, the error message now alternates between "Unknwon error" and "('Request failed - Response: ', {'code': 28841002, 'msg': 'No permissions. Your subscription to cloud development plan has expired." However, with the second error message I don't know what that means, since Tuya offers its cloud service free of charge - at least in Europe
Yes, Tuya offers their cloud services for free, but only for six months at a time. It seems like your subscription has run out and you need to renew it.
After i renew my plan, i become this new error, and i dont what i make wrong, because i follow all steps of integration assistant. ('Request failed - Response: ', {'code': 60009001, 'msg': 'API permission package error. For the solution, see https://developer.tuya.com/en/docs/iot/authentication-method?id=Ka49gbaxjygox.', 'success': False, 't': 1716120137513, 'tid': 'a358757515d711ef9a8e62f092a4528b'})
This now seems like a duplicate of #37, and seems to be working again. Try setting up the integration again and see how it goes.
it still worked for a few minutes after re-try to integrate i become this error:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.tuya_cloud_map_extractor.config_flow Quelle: custom_components/tuya_cloud_map_extractor/config_flow.py:57 Integration: Tuya Cloud Map Extractor (Dokumentation, Probleme) Erstmals aufgetreten: 16:56:14 (1 Vorkommnisse) Zuletzt protokolliert: 16:56:14
not enough values to unpack (expected 2, got 1) Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 971, 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 47, in parse_path data = response.json() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 975, 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 192, in get_map raise e File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 189, in get_map path = parse_path(response, scale=scale, header=header) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 51, in parse_path path_data = decode_path_v1(data) ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/v1.py", line 111, in decode_path_v1 x, y = [_deal_pl(_highLowToInt(high, low)) for high, low in _partition(point, 2)] ^^^^ ValueError: not enough values to unpack (expected 2, got 1)
I'm guessing that time you tried to use "Show path", an issue is open for this #41
When you try to get the integration to work, you get an error message saying something went wrong and you should look at the logs, but the logs don't say anything and the data entered is all correct