Fatal error: (unauthorized_client) Unauthorized client: `grant_type` is invalid

Bonjour @Mips,
Je reviens avec un nouveau problème avec le plugin. Depuis ce soir je vois que le démon ne se lance plus. J’ai constaté que le site de gardena API a changé et que mon application avec le code API avait disparu. J’en ai donc recrée un mais malgré la relance du démon, cela ne fonctionne pas. Je ne sais pas s’il y a un lien avec le nouveau site de Gardena.
Voici le log
Merci d’avance
Patrice

0000|[2022-06-09 23:27:41]INFO : Starting daemon
0001|[2022-06-09 23:27:41]INFO : Log level: info
0002|[2022-06-09 23:27:41]ERROR : Fatal error: (unauthorized_client) Unauthorized client: `grant_type` is invalid
0003|[2022-06-09 23:27:41]INFO : Shuting down
0004|[2022-06-09 23:29:00]INFO : Starting daemon
0005|[2022-06-09 23:29:00]INFO : Log level: info
0006|[2022-06-09 23:29:00]ERROR : Fatal error: (unauthorized_client) Unauthorized client: `grant_type` is invalid
0007|[2022-06-09 23:29:00]INFO : Shuting down
0008|[2022-06-09 23:30:05]INFO : Starting daemon
0009|[2022-06-09 23:30:05]INFO : Log level: info
0010|[2022-06-09 23:30:05]ERROR : Fatal error: (missing_token) Missing access token parameter.
0011|[2022-06-09 23:30:05]

peut être un indice, j’ai ce msg que je n’ai pas d’habitude …

le démon est nok, je relance et nok …

