Impossible de connecter le plugin à SmartThings

Bonjour,
Je n’arrive pas à initier la communication entre le plugin et SmartThings. Je fais mes essaies avec mon PC sur la connection 5G du téléphone. Le Jeedom est joignable de l’extérieur en https (derrière un HAproxy qui gère le https avec certificat letsencrypt). J’ai essayé la stable puis la béta. Quand je clique sur « se connecter », j’ai l’erreur « erreur lors de la récupération du jeton. ». Quand j’essaie plusieurs fois, les champs client ID et secret ID se remplissent. Quand je passe l’URL « redirect URL » dans un navigateur j’ai l’erreur « Identifiant de clef non valide, vous n’êtes pas autorisé à effectuer cette action »
J’ai relue la doc, regardé dans la communauté, je séche, si quelqu’un a une idée.
Merci

> [2025-10-01 17:05:03][DEBUG] : update : fin
> [2025-10-01 17:05:19][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=smartthings function=remove callInstallFunction=1
> [2025-10-01 17:05:56][INFO] : Début d'activation du plugin
> [2025-10-01 17:05:57][INFO] : Info sur le démon : {"launchable_message":"","launchable":"nok","state":"nok","log":"nok","auto":0}
> [2025-10-01 17:05:57][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=smartthings function=install callInstallFunction=1
> [2025-10-01 17:05:57][INFO] : Mise à jour des configs appareils
> [2025-10-01 17:06:03][INFO] : Fin de mise à jour des configs appareils
> [2025-10-01 17:06:46][DEBUG] : Début checkAndCreateApp
> [2025-10-01 17:06:46][DEBUG] : Étape 1 
> [2025-10-01 17:06:46][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps METHODE : GET
> [2025-10-01 17:06:47][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"items":[{"appName":"jeedom_plugin_smartthings1759330634","appId":"8ae3e0f0-acee-43bb-9ce3-91e4d3221ed7","appType":"API_ONLY","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","iconImage":{"url":"https://github.com/Flobul/Jeedom-SmartThings/raw/master/plugin_info/smartthings_icon.png"},"createdDate":"2025-10-01T14:57:15Z","lastUpdatedDate":"2025-10-01T14:57:15Z"}],"_links":{}}
> [2025-10-01 17:06:47][DEBUG] : checkAndCreateApp app already exists {"appName":"jeedom_plugin_smartthings1759330634","appId":"8ae3e0f0-acee-43bb-9ce3-91e4d3221ed7","appType":"API_ONLY","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","iconImage":{"url":"https:\/\/github.com\/Flobul\/Jeedom-SmartThings\/raw\/master\/plugin_info\/smartthings_icon.png"},"createdDate":"2025-10-01T14:57:15Z","lastUpdatedDate":"2025-10-01T14:57:15Z"}
> [2025-10-01 17:06:47][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/8ae3e0f0-acee-43bb-9ce3-91e4d3221ed7 METHODE : GET
> [2025-10-01 17:06:47][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1759330634","appId":"8ae3e0f0-acee-43bb-9ce3-91e4d3221ed7","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T14:57:15Z","lastUpdatedDate":"2025-10-01T14:57:15Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=r81dezHG8OdXguJFxY60TghloB7WuXE8TQjxbfQvqgu4oSgibpk8exfoIWqx5Oty","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:06:47][DEBUG] : checkAndCreateApp 1 $foundApp=8ae3e0f0-acee-43bb-9ce3-91e4d3221ed7 $sameApp=
> [2025-10-01 17:06:47][DEBUG] : checkAndCreateApp smartapp existe, mais différente
> [2025-10-01 17:06:47][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/8ae3e0f0-acee-43bb-9ce3-91e4d3221ed7 METHODE : DELETE
> [2025-10-01 17:06:47][DEBUG] : sendRequest - CODE : 200 RESPONSE : {}
> [2025-10-01 17:06:47][DEBUG] : checkAndCreateApp 2 $foundApp=
> [2025-10-01 17:06:47][DEBUG] : checkAndCreateApp smartapp n'existe pas
> [2025-10-01 17:06:47][DEBUG] : checkAndCreateApp body {"appName":"jeedom_plugin_smartthings1759331207","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://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm"]},"apiOnly":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm"}}
> [2025-10-01 17:06:47][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps METHODE : POST
> [2025-10-01 17:06:47][DEBUG] : ┌────────── Callback
> [2025-10-01 17:06:47][DEBUG] : │ apikey = 9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm
> [2025-10-01 17:06:47][DEBUG] : │ headers = {"content-type":"application\/json","accept":"application\/json","authorization":"Signature keyId=\"\/pl\/euwest1\/43-0c-41-b7-5c-13-e1-f6-26-1e-f3-d9-fa-dc-6e-71-56-2a-8d-47\",signature=\"dld94hr2rktj07iENeiRPK9b17bnzJb4fMtCO8uv53j9h0OaQCVQ6Pu00Cf2HWuPKijaTBp7Zdl3ZQnhkRZ1MNZT+UyFV6nq4ZUFAp8Suha3WEKKEIeMItsU3UvqFBYR0cZEVo9KBDoGjMuG33SbpkYeMyGPDY\/w1y\/MsFZG8vRWNQEOgGRVSJhDdBnlm1JbNIDGZG9HUN7+XqGG0sYrBW\/mYz6JcRiUcIc7RQ8DMq2Ee37pTnVgCDnXq6AbviCJRmlfAkWNrT7xeXUGbltoRelvngaDaoTdF6fH2qI+zJNx87zcrt5EeAcuuRSKUAPM8rTO8RuC5xk9YrpQEtjX6w==\",headers=\"(request-target) digest date\",algorithm=\"rsa-sha256\"","digest":"SHA256=8eTy\/lghuKRc2rYhmtKZLUWQ0mygWeRu4fmEFOuo1xk=","date":"Wed, 01 Oct 2025 15:06:47 UTC","x-st-correlation":"5027407226713206591","x-b3-traceid":"07549b836edc3a62","x-b3-spanid":"976a2b9c63c9e080","x-b3-parentspanid":"07549b836edc3a62","x-b3-sampled":"1","content-length":"252","host":"jeedom.XXX.xyz","user-agent":"AHC\/2.1"}
> [2025-10-01 17:06:47][DEBUG] : │ Données POST = {"messageType":"CONFIRMATION","confirmationData":{"appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","confirmationUrl":"https://api.smartthings.com/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6/confirm-registration?token=2bb234fb-3d69-4d21-93dd-474785837a54"}}
> [2025-10-01 17:06:48][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"app":{"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","appType":"API_ONLY","principalType":"LOCATION","classifications":["CONNECTED_SERVICE","AUTOMATION"],"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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:47Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}}},"oauthClientId":"398e790b-b86f-4a9b-803f-f0ef3d384361","oauthClientSecret":"19633d4f-e976-4f88-b231-0c5c064121e0"}
> [2025-10-01 17:06:48][DEBUG] : checkAndCreateApp $createApp {"app":{"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","appType":"API_ONLY","principalType":"LOCATION","classifications":["CONNECTED_SERVICE","AUTOMATION"],"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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:47Z","apiOnly":{"subscription":{"targetUrl":"https:\/\/jeedom.XXX.xyz\/plugins\/smartthings\/core\/php\/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}}},"oauthClientId":"398e790b-b86f-4a9b-803f-f0ef3d384361","oauthClientSecret":"19633d4f-e976-4f88-b231-0c5c064121e0"}
> [2025-10-01 17:06:48][DEBUG] : checkAndCreateApp 3 $foundApp=94218f36-3dfc-436e-a5c4-1c80ac712ff6
> [2025-10-01 17:06:48][DEBUG] : checkAndCreateApp  smartapp existe
> [2025-10-01 17:06:48][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6 METHODE : GET
> [2025-10-01 17:06:48][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:48Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:06:48][DEBUG] : checkAndCreateApp checkApp {"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:48Z","apiOnly":{"subscription":{"targetUrl":"https:\/\/jeedom.XXX.xyz\/plugins\/smartthings\/core\/php\/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:06:48][DEBUG] : Étape 2 
> [2025-10-01 17:06:48][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6/register METHODE : PUT
> [2025-10-01 17:06:48][DEBUG] : sendRequest - CODE : 202 RESPONSE : {}
> [2025-10-01 17:06:48][DEBUG] : ┌────────── Callback
> [2025-10-01 17:06:48][DEBUG] : │ apikey = 9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm
> [2025-10-01 17:06:48][DEBUG] : │ headers = {"content-type":"application\/json","accept":"application\/json","authorization":"Signature keyId=\"\/pl\/euwest1\/43-0c-41-b7-5c-13-e1-f6-26-1e-f3-d9-fa-dc-6e-71-56-2a-8d-47\",signature=\"iNH1g3BCvg66F4lMq8XVdIiEucJuGi0UYuw6\/0+btAKBSOHpns2uB44pdGc+spO9tOd1reXyC\/E\/H4xrP99BkHHmZep38vZGFtT7ft0ry2xYwUbTgnTDwdioplgtJqpwZLzUvON31vIUH35VL1B2MyFTNrj0r4OrOSlDZg0N2Zv9d2HDopaJXNv2igGv9dzTpKHFuE0tvRz4ZF\/OcQQcF+4HrbzJO8DYbWYu4NBixfxnsZDrC2mS7F6Ak1Fxzb\/iU7JWD6WQQkXtBvhlOk+CWipWGoO5Mm1aWwnbRB1MHsvEWn4nZBGIJNpSxB8shzFUaH7pWrV3+QQQdc+Uiez7kQ==\",headers=\"(request-target) digest date\",algorithm=\"rsa-sha256\"","digest":"SHA256=8eTy\/lghuKRc2rYhmtKZLUWQ0mygWeRu4fmEFOuo1xk=","date":"Wed, 01 Oct 2025 15:06:48 UTC","x-st-correlation":"4597878231288726550","x-b3-traceid":"3675dd043ed8bc11","x-b3-spanid":"a5e2987baefb60d6","x-b3-parentspanid":"3675dd043ed8bc11","x-b3-sampled":"1","content-length":"252","host":"jeedom.XXX.xyz","user-agent":"AHC\/2.1"}
> [2025-10-01 17:06:48][DEBUG] : │ Données POST = {"messageType":"CONFIRMATION","confirmationData":{"appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","confirmationUrl":"https://api.smartthings.com/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6/confirm-registration?token=2bb234fb-3d69-4d21-93dd-474785837a54"}}
> [2025-10-01 17:06:50][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6 METHODE : GET
> [2025-10-01 17:06:50][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:48Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:06:50][DEBUG] : authRequest registerApp  null
> [2025-10-01 17:07:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:07:02][DEBUG] : update : fin
> [2025-10-01 17:08:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:08:02][DEBUG] : update : fin
> [2025-10-01 17:08:09][DEBUG] : Début checkAndCreateApp
> [2025-10-01 17:08:09][DEBUG] : Étape 1 
> [2025-10-01 17:08:09][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps METHODE : GET
> [2025-10-01 17:08:09][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"items":[{"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","appType":"API_ONLY","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","iconImage":{"url":"https://github.com/Flobul/Jeedom-SmartThings/raw/master/plugin_info/smartthings_icon.png"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:48Z"}],"_links":{}}
> [2025-10-01 17:08:09][DEBUG] : checkAndCreateApp app already exists {"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","appType":"API_ONLY","classifications":["AUTOMATION","CONNECTED_SERVICE"],"displayName":"jeedom_plugin_smartthings","description":"SmartApp API_ONLY for Jeedom plugin.","iconImage":{"url":"https:\/\/github.com\/Flobul\/Jeedom-SmartThings\/raw\/master\/plugin_info\/smartthings_icon.png"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:48Z"}
> [2025-10-01 17:08:09][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6 METHODE : GET
> [2025-10-01 17:08:09][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1759331207","appId":"94218f36-3dfc-436e-a5c4-1c80ac712ff6","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:06:47Z","lastUpdatedDate":"2025-10-01T15:06:48Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:08:09][DEBUG] : checkAndCreateApp 1 $foundApp=94218f36-3dfc-436e-a5c4-1c80ac712ff6 $sameApp=1
> [2025-10-01 17:08:09][DEBUG] : checkAndCreateApp smartapp existe, mais différente
> [2025-10-01 17:08:09][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/94218f36-3dfc-436e-a5c4-1c80ac712ff6 METHODE : DELETE
> [2025-10-01 17:08:09][DEBUG] : sendRequest - CODE : 200 RESPONSE : {}
> [2025-10-01 17:08:09][DEBUG] : checkAndCreateApp 2 $foundApp=
> [2025-10-01 17:08:09][DEBUG] : checkAndCreateApp smartapp n'existe pas
> [2025-10-01 17:08:09][DEBUG] : checkAndCreateApp body {"appName":"jeedom_plugin_smartthings1759331289","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://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm"]},"apiOnly":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm"}}
> [2025-10-01 17:08:09][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps METHODE : POST
> [2025-10-01 17:08:10][DEBUG] : ┌────────── Callback
> [2025-10-01 17:08:10][DEBUG] : │ apikey = 9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm
> [2025-10-01 17:08:10][DEBUG] : │ headers = {"content-type":"application\/json","accept":"application\/json","authorization":"Signature keyId=\"\/pl\/euwest1\/43-0c-41-b7-5c-13-e1-f6-26-1e-f3-d9-fa-dc-6e-71-56-2a-8d-47\",signature=\"Utalb6CJ599iQTgpE1h1gFe38YRniT1AJMApOHt8tIlvB+qrAvHeJaxeOTvXMPLdzfwoutumKDGeGYk3Gbc8QjY48yNVbpMyaVaSqYEJbtgTQvHFkdpULtMQiZZWvLbM94kkRpWoA0IQtAT1ePilfkVjAG3x6PupMCxDIp035zBjpZzhL0kFFaamtZ8tskgqkwBbLzHSPOJAJoAsoSTW3lKB0\/zyK05VIGfEzIXyRa56lpi8h7QP2UOjTVbO9HJ1iQbvnh\/v\/aERFgGSxT3etyN0QzMhp6CNup9fkxNxNN6nsFhLN6xUQcToQF88khWbZlwRRwd1SEWIxu8pEEIcyw==\",headers=\"(request-target) digest date\",algorithm=\"rsa-sha256\"","digest":"SHA256=Yj13um67h+osrIV3q4l7TKVVZYceO4N\/UNHQMivTFzk=","date":"Wed, 01 Oct 2025 15:08:09 UTC","x-st-correlation":"1261571965909099198","x-b3-traceid":"fb77f04e0710d3ab","x-b3-spanid":"f7a84b4ec0d0bbc9","x-b3-parentspanid":"fb77f04e0710d3ab","x-b3-sampled":"1","content-length":"252","host":"jeedom.XXX.xyz","user-agent":"AHC\/2.1"}
> [2025-10-01 17:08:10][DEBUG] : │ Données POST = {"messageType":"CONFIRMATION","confirmationData":{"appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","confirmationUrl":"https://api.smartthings.com/apps/e94d71e8-c376-4fb9-a004-bb09508d59b0/confirm-registration?token=08329ee1-730e-47b4-9863-59a1612ff143"}}
> [2025-10-01 17:08:10][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"app":{"appName":"jeedom_plugin_smartthings1759331289","appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","appType":"API_ONLY","principalType":"LOCATION","classifications":["CONNECTED_SERVICE","AUTOMATION"],"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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:08:09Z","lastUpdatedDate":"2025-10-01T15:08:09Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}}},"oauthClientId":"adb848b4-3a38-4d22-a651-2ad87d89ea89","oauthClientSecret":"fc2e5471-4103-438d-852b-f69b47029a34"}
> [2025-10-01 17:08:10][DEBUG] : checkAndCreateApp $createApp {"app":{"appName":"jeedom_plugin_smartthings1759331289","appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","appType":"API_ONLY","principalType":"LOCATION","classifications":["CONNECTED_SERVICE","AUTOMATION"],"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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:08:09Z","lastUpdatedDate":"2025-10-01T15:08:09Z","apiOnly":{"subscription":{"targetUrl":"https:\/\/jeedom.XXX.xyz\/plugins\/smartthings\/core\/php\/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}}},"oauthClientId":"adb848b4-3a38-4d22-a651-2ad87d89ea89","oauthClientSecret":"fc2e5471-4103-438d-852b-f69b47029a34"}
> [2025-10-01 17:08:10][DEBUG] : checkAndCreateApp 3 $foundApp=e94d71e8-c376-4fb9-a004-bb09508d59b0
> [2025-10-01 17:08:10][DEBUG] : checkAndCreateApp  smartapp existe
> [2025-10-01 17:08:10][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/e94d71e8-c376-4fb9-a004-bb09508d59b0 METHODE : GET
> [2025-10-01 17:08:11][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1759331289","appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:08:09Z","lastUpdatedDate":"2025-10-01T15:08:10Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:08:11][DEBUG] : checkAndCreateApp checkApp {"appName":"jeedom_plugin_smartthings1759331289","appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:08:09Z","lastUpdatedDate":"2025-10-01T15:08:10Z","apiOnly":{"subscription":{"targetUrl":"https:\/\/jeedom.XXX.xyz\/plugins\/smartthings\/core\/php\/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:08:11][DEBUG] : Étape 2 
> [2025-10-01 17:08:11][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/e94d71e8-c376-4fb9-a004-bb09508d59b0/register METHODE : PUT
> [2025-10-01 17:08:11][DEBUG] : sendRequest - CODE : 202 RESPONSE : {}
> [2025-10-01 17:08:11][DEBUG] : ┌────────── Callback
> [2025-10-01 17:08:11][DEBUG] : │ apikey = 9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm
> [2025-10-01 17:08:11][DEBUG] : │ headers = {"content-type":"application\/json","accept":"application\/json","authorization":"Signature keyId=\"\/pl\/euwest1\/43-0c-41-b7-5c-13-e1-f6-26-1e-f3-d9-fa-dc-6e-71-56-2a-8d-47\",signature=\"YvSRi37ZUCwSyqE\/1bFUo7CAouiJQWluB53+rBcB8szOzJiUVZHDdI2hs6jTuiBZcsx2nG+r+hseGSCH01WFzNQoSMAm\/I+R5HVLfSmJAifj02vP+\/mSRRiDp7VsjehaOrrQkmfLYTAQxxucIBz46RWVLUuYAnHanFqyR3DWlVpuw1w+hAcAL7tKhJWX0GbggE8EflriYMG+oaLdYNnye4WxVBbxmtQ8zVT9axaj6afFmATc8XdIhMgt8Ds8DyZr9VlkL1gLz3jBTcqh6Wuy7LWgtVW6dDnZz2czXD0e4UOWAKUdkLlmi2g7c8pGHxRw+2LTXJDZcf5z6v2TbtKrbg==\",headers=\"(request-target) digest date\",algorithm=\"rsa-sha256\"","digest":"SHA256=Yj13um67h+osrIV3q4l7TKVVZYceO4N\/UNHQMivTFzk=","date":"Wed, 01 Oct 2025 15:08:11 UTC","x-st-correlation":"7463201883531098178","x-b3-traceid":"b540d76b78460b21","x-b3-spanid":"17e01d2979409f51","x-b3-parentspanid":"b540d76b78460b21","x-b3-sampled":"1","content-length":"252","host":"jeedom.XXX.xyz","user-agent":"AHC\/2.1"}
> [2025-10-01 17:08:11][DEBUG] : │ Données POST = {"messageType":"CONFIRMATION","confirmationData":{"appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","confirmationUrl":"https://api.smartthings.com/apps/e94d71e8-c376-4fb9-a004-bb09508d59b0/confirm-registration?token=08329ee1-730e-47b4-9863-59a1612ff143"}}
> [2025-10-01 17:08:13][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/e94d71e8-c376-4fb9-a004-bb09508d59b0 METHODE : GET
> [2025-10-01 17:08:13][DEBUG] : sendRequest - CODE : 200 RESPONSE : {"appName":"jeedom_plugin_smartthings1759331289","appId":"e94d71e8-c376-4fb9-a004-bb09508d59b0","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":"e5416c2a-5953-f78a-ace2-6e4bb8d760d7"},"createdDate":"2025-10-01T15:08:09Z","lastUpdatedDate":"2025-10-01T15:08:10Z","apiOnly":{"subscription":{"targetUrl":"https://jeedom.XXX.xyz/plugins/smartthings/core/php/callback.php?apikey=9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm","targetStatus":"PENDING"}},"ui":{"pluginUri":"","dashboardCardsEnabled":false,"preInstallDashboardCardsEnabled":false}}
> [2025-10-01 17:08:13][DEBUG] : authRequest registerApp  null
> [2025-10-01 17:09:03][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:09:03][DEBUG] : update : fin
> [2025-10-01 17:09:38][DEBUG] : ┌────────── Callback
> [2025-10-01 17:09:38][DEBUG] : │ apikey = 9rOeo3ILUAO5RTGEdheZCP9Zqtv6m2eqLLfWAccUOda79xkM3EKXGlaKdwPRZXqm
> [2025-10-01 17:09:38][DEBUG] : │ headers = {"host":"jeedom.XXX.xyz","user-agent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko\/20100101 Firefox\/143.0","accept":"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8","accept-language":"fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3","accept-encoding":"gzip, deflate, br, zstd","cookie":"registerDevice=34286f4f4cf9927df8990a05a2b1e7aa3f3806fd26efcb10632a55be2cdf6c94070a31772f94aaaafc2f6efc2964f27301e721e77263056fc85cdfffa9666ae2-ubqbLyXriwknEvATFD1NL0VDlaT44Zc7XITf5CtkbOlijbQ6NTqO9EaYMT3mr08L; PHPSESSID=krs8njn4kt4a5v0abr7cdvcee9ni5dc7uj290170qhnn2equllarmivt3p5g1tdf","upgrade-insecure-requests":"1","sec-fetch-dest":"document","sec-fetch-mode":"navigate","sec-fetch-site":"none","sec-fetch-user":"?1","priority":"u=0, i"}
> [2025-10-01 17:09:38][DEBUG] : │ Données POST = 
> [2025-10-01 17:10:03][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:10:03][DEBUG] : update : fin
> [2025-10-01 17:11:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:11:02][DEBUG] : update : fin
> [2025-10-01 17:12:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:12:02][DEBUG] : update : fin
> [2025-10-01 17:13:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:13:02][DEBUG] : update : fin
> [2025-10-01 17:14:03][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:14:03][DEBUG] : update : fin
> [2025-10-01 17:15:04][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:15:04][DEBUG] : update : fin
> [2025-10-01 17:16:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:16:02][DEBUG] : update : fin
> [2025-10-01 17:17:02][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:17:03][DEBUG] : update : fin
> [2025-10-01 17:18:03][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:18:03][DEBUG] : update : fin
> [2025-10-01 17:19:03][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:19:03][DEBUG] : update : fin
> [2025-10-01 17:20:04][DEBUG] : update : Démarrage du cron */5 * * * *
> [2025-10-01 17:20:04][DEBUG] : update : fin
> [2025-10-01 17:20:53][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=smartthings function=remove callInstallFunction=1
> [2025-10-01 17:20:53][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=smartthings function=remove callInstallFunction=1
> [2025-10-01 17:20:57][INFO] : Début d'activation du plugin
> [2025-10-01 17:20:58][INFO] : Info sur le démon : {"launchable_message":"","launchable":"nok","state":"nok","log":"nok","auto":0}
> [2025-10-01 17:20:58][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=smartthings function=install callInstallFunction=1
> [2025-10-01 17:20:59][INFO] : Mise à jour des configs appareils
> [2025-10-01 17:21:06][INFO] : Fin de mise à jour des configs appareils

image

Salut,

Merci stp d’éditer ton message pour rendre les logs plus visibles car la c’est complexe à déchiffrer.
Voir si besoin : [Tuto] Logs en texte préformaté

Ta SmartApp, qui permet d’avoir des jetons d’accès, n’arrive pas à être confirmée. (et donc passer en Etape 3 : CONFIRMATION)
De ce que je vois, la requête n’est même pas reçue. On devrait voir des lignes successives commençant par :

┌────────── Callback
│ apikey = 
│ headers = 
│ keyId = 
│ data = "
│ appId = "
│ confirmationData = 
│ lifecycle/messageType =

et ça bloque ici :

 [2025-10-01 17:08:11][DEBUG] : sendRequest - URL : https://api.smartthings.com/v1/apps/e94d71e8-c376-4fb9-a004-bb09508d59b0/register METHODE : PUT
 [2025-10-01 17:08:11][DEBUG] : sendRequest - CODE : 202 RESPONSE : {}

La smartApp est pourtant bien créée et bien acceptée (202) par l’api.

Il devrait y avoir ensuite un appel depuis l’api vers ton jeedom, mais on ne voit rien.

C’est normal, ça.
Si tu testes ce lien via un accès externe, et que tu as le même résultat, c’est que ton jeedom est bien accessible depuis l’extérieur.