Et si tu mets en scope dans la page de configuration du plugin (puis sauvegarde) :
r:hubs:* r:locations:* r:rules:* r:scenes:* x:devices:* w:rules:* w:locations:* w:devices:* r:devices:* x:locations:* x:scenes:*
Et si tu mets en scope dans la page de configuration du plugin (puis sauvegarde) :
r:hubs:* r:locations:* r:rules:* r:scenes:* x:devices:* w:rules:* w:locations:* w:devices:* r:devices:* x:locations:* x:scenes:*
ça ne change rien . tjs les mêmes logs à priori
et les logs s’arretent on dirait
j’avoue que je ne sais pas ce que je dois chercher..
C’est normal que ça échoue, ll faut refaire la connexion, vu que tu as modifié le scope.

Envoie-moi ensuite les logs de la connexion.
je refais la connexion à chaque fois que je modifie, je sauvegarde puis je fais la connexion, et j’ai un message orange « Erreur de récupération du jeton »
mais dans les logs j’ai pas de logs différents
Tu as forcément les logs « checkAndCreateApp »
</html>
[2026-02-16 17:53:15] DEBUG checkAndCreateApp $createApp null
[2026-02-16 17:53:15] DEBUG checkAndCreateApp 3 $foundApp=
[2026-02-16 17:54:03] DEBUG update : Démarrage du cron * * * * *
[2026-02-16 17:54:03] DEBUG getHealth : début
[2026-02-16 17:54:03] DEBUG sendRequest - URL : https://api.smartthings.com/v1/devices/20-a266-b31a4ad7d0e8/health METHODE : GET
[2026-02-16 17:54:04] DEBUG sendRequest - CODE : 401 RESPONSE : <html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>openresty</center>
</body>
</html>
j’ai ça effectivement
Il me manque l’étape 2 (juste avant) pour voir si erreur ou pas :
DEBUG checkAndCreateApp 2 $foundApp=
Mets le cron sur Jamais, vu que ça ne marche pas, ça évitera la pollution dans les logs, le temps de trouver ce qui bloque.
voilà j’ai mis cron sur jamais
et là j’ai l’étape 2
[2026-02-16 18:28:35] DEBUG Début checkAndCreateApp
[2026-02-16 18:28:35] DEBUG Étape 1
[2026-02-16 18:28:35] DEBUG sendRequest - URL : https://api.smartthings.com/v1/apps METHODE : GET
[2026-02-16 18:28:35] DEBUG sendRequest - CODE : 200 RESPONSE : {"items":[],"_links":{}}
[2026-02-16 18:28:35] DEBUG checkAndCreateApp 1 $foundApp= $sameApp=
[2026-02-16 18:28:35] DEBUG checkAndCreateApp 2 $foundApp=
[2026-02-16 18:28:35] DEBUG checkAndCreateApp smartapp n'existe pas
[2026-02-16 18:28:35] DEBUG checkAndCreateApp body {"appName":"jeedom_plugin_smartthings1771262915","displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","appType":"API_ONLY","singleInstance":false,"classifications":["CONNECTED_SERVICE","AUTOMATION"],"iconImage":{"url":"https://github.com/Flobul/Jeedom-SmartThings/raw/master/plugin_info/smartthings_icon.png"},"oauth":{"clientName":"my_jeedom","scope":["r:hubs:*","r:locations:*","r:rules:*","r:scenes:*","x:devices:*","w:rules:*","w:locations:*","w:devices:*","r:devices:*","x:locations:*","x:scenes:*"],"redirectUris":["https://xxxxxxx.eu.jeedom.link/plugins/smartthings/core/php/callback.php?apikey="]},"apiOnly":{"targetUrl":"https://xxxxxxx.eu.jeedom.link/plugins/smartthings/core/php/callback.php?apikey=p24uVJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv"}}
[2026-02-16 18:28:35] DEBUG sendRequest - URL : https://api.smartthings.com/v1/apps METHODE : POST
[2026-02-16 18:28:36] DEBUG ┌────────── Callback
[2026-02-16 18:28:36] DEBUG │ apikey = GMp24uVJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv
[2026-02-16 18:28:36] DEBUG │ headers = {"Host":"xxxxxxxx.eu.jeedom.link","X-Forwarded-Proto":"https","Connection":"Upgrade","Content-Length":"252","X-Real-IP":"xx.xx.xx.xx"4.249.143.135","Content-Type":"application\/json","Accept":"application\/json","Authorization":"Signature keyId=\"\/pl\/euwest1\/21-13-3c-7e-37-4d-be-b6-b5-9b-a0-28-11-48-8b-f4-1c-45-b3-98\",signature=\"rMrWladkvJyoV4mz\/IMHTSsZPqH7tRqY3pQzUA2Ca2ft3KRjWLL4DRyfH\/gFs73NDvuwirUfcSU\/YhNt\/OzwgGhzeFAVM+jmTP8eWBggB3PFLqHHny9VCOzFru+jCdJEmnu3wS0ZG7jjFPURLYfLa\/Un+qBtmUdE\/pIHKhn4W0Aptnn+Sig7pfgmDl7IxhhltYc599WLzy0K+jWWPRyUW2gCO2+qN3llPHj5Eec\/yJEIBj+k6SLHilseeXLXlwvQwvEvy7qhxGPCZ1rNSapHnXLi8K2GDfpCwf3\/ZknEhT9xp9AMwac4GJg30nLi7VIoB2HhZJs8G8e6va+Hh4YwKg==\",headers=\"(request-target) digest date\",algorithm=\"rsa-sha256\"","Digest":"SHA256=0MvMLiIyPgM9AytlM+qJLIp\/XKl3+CJiqEZWKF9dVZs=","Date":"Mon, 16 Feb 2026 17:28:35 UTC","X-ST-CORRELATION":"699353c30000000076007f81d8277f98","X-B3-TraceId":"dc77a94c79f57f14","X-B3-SpanId":"bc8827bf4647f113","X-B3-ParentSpanId":"dc77a94c79f57f14","X-B3-Sampled":"1","user-agent":"AHC\/2.1"}
[2026-02-16 18:28:36] DEBUG │ Données POST = {"messageType":"CONFIRMATION","confirmationData":{"appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","confirmationUrl":"https://api.smartthings.com/apps/cfe406c0-2468-44ea-aff6-5363a40f0a36/confirm-registration?token=1c8cd069-1e5a-4d1c-afbb-f0b8f09fa41d"}}
[2026-02-16 18:28:36] DEBUG │ keyId = /pl/euwest1/21-13-3c-7e-37-4d-be-b6-b5-9b-a0-28-11-48-8b-f4-1c-45-b3-98
[2026-02-16 18:28:36] DEBUG │ data = {"messageType":"CONFIRMATION","confirmationData":{"appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","confirmationUrl":"https:\/\/api.smartthings.com\/apps\/cfe406c0-2468-44ea-aff6-5363a40f0a36\/confirm-registration?token=1c8cd069-1e5a-4d1c-afbb-f0b8f09fa41d"}}
[2026-02-16 18:28:36] DEBUG │ appId = cfe406c0-2468-44ea-aff6-5363a40f0a36
[2026-02-16 18:28:36] DEBUG │ confirmationData = {"appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","confirmationUrl":"https:\/\/api.smartthings.com\/apps\/cfe406c0-2468-44ea-aff6-5363a40f0a36\/confirm-registration?token=1c8cd069-1e5a-4d1c-afbb-f0b8f09fa41d"}
[2026-02-16 18:28:36] DEBUG │ lifecycle/messageType = CONFIRMATION
[2026-02-16 18:28:36] DEBUG Étape 3
[2026-02-16 18:28:36] DEBUG │ data['confirmationData']['confirmationUrl'] https://api.smartthings.com/apps/cfe406c0-2468-44ea-aff6-5363a40f0a36/confirm-registration?token=1c8cd069-1e5a-4d1c-afbb-f0b8f09fa41d
[2026-02-16 18:28:37] DEBUG sendRequest - CODE : 200 RESPONSE : {"app":{"appName":"jeedom_plugin_smartthings1771262915","appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","appType":"API_ONLY","principalType":"LOCATION","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","singleInstance":false,"iconImage":{"url":"https://github.com/Flobul/Jeedom-SmartThings/raw/master/plugin_info/smartthings_icon.png"},"installMetadata":{},"owner":{"ownerType":"USER","ownerId":"88f30e19-b01b-1335-0f73-77f091b53b6d"},"createdDate":"2026-02-16T17:28:35Z","lastUpdatedDate":"2026-02-16T17:28:35Z","apiOnly":{"subscription":{"targetUrl":"https://xxxxxx.eu.jeedom.link/plugins/smartthings/core/php/callback.php?apikey=eNRrfH15Ks0MRPCsmIc4GMp24uVJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv","targetStatus":"PENDING"}}},"oauthClientId":"5f40ae39-28a2-4d92-be35-723f38b07ebd","oauthClientSecret":"a8e6f5d1-fcae-4aaf-aad4-5621f64e2fe8"}
[2026-02-16 18:28:37] DEBUG checkAndCreateApp $createApp {"app":{"appName":"jeedom_plugin_smartthings1771262915","appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","appType":"API_ONLY","principalType":"LOCATION","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","singleInstance":false,"iconImage":{"url":"https:\/\/github.com\/Flobul\/Jeedom-SmartThings\/raw\/master\/plugin_info\/smartthings_icon.png"},"installMetadata":[],"owner":{"ownerType":"USER","ownerId":"88f30e19-b01b-1335-0f73-77f091b53b6d"},"createdDate":"2026-02-16T17:28:35Z","lastUpdatedDate":"2026-02-16T17:28:35Z","apiOnly":{"subscription":{"targetUrl":"https:\/\/xxxxxxx.eu.jeedom.link\/plugins\/smartthings\/core\/php\/callback.php?apikey=eNRrfH15Ks0MRPCsmIc4GMp24uVJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv","targetStatus":"PENDING"}}},"oauthClientId":"5f40ae39-28a2-4d92-be35-723f38b07ebd","oauthClientSecret":"a8e6f5d1-fcae-4aaf-aad4-5621f64e2fe8"}
[2026-02-16 18:28:37] DEBUG checkAndCreateApp 3 $foundApp=cfe406c0-2468-44ea-aff6-5363a40f0a36
[2026-02-16 18:28:37] DEBUG checkAndCreateApp smartapp existe
[2026-02-16 18:28:37] DEBUG sendRequest - URL : https://api.smartthings.com/v1/apps/cfe406c0-2468-44ea-aff6-5363a40f0a36 METHODE : GET
[2026-02-16 18:28:37] DEBUG error {"targetUrl":"https://xxxxxxxx.eu.jeedom.link/plugins/smartthings/core/php/callback.php?apikey=eNRrfH15Ks0MRPCsmIc4GMp24uVJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv"} {"url":"https:\/\/api.smartthings.com\/apps\/cf6-5363a40f0a36\/confirm-registration?token=1c8cd069-1e5a-4d1c-afbb-f0b8f09fa41d","content_type":"application\/json","http_code":200,"header_size":215,"request_size":300,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.288576,"namelookup_time":0.016627,"connect_time":0.047371,"pretransfer_time":0.147139,"size_upload":0,"size_download":176,"speed_download":611,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0.287995,"redirect_time":0,"redirect_url":"","primary_ip":"63.34.55.173","certinfo":[],"primary_port":443,"local_ip":"xx.xx.xx.xx","local_port":59304,"http_version":2,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","appconnect_time_us":147006,"connect_time_us":47371,"namelookup_time_us":16627,"pretransfer_time_us":147139,"redirect_time_us":0,"starttransfer_time_us":287995,"total_time_us":288576}
[2026-02-16 18:28:37] DEBUG │ targetUrl = {"targetUrl":"https:\/\/xxxxxxx.eu.jeedom.link\/plugins\/smartthings\/core\/php\/callback.php?apikey=Mp24uVJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv"}
[2026-02-16 18:28:37] DEBUG sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1771262915","appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","appType":"API_ONLY","principalType":"LOCATION","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","singleInstance":false,"iconImage":{"url":"https://github.com/Flobul/Jeedom-SmartThings/raw/master/plugin_info/smartthings_icon.png"},"installMetadata":{},"owner":{"ownerType":"USER","ownerId":"88f30e19-b01b-1335-0f73-77f091b53b6d"},"createdDate":"2026-02-16T17:28:35Z","lastUpdatedDate":"2026-02-16T17:28:37Z","apiOnly":{"subscription":{"targetUrl":"https://xxxxxx.eu.jeedom.link/plugins/smartthings/core/php/callback.php?apikey=pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv","targetStatus":"CONFIRMED"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
[2026-02-16 18:28:37] DEBUG checkAndCreateApp checkApp {"appName":"jeedom_plugin_smartthings1771262915","appId":"cfe406c0-2468-44ea-aff6-5363a40f0a36","appType":"API_ONLY","principalType":"LOCATION","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","singleInstance":false,"iconImage":{"url":"https:\/\/github.com\/Flobul\/Jeedom-SmartThings\/raw\/master\/plugin_info\/smartthings_icon.png"},"installMetadata":[],"owner":{"ownerType":"USER","ownerId":"88f30e19-b01b-1335-0f73-77f091b53b6d"},"createdDate":"2026-02-16T17:28:35Z","lastUpdatedDate":"2026-02-16T17:28:37Z","apiOnly":{"subscription":{"targetUrl":"https:\/\/xxxxxxx.eu.jeedom.link\/plugins\/smartthings\/core\/php\/callback.php?apikey=VJVa9pH0yW3nFLqhKqQJZ7lBnVDGcLgt2fg9wv","targetStatus":"CONFIRMED"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
[2026-02-16 18:29:03] DEBUG update : Démarrage du cron never
[2026-02-16 18:29:03] DEBUG update : fin
ok j’ai refais un jeton tout enregistré j’ai toujours la mememe erreur, mais le log est plus fourni
du coup j’ai réactivé le cron « toutes les minutes » , et ça semble remarcher
Oh, ça a l’air bon.
Jeton d’accès et **Jeton de rafraîchissement ** se sont remplis.
Oui, j’ai vu que j’ai laissé une ligne dans les logs qui peut induire en erreur :
En fait, elle indique « error », mais c’est pas une erreur. Je modifie ça.
merci pour l’aide, car j’étais perdu !