(invalid_request) Blocked for too many login-attempts

Bonjour,

J’ai exactement le même problème. J’ai commencé avec l’erreur Handshake status 403 Forbidden, et j’ai maintenant le blockage pour « too many login-attempts »:

[2022-12-09 02:37:58][INFO] : Starting daemon
[2022-12-09 02:37:58][INFO] : Log level: info
[2022-12-09 02:37:58][ERROR] : Fatal error: (invalid_request) Blocked for too many login-attempts
[2022-12-09 02:37:58][INFO] : Shuting down
[2022-12-09 02:39:59][INFO] : Starting daemon
[2022-12-09 02:39:59][INFO] : Log level: info
[2022-12-09 02:39:59][ERROR] : Fatal error: (invalid_request) Blocked for too many login-attempts
[2022-12-09 02:39:59][INFO] : Shuting down

J’ai regénéré l’application secret, mais également sans succès…

Toujours délicat ce genre d’affirmation.

Déjà pourquoi ne pas fournir le log avec l’erreur que je puisse confirmer?

Quelle tondeuse avez-vous ?

Disons que j’ai eu au moins le même message, c’est en effet plus correct…

J’ai 2 systèmes d’arrosage Gardena et une tondeuse Husqvarna.

Voici les logs Gardena

[2022-12-09 02:37:54]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2022-12-09 02:37:55]INFO : Lancement démon
[2022-12-09 02:38:05]ERROR : Impossible de lancer le démon
[2022-12-09 02:39:55]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2022-12-09 02:39:56]INFO : Lancement démon
[2022-12-09 02:40:06]ERROR : Impossible de lancer le démon
[2022-12-09 02:45:12]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2022-12-09 02:45:13]INFO : Lancement démon
[2022-12-09 02:45:23]ERROR : Impossible de lancer le démon

et Gardena_demon

[2022-12-09 08:05:29][DEBUG] : Cancel websocket check
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:29][INFO] : Start listening
[2022-12-09 08:05:29][DEBUG] : Socket interface started
[2022-12-09 08:05:29][DEBUG] : LoopNetServer Thread started
[2022-12-09 08:05:29][DEBUG] : Listening on: [localhost:55070]
[2022-12-09 08:05:29][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:29][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:29][DEBUG] : Cancel websocket check
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:29][INFO] : Websocket connection close: (None)-None
[2022-12-09 08:05:29][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:29][DEBUG] : Cancel websocket check
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:29][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:29][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:29][DEBUG] : Cancel websocket check
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:29][INFO] : Websocket connection close: (None)-None
[2022-12-09 08:05:29][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:29][DEBUG] : Cancel websocket check
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:29][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:29][INFO] : Websocket connection close: (None)-None
[2022-12-09 08:05:29][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:29][DEBUG] : Cancel websocket check
[2022-12-09 08:05:29][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:29][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:30][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][DEBUG] : Cancel websocket check
[2022-12-09 08:05:30][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:30][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:30][INFO] : Websocket connection close: (None)-None
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][DEBUG] : Cancel websocket check
[2022-12-09 08:05:30][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:30][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:30][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][DEBUG] : Cancel websocket check
[2022-12-09 08:05:30][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:30][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:30][INFO] : Websocket connection close: (None)-None
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][DEBUG] : Cancel websocket check
[2022-12-09 08:05:30][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:30][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:30][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][DEBUG] : Cancel websocket check
[2022-12-09 08:05:30][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][ERROR] : Exception while starting husqvarna websocket:'NoneType' object has no attribute 'close'
[2022-12-09 08:05:30][DEBUG] : exception, restarting daemon...
[2022-12-09 08:05:30][DEBUG] : Send to jeedom :  {'daemon': 'start'}
[2022-12-09 08:05:30][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-09 08:05:30][DEBUG] : Checking websocket connection status in 30s...
[2022-12-09 08:05:30][INFO] : Websocket connection close: (None)-None
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][DEBUG] : Cancel websocket check
[2022-12-09 08:05:30][ERROR] : Exception while starting husqvarna websocket:'NoneType' object has no attribute 'close'
[2022-12-09 08:05:30][DEBUG] : exception, restarting daemon...
[2022-12-09 08:05:30][DEBUG] : Send to jeedom :  {'daemon': 'start'}
[2022-12-09 08:05:30][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:30][INFO] : Restarting husqvarna websocket...
[2022-12-09 08:05:30][ERROR] : Exception while starting husqvarna websocket:'NoneType' object has no attribute 'close'
[2022-12-09 08:05:30][DEBUG] : exception, restarting daemon...
[2022-12-09 08:05:30][DEBUG] : Send to jeedom :  {'daemon': 'start'}
[2022-12-09 08:05:30][ERROR] : Websocket error: Handshake status 403 Forbidden
[2022-12-09 08:05:32][INFO] : Starting daemon
[2022-12-09 08:05:32][INFO] : Log level: debug
[2022-12-09 08:05:32][DEBUG] : Socket port: 55070
[2022-12-09 08:05:32][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2022-12-09 08:05:32][DEBUG] : Init request module v2.27.1
[2022-12-09 08:05:32][INFO] : Starting daemon
[2022-12-09 08:05:32][INFO] : Log level: debug
[2022-12-09 08:05:32][DEBUG] : Socket port: 55070
[2022-12-09 08:05:32][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2022-12-09 08:05:32][DEBUG] : Init request module v2.27.1
[2022-12-09 08:05:32][ERROR] : Fatal error: (invalid_request) Simultaneous logins detected for client[id=XXXXX], user[id=XXXX, email=XXXX@XXX.com}]
[2022-12-09 08:05:32][INFO] : Shuting down
[2022-12-09 08:05:32][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2022-12-09 08:05:32][DEBUG] : Exit 0
[2022-12-09 08:05:32][ERROR] : Fatal error: (invalid_request) Simultaneous logins detected for client[id=XXXXX], user[id=XXXX, email=XXXX@XXX.com}]
[2022-12-09 08:05:32][INFO] : Shuting down
[2022-12-09 08:05:32][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2022-12-09 08:05:32][DEBUG] : Exit 0