[2022-06-09 10:43:42][INFO] : Websocket connected
[2022-06-09 12:43:42][INFO] : Websocket connection close: (1001)-Going away
[2022-06-09 12:43:42][INFO] : Restarting websocket...
[2022-06-09 12:43:42][INFO] : Websocket connection close: (1001)-Going away
[2022-06-09 12:43:42][INFO] : Restarting websocket...
[2022-06-09 12:43:42][ERROR] : error from callback <bound method WSClient._on_close of <gardena.ws_client.WSClient object at 0x7fb87185f3c8>>: (invalid_request) Simultaneous logins detected for client[id=d1a036d3-c719-4188-a221-2a623b4c4bfb], user[id=e58c2e4c-7855-4e47-9032-3110d4e5e671, email=sbonichon@sfr.fr}]
[2022-06-09 12:43:42][ERROR] : Websocket error: (invalid_request) Simultaneous logins detected for client[id=d1a036d3-c719-4188-a221-2a623b4c4bfb], user[id=e58c2e4c-7855-4e47-9032-3110d4e5e671, email=sbonichon@sfr.fr}]
[2022-06-09 12:43:42][INFO] : Restarting websocket...
[2022-06-09 12:43:43][INFO] : Websocket connected
[2022-06-09 12:43:43][INFO] : Websocket connected
[2022-06-09 14:43:43][INFO] : Websocket connection close: (1001)-Going away
[2022-06-09 14:43:43][INFO] : Restarting websocket...
[2022-06-09 14:43:43][INFO] : Websocket connection close: (1001)-Going away
[2022-06-09 14:43:43][INFO] : Restarting websocket...
[2022-06-09 14:43:44][INFO] : Websocket connected
[2022-06-09 14:43:44][INFO] : Websocket connected
[2022-06-09 16:43:45][INFO] : Websocket connection close: (1001)-Going away
[2022-06-09 16:43:45][INFO] : Restarting websocket...
[2022-06-09 16:43:45][INFO] : Websocket connection close: (1001)-Going away
[2022-06-09 16:43:45][INFO] : Restarting websocket...
[2022-06-09 16:43:46][ERROR] : error from callback <bound method WSClient._on_close of <gardena.ws_client.WSClient object at 0x7fb87185f3c8>>: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:46][ERROR] : Websocket error: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:46][INFO] : Restarting websocket...
[2022-06-09 16:43:46][ERROR] : error from callback <bound method WSClient._on_close of <gardena.ws_client.WSClient object at 0x7fb87185f3c8>>: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:46][ERROR] : Websocket error: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:46][INFO] : Restarting websocket...
[2022-06-09 16:43:46][ERROR] : Websocket error: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:46][INFO] : Restarting websocket...
[2022-06-09 16:43:46][ERROR] : Websocket error: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:46][INFO] : Restarting websocket...
[2022-06-09 16:43:47][ERROR] : error from callback <bound method WSClient._on_error of <gardena.ws_client.WSClient object at 0x7fb87185f3c8>>: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:47][ERROR] : Websocket error: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:47][INFO] : Restarting websocket...
[2022-06-09 16:43:47][ERROR] : error from callback <bound method WSClient._on_error of <gardena.ws_client.WSClient object at 0x7fb87185f3c8>>: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:47][ERROR] : Websocket error: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:43:47][INFO] : Restarting websocket...
Exception in thread Thread-65:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 407, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 57, in _on_close
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 369, in run_forever
dispatcher.read(self.sock.sock, read, check)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 70, in read
if not read_callback():
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 337, in read
return teardown(frame)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 303, in teardown
self._callback(self.on_close, close_status_code, close_reason)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 412, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 407, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 371, in run_forever
self._callback(self.on_error, e)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 412, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
Exception in thread Thread-67:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 407, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 57, in _on_close
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 369, in run_forever
dispatcher.read(self.sock.sock, read, check)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 70, in read
if not read_callback():
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 337, in read
return teardown(frame)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 303, in teardown
self._callback(self.on_close, close_status_code, close_reason)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 412, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 407, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 371, in run_forever
self._callback(self.on_error, e)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 412, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 286, in <lambda>
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 338, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
r.raise_for_status()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.smart.gardena.dev/v1/websocket
[2022-06-09 16:55:29][INFO] : Shuting down
[2022-06-09 16:55:32][INFO] : Starting daemon
[2022-06-09 16:55:32][INFO] : Log level: info
[2022-06-09 16:55:32][INFO] : Authentication done
[2022-06-09 16:55:32][INFO] : updating locations
[2022-06-09 16:55:33][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 16:55:33][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 16:55:33][INFO] : Shuting down
[2022-06-09 17:00:09][INFO] : Starting daemon
[2022-06-09 17:00:09][INFO] : Log level: info
[2022-06-09 17:00:11][INFO] : Authentication done
[2022-06-09 17:00:11][INFO] : updating locations
[2022-06-09 17:00:12][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:00:12][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:00:12][INFO] : Shuting down
[2022-06-09 17:05:06][INFO] : Starting daemon
[2022-06-09 17:05:06][INFO] : Log level: info
[2022-06-09 17:05:13][INFO] : Authentication done
[2022-06-09 17:05:13][INFO] : updating locations
[2022-06-09 17:05:14][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:05:14][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:05:14][INFO] : Shuting down
[2022-06-09 17:10:06][INFO] : Starting daemon
[2022-06-09 17:10:06][INFO] : Log level: info
[2022-06-09 17:10:11][INFO] : Authentication done
[2022-06-09 17:10:11][INFO] : updating locations
[2022-06-09 17:10:11][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:10:11][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:10:11][INFO] : Shuting down
[2022-06-09 17:15:06][INFO] : Starting daemon
[2022-06-09 17:15:06][INFO] : Log level: info
[2022-06-09 17:15:12][INFO] : Authentication done
[2022-06-09 17:15:12][INFO] : updating locations
[2022-06-09 17:15:12][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:15:12][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:15:12][INFO] : Shuting down
[2022-06-09 17:20:07][INFO] : Starting daemon
[2022-06-09 17:20:07][INFO] : Log level: info
[2022-06-09 17:20:13][INFO] : Authentication done
[2022-06-09 17:20:13][INFO] : updating locations
[2022-06-09 17:20:13][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:20:13][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:20:13][INFO] : Shuting down
[2022-06-09 17:25:06][INFO] : Starting daemon
[2022-06-09 17:25:06][INFO] : Log level: info
[2022-06-09 17:25:12][INFO] : Authentication done
[2022-06-09 17:25:12][INFO] : updating locations
[2022-06-09 17:25:12][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:25:12][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:25:12][INFO] : Shuting down
[2022-06-09 17:30:08][INFO] : Starting daemon
[2022-06-09 17:30:08][INFO] : Log level: info
[2022-06-09 17:30:13][INFO] : Authentication done
[2022-06-09 17:30:13][INFO] : updating locations
[2022-06-09 17:30:14][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:30:14][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:30:14][INFO] : Shuting down
[2022-06-09 17:35:06][INFO] : Starting daemon
[2022-06-09 17:35:06][INFO] : Log level: info
[2022-06-09 17:35:10][INFO] : Authentication done
[2022-06-09 17:35:10][INFO] : updating locations
[2022-06-09 17:35:10][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:35:10][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:35:10][INFO] : Shuting down
[2022-06-09 17:40:07][INFO] : Starting daemon
[2022-06-09 17:40:07][INFO] : Log level: info
[2022-06-09 17:40:14][INFO] : Authentication done
[2022-06-09 17:40:14][INFO] : updating locations
[2022-06-09 17:40:14][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:40:14][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:40:14][INFO] : Shuting down
[2022-06-09 17:45:07][INFO] : Starting daemon
[2022-06-09 17:45:07][INFO] : Log level: info
[2022-06-09 17:45:15][INFO] : Authentication done
[2022-06-09 17:45:15][INFO] : updating locations
[2022-06-09 17:45:16][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:45:16][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:45:16][INFO] : Shuting down
[2022-06-09 17:50:06][INFO] : Starting daemon
[2022-06-09 17:50:06][INFO] : Log level: info
[2022-06-09 17:50:15][INFO] : Authentication done
[2022-06-09 17:50:15][INFO] : updating locations
[2022-06-09 17:50:15][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:50:15][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:50:15][INFO] : Shuting down
[2022-06-09 17:55:05][INFO] : Starting daemon
[2022-06-09 17:55:05][INFO] : Log level: info
[2022-06-09 17:55:12][INFO] : Authentication done
[2022-06-09 17:55:12][INFO] : updating locations
[2022-06-09 17:55:13][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:55:13][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:55:13][INFO] : Shuting down
[2022-06-09 17:58:57][INFO] : Starting daemon
[2022-06-09 17:58:57][INFO] : Log level: info
[2022-06-09 17:58:57][INFO] : Authentication done
[2022-06-09 17:58:57][INFO] : updating locations
[2022-06-09 17:58:57][ERROR] : 403:{'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:58:57][ERROR] : Fatal error: {'Message': 'User is not authorized to access this resource with an explicit deny'}
[2022-06-09 17:58:57][INFO] : Shuting down

le site de l’api gardena spécifié dans la fenêtre de paramétrage du plugin semble inaccessible …

Bonjour - idem chez moi avec cette erreur 403 et même message - je n’arrive plus à relancer le démon

Visiblement il y a eu des changements sur le portail Husqvarna : lorsque je me connecte il n’y a plus d’application sur mon compte … et si j’essaye de la re-créer il m’est demandé une URL de redirection (obligatoire) : quoi mettre ?

idem, je suis perdu mes 3 api ont disparues et je suis incapable d’en recréer une

j’ai essayé avec les info url et nom donnés sur le site une fois les api recrées, avec l’api key et la secret au l’api authentification mais le démon ne démarre pas

je suis là a mes limites …

Il y a eu un changement manifestement.
Étrange qu’ils n’aient pas communiqué à l’avance, c’est une api publique et on est enregistré chez eux.

Je vais regarder ajd.

Idem pour moi.
J’ai recréé mes clés API en entrant l’adresse externe de mon Jeedom (ne sachant pas quoi mettre dans url)
Mais pas moyen de relancer le demon

Merci Mips pour ton travail ! :smiley:

(re)bonjour à tous,

J’ai regroupé les sujets à propos de ce nouveau problème dans un nouveau sujet pour pouvoir mieux le suivre et ne pas encombrer les autres qui n’ont pas de liens avec celui-ci.

en bref:

  • nouveau flow d’authentifcation qui utilise uniquement le « client_id » et le « client_secret » (et donc plus votre email et mot de passe directement) => un petit peu plus sécurisé car le plugin ne doit plus connaitre votre mot de passe personnel; c’est juste dommage qu’il n’y ait pas eu une communication préalable de leur part histoire qu’on ne se retrouve pas bloqué un beau matin (s’ils ont fait une comm, je l’ai raté, désolé)
  • j’ai adapté le plugin ce matin et j’ai forcé le refresh sur le market en beta pour que vous puissiez tester et me faire un retour => chez moi, ca marche :stuck_out_tongue: (évidement)

edit: si vous créé une nouvelle application coté gardena, une url de redirection est obligatoire à présent, vous pouvez mettre la valeur que vous voulez, (mettez votre url jeedom externe ou juste http://localhost par exemple), ce paramètre n’est pas utilisé dans le type d’authentification utilisé par le plugin;

Bonjour,

Chez moi après installation de la dernière mise à jour Beta j’ai l’erreur « Le nom d’utilisateur n’est pas configuré » dans le cadre « Démon » alors que j’ai bien l’application key et l’application secret de renseigné.

Ah oui, j’ai oublié ce check, je corrige

par contre je viens de voir qu’ils ont de nouveau changé qlqch de leur coté, sur mon profil mon ancienne app jeedom est revenue et le plugin en stable se reconnecte…

Tout pareil !! :wink:

Nouvelle beta dispo;

j’avais oublié de préciser précédemment: vous pouvez mettre la valeur que vous voulez comme url de redirection, (mettez votre url jeedom externe ou http://localhost par exemple), ce paramètre n’est pas utilisé dans le type d’authentification utilisé par le plugin;
sur mon application précédente ils ont configuré d’eux-mêmes http://localhost:8080

J’ai également le paramétrage par défaut http://localhost:8080. Avec la dernière mise à jour tout semble fonctionner à nouveau !

Merci beaucoup.

Bonjour
Cela refonctionne de mon coté pour le robot Gardena mais pas pour le Husqvarna. @Mips, je ne sais pas si c’est le même problème que j’avais eu il y a quelques jours et que vous aviez résolu. J’ai fait une copie du log en mode info

0000|[2022-06-10 12:57:22]INFO : Starting daemon
0001|[2022-06-10 12:57:22]INFO : Log level: info
0002|[2022-06-10 12:57:22]INFO : Authentication done
0003|[2022-06-10 12:57:22]INFO : updating locations
0004|[2022-06-10 12:57:23]INFO : updating devices for location My Garden
0005|[2022-06-10 12:57:23]INFO : Websocket connected
0006|[2022-06-10 12:57:23]INFO : Syncing known devices with jeedom
0007|[2022-06-10 12:57:23]INFO : updating Husqvarna Automowers
0008|[2022-06-10 12:57:23]ERROR : 429:Limit Exceeded
0009|[2022-06-10 12:57:23]INFO : Syncing Husqvarna Automowers with jeedom
0010|[2022-06-10 12:57:23]INFO : Start listening
0011|[2022-06-10 12:57:24]INFO

J’ai essayé de le parker

0000|[2022-06-10 12:57:22]INFO : Starting daemon
0001|[2022-06-10 12:57:22]INFO : Log level: info
0002|[2022-06-10 12:57:22]INFO : Authentication done
0003|[2022-06-10 12:57:22]INFO : updating locations
0004|[2022-06-10 12:57:23]INFO : updating devices for location My Garden
0005|[2022-06-10 12:57:23]INFO : Websocket connected
0006|[2022-06-10 12:57:23]INFO : Syncing known devices with jeedom
0007|[2022-06-10 12:57:23]INFO : updating Husqvarna Automowers
0008|[2022-06-10 12:57:23]ERROR : 429:Limit Exceeded
0009|[2022-06-10 12:57:23]INFO : Syncing Husqvarna Automowers with jeedom
0010|[2022-06-10 12:57:23]INFO : Start listening
0011|[2022-06-10 12:57:24]INFO : Websocket connected
0012|[2022-06-10 12:58:01]ERROR : Unknown automower id: b4aa3b35-c0f1-4084-9570-58d8fcd9c529
0013|[2022-06-10 12:58:15]ERROR : Error parsing message: {"id":"b4aa3b35-c0f1-4084-9570-58d8fcd9c529","type":"positions-event","attributes":{"positions":[{"latitude":xxxxxxx,"longitude":xxxxxx}]}}
0014|[2022-06-10 12:58:15]ERROR : Error parsing message: {"id":"b4aa3b35-c0f1-4084-9570-58d8fcd9c529","type":"status-event","attributes":{"battery":{"batteryPercent":40},"mower":{"mode":"MAIN_AREA","activity":"MOWING","state":"IN_OPERATION","errorCode":0,"errorCodeTimestamp":0},"planner":{"nextStartTimestamp":0,"override":{"action":"IPLANNER_OVERRIDE_ACTION_NOT_ACTIVE"},"restrictedReason":"NOT_APPLICABLE"},"metadata":{"connected":true,"statusTimestamp":1654858694929}}}
0015|[2022-06-10 12:59:01]ERROR : Unknown automower id: b4aa3b35-c0f1-4084-9570-58d8fcd9c529

Tout fonctionne correctement en béta.
Quelle réactivité !!
Encore merci

1 « J'aime »

Générez une nouvelle clé et assurez-vous d’avoir bien lié l’api husqvarna
stoppez le démon, configuré la nouvelle clé + secret dans le plugin (si vous êtes en beta) et relancez le démon.

mais c’est un autre problème donc autre sujet si vous n’y arrivez pas svp

je confirme ça remarche avec la beta - merci !

Mise à jour disponible en stable

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.