Merci

Et vous êtes en stable je pense?

Le problème que vous avez (et du coup la conséquence Blocked for too many login-attempts) a été réglé en beta.

Bon pour le moment, vu que vous avez été bloqué, il faudra patienter quelques minutes/heures que le blocage ne soit plus effectif (je n’ai aucune idée du délai)

Je suis en stable en effet.

Après je ne tond et n’arrose pas trop en ce moment, donc je peux me permettre d’attendre un peu :slight_smile:

Je suis passé en beta, mais le compte est toujours bloqué - même après avoir laissé plusieurs semaines le demon désactivé…

[2023-01-04 07:53:16][INFO] : Starting daemon
[2023-01-04 07:53:16][INFO] : Log level: debug
[2023-01-04 07:53:16][DEBUG] : Socket port: 55070
[2023-01-04 07:53:16][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-04 07:53:16][DEBUG] : Init request module v2.27.1
[2023-01-04 07:53:17][ERROR] : Fatal error: (invalid_request) Simultaneous logins detected for client[id=894b7314-1b12-xxxxxxxxxx], user[id=1f27b7de-f050-4841-a767-xxxxxxxxxxxx, email=xxxx@xxxxxxxxx.com}]
[2023-01-04 07:53:17][INFO] : Shuting down
[2023-01-04 07:53:17][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2023-01-04 07:53:17][DEBUG] : Exit 0
[2023-01-04 07:53:17][ERROR] : Fatal error: (invalid_request) Simultaneous logins detected for client[id=894b7314-1b12-4fec-9d73-xxxxxxxxxxxx], user[id=1f27b7de-f050-4841-a767-xxxxxxxxxxxxx, email=xxxx@xxxxxxxxx.com}]
[2023-01-04 07:53:17][INFO] : Shuting down
[2023-01-04 07:53:17][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2023-01-04 07:53:17][DEBUG] : Exit 0
[2023-01-04 07:53:17][ERROR] : Fatal error: (invalid_request) Too many login-attempts for this user, please try again later
[2023-01-04 07:53:17][ERROR] : Fatal error: (invalid_request) Simultaneous logins detected for client[id=894b7314-1b12-4fec-xxxxxxxxxxxxxxxxx], user[id=1f27b7de-f050-4841-xxxxxxxxxxxxxxxxx, email=xxxx@xxxxxxxxx.com}]
[2023-01-04 07:53:17][INFO] : Shuting down
[2023-01-04 07:53:17][INFO] : Shuting down
[2023-01-04 07:53:17][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2023-01-04 07:53:17][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2023-01-04 07:53:17][DEBUG] : Exit 0
[2023-01-04 07:53:17][DEBUG] : Exit 0

Dois-je faire quelque chose du côté de Gardena pour supprimer cette erreur ?

Merci

Déjà on va commencer par créer un sujet en rapport avec le problème pour ne plus polluer le précédent


A ce que je vois, je ne pense pas que ce soit le log de la version beta.
Et il manque le début du log je pense, avez-vous tout donné?

Puis-je voir la page de config?

Bonjour @Mips,

Voici déjà la configuration :



J’avais pris une partie des logs, ils ne finissent pas…

Voici un log d’un cycle compet extrait à l’instant pour le Gardena_deamon :

[2023-01-05 09:51:52][INFO] : Starting daemon
[2023-01-05 09:51:52][INFO] : Log level: debug
[2023-01-05 09:51:52][DEBUG] : Socket port: 55070
[2023-01-05 09:51:52][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-05 09:51:52][DEBUG] : Init request module v2.27.1
[2023-01-05 09:51:52][INFO] : Authentication done
[2023-01-05 09:51:52][INFO] : updating locations
[2023-01-05 09:51:53][DEBUG] : opening websocket for location My Garden
[2023-01-05 09:51:53][DEBUG] : Connect Websocket to wss://ws-iapi.smart.gardena.dev/v1?auth=XXXXXX
[2023-01-05 09:51:53][DEBUG] : Checking websocket connection status in 30s...
[2023-01-05 09:51:53][INFO] : updating devices for location My Garden
[2023-01-05 09:51:54][INFO] : Websocket connected
[2023-01-05 09:51:54][INFO] : Syncing known devices with jeedom
[2023-01-05 09:51:54][DEBUG] : Send to jeedom :  {'smartsystem_location': {'id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'name': 'My Garden'}}
[2023-01-05 09:51:54][DEBUG] : new message received in Websocket: {"id":"75101ae2-9a50-49bd-b5a3-8bcf64b53efa","type":"LOCATION","relationships":{"devices":{"data":[{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"},{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}]}},"attributes":{"name":"GARDENA smart Garden"}}
[2023-01-05 09:51:54][DEBUG] : Received message LOCATION
[2023-01-05 09:51:54][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE","relationships":{"location":{"data":{"id":"75101ae2-9a50-49bd-b5a3-8bcf64b53efa","type":"LOCATION"}},"services":{"data":[{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"VALVE_SET"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1","type":"VALVE"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2","type":"VALVE"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3","type":"VALVE"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4","type":"VALVE"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5","type":"VALVE"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6","type":"VALVE"},{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"COMMON"}]}}}
[2023-01-05 09:51:54][DEBUG] : Received message DEVICE
[2023-01-05 09:51:54][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:54][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:54][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-05 09:51:54][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE","relationships":{"location":{"data":{"id":"75101ae2-9a50-49bd-b5a3-8bcf64b53efa","type":"LOCATION"}},"services":{"data":[{"id":"e08874de-792c-4800-8321-e46b146b494f:wc","type":"VALVE_SET"},{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"VALVE"},{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"COMMON"}]}}}
[2023-01-05 09:51:54][DEBUG] : Received message DEVICE
[2023-01-05 09:51:54][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-05 09:51:54][INFO] : updating Husqvarna Automowers
[2023-01-05 09:51:54][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"VALVE_SET","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"state":{"value":"OK","timestamp":"2022-09-07T21:23:17.075+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-09-07T21:23:17.075+00:00"}}}
[2023-01-05 09:51:54][DEBUG] : Received message VALVE_SET
[2023-01-05 09:51:54][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Clapet 1"},"activity":{"value":"CLOSED","timestamp":"2022-05-29T10:42:22.327+00:00"},"state":{"value":"UNAVAILABLE","timestamp":"2022-05-29T10:42:24.587+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-29T10:42:22.550+00:00"}}}
[2023-01-05 09:51:55][DEBUG] : Received message VALVE
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Pente"},"activity":{"value":"CLOSED","timestamp":"2022-08-21T18:44:57.076+00:00"},"state":{"value":"OK","timestamp":"2022-08-21T18:00:00.117+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-08-21T18:00:00.117+00:00"}}}
[2023-01-05 09:51:55][DEBUG] : Received message VALVE
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Jardins japonais"},"activity":{"value":"CLOSED","timestamp":"2022-10-04T19:04:57.076+00:00"},"state":{"value":"OK","timestamp":"2022-10-04T19:00:00.100+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-10-04T19:00:00.100+00:00"}}}
[2023-01-05 09:51:55][DEBUG] : Received message VALVE
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][INFO] : Syncing Husqvarna Automowers with jeedom
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'husqvarna_automower': {'id': 'd80ca80e-fa7d-4336-80ab-9af073d4e9b5', 'type': 'mower', 'name': 'Automower', 'model_type': 'HUSQVARNA AUTOMOWER® 450X', 'serial': 170903891, 'battery_level': 99, 'battery_type': 'Rechargeable', 'mode': 'MAIN_AREA', 'activity': 'NOT_APPLICABLE', 'state': 'OFF', 'errorCode': 0, 'errorDesc': '', 'planner_nextStartTimestamp': 1665486000000, 'planner_override': {'action': 'NOT_ACTIVE'}, 'planner_restrictedReason': 'NOT_APPLICABLE', 'cuttingHeight': 9, 'headlight': {'mode': 'EVENING_AND_NIGHT'}, 'positions': '47.44071,7.0805666/47.4407016,7.0806183/47.4409166,7.0801133/47.4408416,7.0802466/47.440825,7.0802866/47.440905,7.080375/47.440875,7.0803066/47.4408683,7.0801083/47.440865,7.0802366/47.4408983,7.0802283/47.4408666,7.08033/47.44089,7.0803916/47.44089,7.0803933/47.4408466,7.0804483/47.4407616,7.080215/47.4407833,8.1234416/47.4407933,8.12345/47.440785,8.1234916/47.440785,8.12347/47.4407833,8.1234783/47.4407866,8.1234533/47.44078,8.1234616/47.44075,8.12345/47.44076,8.1234466/47.4407366,8.1234216/47.4407666,8.123445/47.4407683,8.123445/47.4407683,8.12348/47.4407783,8.12348/47.4407683,8.12346/47.440745,8.1234333/47.44074,8.12347/47.4408083,8.1234733/47.4407533,8.12342/47.440775,8.1234233/47.4407983,8.1234633/47.4407783,7.0799916/47.440775,8.1234316/47.4407866,8.12342/47.44073,7.079945/47.4407733,8.1234533/47.4407883,8.123475/47.4408133,8.1234833/47.4407716,8.1234383/47.4408083,7.080115/47.4408,8.1234566/47.4408583,8.12348/47.4407966,8.123445/47.4407783,8.1234616/47.44079,8.1234483', 'position': '47.44071,7.0805666', 'latitude': 47.44071, 'longitude': 7.0805666, 'connected': False, 'statusTimestamp': 1665319090298, 'calendarTasks': [{'start': 660, 'duration': 360, 'monday': (False,), 'tuesday': (True,), 'wednesday': (False,), 'thursday': (False,), 'friday': (True,), 'saturday': (False,), 'sunday': (False,)}]}}
[2023-01-05 09:51:55][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Gazon"},"activity":{"value":"CLOSED","timestamp":"2022-10-03T18:59:57.083+00:00"},"state":{"value":"OK","timestamp":"2022-10-03T18:45:00.099+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-10-03T18:45:00.099+00:00"}}}
[2023-01-05 09:51:55][DEBUG] : Received message VALVE
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][DEBUG] : Cancel websocket check
[2023-01-05 09:51:55][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2023-01-05 09:51:55][DEBUG] : Checking websocket connection status in 30s...
[2023-01-05 09:51:55][INFO] : Start listening
[2023-01-05 09:51:55][DEBUG] : Socket interface started
[2023-01-05 09:51:55][DEBUG] : LoopNetServer Thread started
[2023-01-05 09:51:55][DEBUG] : Listening on: [localhost:55070]
[2023-01-05 09:51:55][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Valve 5"},"activity":{"value":"CLOSED","timestamp":"2022-05-29T10:42:22.426+00:00"},"state":{"value":"UNAVAILABLE","timestamp":"2022-05-29T10:42:24.587+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-29T10:42:22.632+00:00"}}}
[2023-01-05 09:51:55][DEBUG] : Received message VALVE
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Valve 6"},"activity":{"value":"CLOSED","timestamp":"2022-05-29T10:42:22.447+00:00"},"state":{"value":"UNAVAILABLE","timestamp":"2022-05-29T10:42:24.587+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-29T10:42:22.652+00:00"}}}
[2023-01-05 09:51:55][DEBUG] : Received message VALVE
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:55][ERROR] : Websocket error: Handshake status 403 Forbidden
[2023-01-05 09:51:55][DEBUG] : calling on error callback
[2023-01-05 09:51:55][DEBUG] : exception, restarting daemon...
[2023-01-05 09:51:55][DEBUG] : Send to jeedom :  {'daemon': 'start'}
[2023-01-05 09:51:56][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"COMMON","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Irrigation Control"},"batteryState":{"value":"NO_BATTERY"},"rfLinkLevel":{"value":50,"timestamp":"2022-10-04T19:22:58.127+00:00"},"serial":{"value":"00043825"},"modelType":{"value":"GARDENA smart Irrigation Control"},"rfLinkState":{"value":"ONLINE"}}}
[2023-01-05 09:51:56][DEBUG] : Received message COMMON
[2023-01-05 09:51:56][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-05 09:51:56][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f:wc","type":"VALVE_SET","relationships":{"device":{"data":{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}}},"attributes":{"state":{"value":"OK","timestamp":"2022-05-14T08:57:30.605+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-14T08:57:30.605+00:00"}}}
[2023-01-05 09:51:56][DEBUG] : Received message VALVE_SET
[2023-01-05 09:51:56][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-05 09:51:56][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f","type":"VALVE","relationships":{"device":{"data":{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}}},"attributes":{"name":{"value":"jardin Aromatique"},"activity":{"value":"CLOSED","timestamp":"2022-10-04T06:19:56.867+00:00"},"state":{"value":"OK","timestamp":"2022-05-14T08:57:30.353+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-14T08:57:30.353+00:00"}}}
[2023-01-05 09:51:56][DEBUG] : Received message VALVE
[2023-01-05 09:51:56][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-05 09:51:56][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f","type":"COMMON","relationships":{"device":{"data":{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}}},"attributes":{"name":{"value":"jardin Aromatique"},"batteryLevel":{"value":41,"timestamp":"2022-10-03T06:15:00.221+00:00"},"batteryState":{"value":"OK","timestamp":"2022-10-03T06:15:00.221+00:00"},"rfLinkLevel":{"value":70,"timestamp":"2022-10-03T22:31:18.731+00:00"},"serial":{"value":"00106982"},"modelType":{"value":"GARDENA smart Water Control"},"rfLinkState":{"value":"ONLINE"}}}
[2023-01-05 09:51:56][DEBUG] : Received message COMMON
[2023-01-05 09:51:56][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-05 09:51:58][DEBUG] : Signal 15 caught, exiting...
[2023-01-05 09:51:58][INFO] : Shuting down
[2023-01-05 09:51:58][INFO] : Websocket connection close: (None)-None

Ces messages se répètent en boucle…

Merci

Passes le loglevel en INFO au lieu de DEBUG ca suffira pour ce cas et ca permettra d’avoir moins de log.

Pour cette erreur 403 la première chose à faire est de renouveler la clé api chez husqvarna.
C’est dû à un changement de leur côté et c’est dans leur documentation (que tu n’es pas sensé connaître, pas de soucis avec ça)

Bonjour,

Pour moi le même problème persiste même après un renouvellement du secret et une reconnexion des API.

Je n’ai pas trouvé un moyen de renouveller l’API (seul le secret peut être renouvellé). J’ai donc créé une nouvelle application jeedom-2 (je suppose qu’avoir deux applications n’est pas un problème ?), mais le problème reste le même, après avoir relancé dépendances et démon:

[2023-01-05 11:52:41]ERROR : Websocket error: Handshake status 403 Forbidden
[2023-01-05 11:52:43]INFO : Shuting down
[2023-01-05 11:52:43]INFO : Websocket connection close: (None)-None
[2023-01-05 11:52:48]INFO : Starting daemon
[2023-01-05 11:52:48]INFO : Log level: info
[2023-01-05 11:52:49]INFO : Authentication done
[2023-01-05 11:52:49]INFO : updating locations
[2023-01-05 11:52:50]INFO : updating devices for location My Garden
[2023-01-05 11:52:50]INFO : Websocket connected
[2023-01-05 11:52:50]INFO : Syncing known devices with jeedom
[2023-01-05 11:52:50]INFO : updating Husqvarna Automowers
[2023-01-05 11:52:51]INFO : Syncing Husqvarna Automowers with jeedom
[2023-01-05 11:52:51]INFO : Start listening
[2023-01-05 11:52:51]ERROR : Websocket error: Handshake status 403 Forbidden
[2023-01-05 11:52:53]INFO : Shuting down
[2023-01-05 11:52:58]INFO : Starting daemon
[2023-01-05 11:52:58]INFO : Log level: info
[2023-01-05 11:52:59]INFO : Authentication done
[2023-01-05 11:52:59]INFO : updating locations
[2023-01-05 11:52:59]INFO : updating devices for location My Garden
[2023-01-05 11:53:00]INFO : Websocket connected
[2023-01-05 11:53:00]INFO : Syncing known devices with jeedom
[2023-01-05 11:53:00]INFO : updating Husqvarna Automowers
[2023-01-05 11:53:01]INFO : Syncing Husqvarna Automowers with jeedom
[2023-01-05 11:53:01]INFO : Start listening
[2023-01-05 11:53:01]ERROR : Websocket error: Handshake status 403 Forbidden
[2023-01-05 11:53:02]INFO : Shuting down
[2023-01-05 11:53:02]INFO : Websocket connection close: (None)-None
[2023-01-05 11:55:10]INFO : Starting daemon
[2023-01-05 11:55:10]INFO : Log level: info
[2023-01-05 11:55:10]INFO : Authentication done
[2023-01-05 11:55:10]INFO : updating locations
[2023-01-05 11:55:11]INFO : updating devices for location My Garden
[2023-01-05 11:55:11]INFO : Websocket connected
[2023-01-05 11:55:12]INFO : Syncing known devices with jeedom
[2023-01-05 11:55:12]INFO : updating Husqvarna Automowers
[2023-01-05 11:55:12]INFO : Syncing Husqvarna Automowers with jeedom
[2023-01-05 11:55:12]INFO : Start listening
[2023-01-05 11:55:13]ERROR : Websocket error: Handshake status 403 Forbidden

J’ai avancé sur le problème de @laurent.da-col et je vais mettre en ligne un nouvelle beta avec un log supplémentaire dans le cas de cette erreur, cela permettra déjà de vérifier si c’est bien le même problème ou pas.

edit: donc avec la beta qui sera en ligne demain, il faudra mettre le log en debug et me montrer le log, il devrait y avoir des lignes comme celles-ci avec un aperçu du contenu du token (tout peut être copier/coller tel quel, le contenu est déjà tronqué):

[2023-01-05 17:55:38]INFO : Starting daemon
[2023-01-05 17:55:38]INFO : Log level: debug
[2023-01-05 17:55:38]DEBUG : Socket port: 55070
[2023-01-05 17:55:38]DEBUG : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-05 17:55:38]DEBUG : Init request module v2.27.1
[2023-01-05 17:55:39]DEBUG : token content:
[2023-01-05 17:55:39]DEBUG : # access_token: eyJhbGciOi...
[2023-01-05 17:55:39]DEBUG : # user_id: 2040c268-d...
[2023-01-05 17:55:39]DEBUG : # scope: ['iam:read', 'amc:api']
[2023-01-05 17:55:39]DEBUG : # expires_in: 86399
[2023-01-05 17:55:39]DEBUG : # expires_at: 1673024138.0547998
[2023-01-05 17:55:39]DEBUG : # token_type: Bearer
[2023-01-05 17:55:39]DEBUG : # provider: husqvarna
[2023-01-05 17:55:39]INFO : Authentication done
[2023-01-05 17:55:39]INFO : updating Husqvarna Automowers
1 « J'aime »

J’ai reçu la mise à jour.

Voici les logs pour l’API originale :

[2023-01-06 03:41:54][INFO] : Shuting down
[2023-01-06 03:41:57][INFO] : Starting daemon
[2023-01-06 03:41:57][INFO] : Log level: debug
[2023-01-06 03:41:57][DEBUG] : Socket port: 55070
[2023-01-06 03:41:57][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-06 03:41:57][DEBUG] : Init request module v2.27.1
[2023-01-06 03:41:57][DEBUG] : token content:
[2023-01-06 03:41:57][DEBUG] : # access_token: eyJhbGciOi...
[2023-01-06 03:41:57][DEBUG] : # user_id: 1f27b7de-f...
[2023-01-06 03:41:57][DEBUG] : # scope: ['iam:read', 'amc:api', 'sg-integration-api:read', 'sg-integration-api:write']
[2023-01-06 03:41:57][DEBUG] : # expires_in: 86399
[2023-01-06 03:41:57][DEBUG] : # expires_at: 1673059316.9289758
[2023-01-06 03:41:57][DEBUG] : # token_type: Bearer
[2023-01-06 03:41:57][DEBUG] : # provider: husqvarna
[2023-01-06 03:41:57][INFO] : Authentication done
[2023-01-06 03:41:57][INFO] : updating locations
[2023-01-06 03:41:58][DEBUG] : opening websocket for location My Garden
[2023-01-06 03:41:58][DEBUG] : Signal 15 caught, exiting...
[2023-01-06 03:41:58][INFO] : Shuting down
[2023-01-06 03:41:58][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2023-01-06 03:41:58][DEBUG] : Exit 0

Ainsi que pour la seconde API que j’ai créée (j’ai enlevé une partie des codes qui renvoient toutes les infos, on voit que c’est différent dans ce cas):

[2023-01-06 03:45:41][INFO] : Shuting down
[2023-01-06 03:45:41][INFO] : Websocket connection close: (None)-None
[2023-01-06 03:45:47][INFO] : Starting daemon
[2023-01-06 03:45:47][INFO] : Log level: debug
[2023-01-06 03:45:47][DEBUG] : Socket port: 55070
[2023-01-06 03:45:47][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-06 03:45:47][DEBUG] : Init request module v2.27.1
[2023-01-06 03:45:47][DEBUG] : token content:
[2023-01-06 03:45:47][DEBUG] : # access_token: eyJhbGciOi...
[2023-01-06 03:45:47][DEBUG] : # user_id: 1f27b7de-f...
[2023-01-06 03:45:47][DEBUG] : # scope: ['sg-integration-api:read', 'iam:read', 'sg-integration-api:write', 'amc:api']
[2023-01-06 03:45:47][DEBUG] : # expires_in: 86399
[2023-01-06 03:45:47][DEBUG] : # expires_at: 1673059546.528409
[2023-01-06 03:45:47][DEBUG] : # token_type: Bearer
[2023-01-06 03:45:47][DEBUG] : # provider: husqvarna
[2023-01-06 03:45:47][INFO] : Authentication done
[2023-01-06 03:45:47][INFO] : updating locations
[2023-01-06 03:45:47][DEBUG] : opening websocket for location My Garden

(...)

[2023-01-06 03:45:49][ERROR] : Websocket error: Handshake status 403 Forbidden
[2023-01-06 03:45:49][DEBUG] : calling on error callback
[2023-01-06 03:45:49][DEBUG] : exception, restarting daemon...
[2023-01-06 03:45:49][DEBUG] : Send to jeedom :  {'daemon': 'start'}

(...)

[2023-01-06 03:45:50][DEBUG] : Received message COMMON
[2023-01-06 03:45:50][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-06 03:45:50][DEBUG] : ...and calling onFailure
[2023-01-06 03:45:51][INFO] : Shuting down
[2023-01-06 03:45:51][INFO] : Websocket connection close: (None)-None
[2023-01-06 03:45:51][DEBUG] : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2023-01-06 03:45:51][DEBUG] : LoopNetServer Thread stopped
[2023-01-06 03:45:51][DEBUG] : Exit 0

Dans le premier log il manque le début de nouveau je pense, il doit y avoir un 403 aussi au-dessus.

je ne sais pas pourquoi dans ton scope tu as 'sg-integration-api:read', 'sg-integration-api:write' mais je pense qu’à priori ca ne gênes pas.

Je voulais surtout vérifier si tu avais 'iam:read', 'amc:api' ce qui est le cas.
J’ai l’impression qu’il y a aussi un problème sur ton compte chez husqvarna du coup, Il faudrait que tu contactes leur support avec ton compte (il y a un lien « contact us » dans le bas de la page) et que tu leur transmettes cette info:

  • que l’authentification fonctionne
  • les appels api fonctionnent
  • que tu as renouvelé l’api key comme demandé dans le cas d’erreur 403
  • que le scope du token reçu correspond à ce qui est attendu (tu peux leur transmettre ce log)

et que malgré ça tu recois un 403 lors de la connexion au websocket

S’ils pouvaient expliquer pourquoi ou corriger la config chez eux ca serait idéal.

1 « J'aime »

Merci beaucoup. Je viens d’envoyer un email.

Je voudrais encore souligner que j’apprécie vraiment le temps consacré pour le support par @Mips. Je sais que c’est beaucoup de travail, et surtout quand il faut guider des utilisateurs pas encore très au fait sur l’environnement jeedom (comme moi…)

Je vous tient au courant

1 « J'aime »

Voici la réponse reçue de Gardena/Husqvarna…

I could not detect any blocking of your account, so far everything looks OK. Might it be that the way you’re opening the websocket connection or polling (?) the GARDENA smart system API is generating very high request volumes causing that issue?

Donc à priori compte pas bloqué, mais cela ne fonctionne toujours pas…

Les logs sont toujours les mêmes :

[2023-01-10 03:05:00][INFO] : Starting daemon
[2023-01-10 03:05:00][INFO] : Log level: debug
[2023-01-10 03:05:00][DEBUG] : Socket port: 55070
[2023-01-10 03:05:00][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-10 03:05:00][DEBUG] : Init request module v2.27.1
[2023-01-10 03:05:00][DEBUG] : token content:
[2023-01-10 03:05:00][DEBUG] : # access_token: eyJhbGciOi...
[2023-01-10 03:05:00][DEBUG] : # user_id: 1f27b7de-f...
[2023-01-10 03:05:00][DEBUG] : # scope: ['sg-integration-api:read', 'iam:read', 'sg-integration-api:write', 'amc:api']
[2023-01-10 03:05:00][DEBUG] : # expires_in: 86399
[2023-01-10 03:05:00][DEBUG] : # expires_at: 1673402699.9667323
[2023-01-10 03:05:00][DEBUG] : # token_type: Bearer
[2023-01-10 03:05:00][DEBUG] : # provider: husqvarna
[2023-01-10 03:05:00][INFO] : Authentication done
[2023-01-10 03:05:00][INFO] : updating locations
[2023-01-10 03:05:01][DEBUG] : opening websocket for location My Garden
[2023-01-10 03:05:02][DEBUG] : Connect Websocket to wss://ws-iapi.smart.gardena.dev/v1?auth=XXXXXXXXXXXXXX
[2023-01-10 03:05:02][DEBUG] : Checking websocket connection status in 30s...
[2023-01-10 03:05:02][INFO] : updating devices for location My Garden
[2023-01-10 03:05:02][INFO] : Websocket connected
(...)
[2023-01-10 03:05:05][DEBUG] : Cancel websocket check
[2023-01-10 03:05:05][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2023-01-10 03:05:05][DEBUG] : Checking websocket connection status in 30s...
[2023-01-10 03:05:05][INFO] : Start listening
[2023-01-10 03:05:05][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"COMMON","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Irrigation Control"},"batteryState":{"value":"NO_BATTERY"},"rfLinkLevel":{"value":50,"timestamp":"2022-10-04T19:22:58.127+00:00"},"serial":{"value":"00043825"},"modelType":{"value":"GARDENA smart Irrigation Control"},"rfLinkState":{"value":"ONLINE"}}}
[2023-01-10 03:05:05][DEBUG] : Received message COMMON
[2023-01-10 03:05:05][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-10 03:05:05][DEBUG] : Socket interface started
[2023-01-10 03:05:05][DEBUG] : LoopNetServer Thread started
[2023-01-10 03:05:05][DEBUG] : Listening on: [localhost:55070]
[2023-01-10 03:05:05][ERROR] : Websocket error: Handshake status 403 Forbidden
[2023-01-10 03:05:05][DEBUG] : calling on error callback
[2023-01-10 03:05:05][DEBUG] : exception, restarting daemon...
[2023-01-10 03:05:05][DEBUG] : Send to jeedom :  {'daemon': 'start'}
[2023-01-10 03:05:05][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f:wc","type":"VALVE_SET","relationships":{"device":{"data":{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}}},"attributes":{"state":{"value":"OK","timestamp":"2022-05-14T08:57:30.605+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-14T08:57:30.605+00:00"}}}
[2023-01-10 03:05:05][DEBUG] : Received message VALVE_SET
[2023-01-10 03:05:05][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-10 03:05:05][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f","type":"VALVE","relationships":{"device":{"data":{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}}},"attributes":{"name":{"value":"jardin Aromatique"},"activity":{"value":"CLOSED","timestamp":"2022-10-04T06:19:56.867+00:00"},"state":{"value":"OK","timestamp":"2022-05-14T08:57:30.353+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-05-14T08:57:30.353+00:00"}}}
[2023-01-10 03:05:05][DEBUG] : Received message VALVE
[2023-01-10 03:05:05][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-10 03:05:06][DEBUG] : new message received in Websocket: {"id":"e08874de-792c-4800-8321-e46b146b494f","type":"COMMON","relationships":{"device":{"data":{"id":"e08874de-792c-4800-8321-e46b146b494f","type":"DEVICE"}}},"attributes":{"name":{"value":"jardin Aromatique"},"batteryLevel":{"value":41,"timestamp":"2022-10-03T06:15:00.221+00:00"},"batteryState":{"value":"OK","timestamp":"2022-10-03T06:15:00.221+00:00"},"rfLinkLevel":{"value":70,"timestamp":"2022-10-03T22:31:18.731+00:00"},"serial":{"value":"00106982"},"modelType":{"value":"GARDENA smart Water Control"},"rfLinkState":{"value":"ONLINE"}}}
[2023-01-10 03:05:06][DEBUG] : Received message COMMON
[2023-01-10 03:05:06][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': 'e08874de-792c-4800-8321-e46b146b494f', 'type': 'WATER_CONTROL', 'battery_level': 41, 'battery_state': 'OK', 'name': 'jardin Aromatique', 'rf_link_level': 70, 'rf_link_state': 'ONLINE', 'serial': '00106982', 'model_type': 'GARDENA smart Water Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'activity': 'CLOSED', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE', 'battery_type': '3x1.5V AA'}}
[2023-01-10 03:05:07][DEBUG] : Signal 15 caught, exiting...
[2023-01-10 03:05:07][INFO] : Shuting down
[2023-01-10 03:05:13][INFO] : Starting daemon
[2023-01-10 03:05:13][INFO] : Log level: debug
[2023-01-10 03:05:13][DEBUG] : Socket port: 55070
[2023-01-10 03:05:13][DEBUG] : PID file: /tmp/jeedom/gardena/deamon.pid
[2023-01-10 03:05:13][DEBUG] : Init request module v2.27.1
[2023-01-10 03:05:13][DEBUG] : token content:
[2023-01-10 03:05:13][DEBUG] : # access_token: eyJhbGciOi...
[2023-01-10 03:05:13][DEBUG] : # user_id: 1f27b7de-f...
[2023-01-10 03:05:13][DEBUG] : # scope: ['sg-integration-api:read', 'iam:read', 'sg-integration-api:write', 'amc:api']
[2023-01-10 03:05:13][DEBUG] : # expires_in: 86399
[2023-01-10 03:05:13][DEBUG] : # expires_at: 1673402712.5959127
[2023-01-10 03:05:13][DEBUG] : # token_type: Bearer
[2023-01-10 03:05:13][DEBUG] : # provider: husqvarna
[2023-01-10 03:05:13][INFO] : Authentication done
[2023-01-10 03:05:13][INFO] : updating locations
[2023-01-10 03:05:14][DEBUG] : opening websocket for location My Garden
[2023-01-10 03:05:14][DEBUG] : Connect Websocket to wss://ws-iapi.smart.gardena.dev/v1?auth=XXXXXXXXXXXX
[2023-01-10 03:05:14][DEBUG] : Checking websocket connection status in 30s...
[2023-01-10 03:05:14][INFO] : updating devices for location My Garden
[2023-01-10 03:05:14][INFO] : Websocket connected
[2023-01-10 03:05:15][INFO] : Syncing known devices with jeedom
(...)
[2023-01-10 03:05:15][DEBUG] : Received message VALVE
[2023-01-10 03:05:15][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-10 03:05:15][DEBUG] : Cancel websocket check
[2023-01-10 03:05:15][DEBUG] : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2023-01-10 03:05:15][DEBUG] : Checking websocket connection status in 30s...
[2023-01-10 03:05:15][INFO] : Start listening
[2023-01-10 03:05:15][DEBUG] : Socket interface started
[2023-01-10 03:05:15][DEBUG] : LoopNetServer Thread started
[2023-01-10 03:05:15][DEBUG] : Listening on: [localhost:55070]
[2023-01-10 03:05:15][DEBUG] : new message received in Websocket: {"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3","type":"VALVE","relationships":{"device":{"data":{"id":"3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1","type":"DEVICE"}}},"attributes":{"name":{"value":"Jardins japonais"},"activity":{"value":"CLOSED","timestamp":"2022-10-04T19:04:57.076+00:00"},"state":{"value":"OK","timestamp":"2022-10-04T19:00:00.100+00:00"},"lastErrorCode":{"value":"NO_MESSAGE","timestamp":"2022-10-04T19:00:00.100+00:00"}}}
[2023-01-10 03:05:15][DEBUG] : Received message VALVE
[2023-01-10 03:05:15][DEBUG] : Send to jeedom :  {'smartsystem_device': {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1', 'type': 'SMART_IRRIGATION_CONTROL', 'battery_level': 'N/A', 'battery_state': 'NO_BATTERY', 'name': 'Irrigation Control', 'rf_link_level': 50, 'rf_link_state': 'ONLINE', 'serial': '00043825', 'model_type': 'GARDENA smart Irrigation Control', 'location_id': '75101ae2-9a50-49bd-b5a3-8bcf64b53efa', 'state': 'OK', 'last_error': 'NO_MESSAGE', 'valves': [{'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:1', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Clapet 1', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:2', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Pente', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:3', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Jardins japonais', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:4', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Gazon', 'state': 'OK', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:5', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 5', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}, {'id': '3dc6608c-8b0d-4abd-b2a7-9db9c7a8dcc1:6', 'type': 'VALVE', 'activity': 'CLOSED', 'name': 'Valve 6', 'state': 'UNAVAILABLE', 'duration': 0, 'last_error': 'NO_MESSAGE'}]}}
[2023-01-10 03:05:15][ERROR] : Websocket error: Handshake status 403 Forbidden
[2023-01-10 03:05:15][DEBUG] : calling on error callback
[2023-01-10 03:05:15][DEBUG] : exception, restarting daemon...

Je vais envoyer les logs à Gardena/Husqvarna et demander de confirmer que mon compte ne soit pas bloqué…

Si vous avez une suggestion… :slight_smile:

C’est pas un « blocage » pour cause de trop de requête
C’est un problème de droit lors de l’ouverture du websocket sur husqvarna.
Le websocket sur gardena fonctionne.

Avant il y a eu le problème de trop de requêtes et on voyait les codes http 429 mais ce n’est plus le cas.

Créez une nouvelle api avec uniquement l’accès gardena et configurer la sur le plugin.
Désactivez husqvarna sur le plugin également je pense que le demon restera ok.

Effectivement je gère deux installations (une husqvarna et une autre gardena) sur lesquelles j’avais la même erreur et ce matin j’ai supprimé et recréé l’application API pour les deux installations et le problème a disparu pour l’installation Gardena. Elle subsiste pour Husqvarna mais je n’ai pas de réponse pour le moment à ma relance du support…

S’ils ne solutionnent pas assez vite, ce que je peux faire mais c’est un workaround, c’est une option pour activer/désactiver l’utilisation du websocket
ainsi le control via api fonctionnera mais il faudra faire des refresh manuels comme au début quand le websocket n’existait pas pour husqvarna avec la contrainte du max de requêtes par jour (donc un refresh toutes les 15min genre et pas sur toute la journée, faut que je retrouve la limite) au moins la démon tiendra et cela sera utilisable mais c’est moche… tout ca parce qu’ils ne savent pas dire quelle permission manque pour ouvrir le websocket

Pour ma part rien d’urgent pour le moment mon robot est en hivernage ! J’espère qu’ils se pencheront sur le problème…