Hello
J’ai supprimé le plugin. J’ai remis la version stable (j’étais passé en beta pensant que…)
Je lance les dépendances - OK
Je me connecte sur BMW pour recupérer client id et nom utilisateur - OK
Je me déconnecte du site BMW
Je sauvegarde la config du plugin dans jeedom => le demon démarre et j’ai ce log
[2026-06-13 08:27:05] INFO : Starting daemon (lib version 1.2.9) with log level: debug
[2026-06-13 08:27:05] DEBUG : Writing PID 133134 to /tmp/jeedom/myBMW/daemon.pid
[2026-06-13 08:27:05] INFO : Listening on 127.0.0.1:44074
[2026-06-13 08:27:05] INFO : Starting myBMW daemon...
[2026-06-13 08:27:05] INFO : Connecting to BMW MQTT Broker...
[2026-06-13 08:27:05] INFO : Send async started with a cycle of 0.5s
[2026-06-13 08:27:07] DEBUG : Received new message on socket
[2026-06-13 08:27:07] DEBUG : Close connection
[2026-06-13 08:27:07]WARNING : Will subscribe to topic 7881318f/+ after reconnect
[2026-06-13 08:27:08]WARNING : MQTT connection failed with code Bad user name or password
[2026-06-13 08:27:08]WARNING : Authentication failed — Refresh token required
[2026-06-13 08:27:08] DEBUG : Try sending to jeedom: {'event': 'refresh_token_required', 'reason': 'Bad user name or password'}
[2026-06-13 08:27:08]WARNING : Disconnected from MQTT broker (code DisconnectFlags(is_disconnect_packet_from_server=False))
[2026-06-13 08:27:08] DEBUG : Received new message on socket
[2026-06-13 08:27:08] DEBUG : Close connection
[2026-06-13 08:27:08]WARNING : Received no token data
[2026-06-13 08:27:22]WARNING : MQTT connection failed with code Bad user name or password
[2026-06-13 08:27:22]WARNING : Authentication failed — Refresh token required
[2026-06-13 08:27:22]WARNING : Disconnected from MQTT broker (code DisconnectFlags(is_disconnect_packet_from_server=False))
[2026-06-13 08:27:22] DEBUG : Try sending to jeedom: {'event': 'refresh_token_required', 'reason': 'Bad user name or password'}
[2026-06-13 08:27:22] DEBUG : Received new message on socket
[2026-06-13 08:27:22] DEBUG : Close connection
[2026-06-13 08:27:22]WARNING : Received no token data
[2026-06-13 08:27:45]WARNING : MQTT connection failed with code Bad user name or password
[2026-06-13 08:27:45]WARNING : Authentication failed — Refresh token required
[2026-06-13 08:27:45] DEBUG : Try sending to jeedom: {'event': 'refresh_token_required', 'reason': 'Bad user name or password'}
[2026-06-13 08:27:45]WARNING : Disconnected from MQTT broker (code DisconnectFlags(is_disconnect_packet_from_server=False))
[2026-06-13 08:27:45] DEBUG : Received new message on socket
[2026-06-13 08:27:45] DEBUG : Close connection
[2026-06-13 08:27:45]WARNING : Received no token data
Le log mybmw
[2026-06-13 08:20:34] DEBUG Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=myBMW function=post_plugin_install callInstallFunction=1
[2026-06-13 08:21:03] INFO Début d'activation du plugin
[2026-06-13 08:21:04] INFO Info sur le démon : {"log":"myBMW","state":"nok","launchable":"nok","launchable_message":"Gestion automatique d\u00e9sactiv\u00e9e","auto":"0","last_launch":"Inconnue"}
[2026-06-13 08:21:04] DEBUG Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=myBMW function=install callInstallFunction=1
[2026-06-13 08:27:05] DEBUG ┌─Command execution : getIdToken
[2026-06-13 08:27:05] DEBUG | ID Token :
[2026-06-13 08:27:05] DEBUG └─End of getting ID Token
[2026-06-13 08:27:05] DEBUG Lancement démon
[2026-06-13 08:27:05] DEBUG Command : /var/www/html/plugins/myBMW/core/class/../../resources/venv/bin/python3 /var/www/html/plugins/myBMW/resources/myBMW.py --loglevel debug --host customer.streaming-cardata.bmwgroup.com --port 9000 --username '7881318f' --password '' --socketport 44074 --callback http://127.0.0.1:80/plugins/myBMW/core/php/jeemyBMW.php --apikey zGoJhBd19LND5sZIl2WIIQzxQ2bbZhKz0iStOIEUeiJCKDuuAmcaFyPotwpDf3rV --pid /tmp/jeedom/myBMW/daemon.pid
[2026-06-13 08:27:05] DEBUG Test from daemon
[2026-06-13 08:27:07] DEBUG Send to daemon : {"apikey":"zGoJhBd19LND5sZIl2","action":"subscribe","param":"+"}
[2026-06-13 08:27:08] DEBUG Message received from daemon
[2026-06-13 08:27:08] DEBUG Message : {"event": "refresh_token_required", "reason": "Bad user name or password"}
[2026-06-13 08:27:08] DEBUG ┌─Command execution : getIdToken
[2026-06-13 08:27:08] DEBUG | ID Token :
[2026-06-13 08:27:08] DEBUG └─End of getting ID Token
[2026-06-13 08:27:08] DEBUG Send to daemon : {"apikey":"zGoJhBd19LND5sZIl2WIIQzxQ2bbZhKz0iStOIEUeiJCKDuuAmcaFyPotwpDf3rV","action":"refreshToken","param":null}
[2026-06-13 08:27:22] DEBUG Message received from daemon
[2026-06-13 08:27:22] DEBUG Message : {"event": "refresh_token_required", "reason": "Bad user name or password"}
[2026-06-13 08:27:22] DEBUG ┌─Command execution : getIdToken
[2026-06-13 08:27:22] DEBUG | ID Token :
[2026-06-13 08:27:22] DEBUG └─End of getting ID Token
[2026-06-13 08:27:22] DEBUG Send to daemon : {"apikey":"zGoJhBd19LND5sZIl2WIIQ","action":"refreshToken","param":null}
[2026-06-13 08:27:45] DEBUG Message received from daemon
[2026-06-13 08:27:45] DEBUG Message : {"event": "refresh_token_required", "reason": "Bad user name or password"}
[2026-06-13 08:27:45] DEBUG ┌─Command execution : getIdToken
[2026-06-13 08:27:45] DEBUG | ID Token :
[2026-06-13 08:27:45] DEBUG └─End of getting ID Token
[2026-06-13 08:27:45] DEBUG Send to daemon : {"apikey":"zGoJhBd19LND5sZIl2WII","action":"refreshToken","param":null}
[2026-06-13 08:28:28] DEBUG Message received from daemon
[2026-06-13 08:28:28] DEBUG Message : {"event": "refresh_token_required", "reason": "Bad user name or password"}
[2026-06-13 08:28:28] DEBUG ┌─Command execution : getIdToken
[2026-06-13 08:28:28] DEBUG | ID Token :
[2026-06-13 08:28:28] DEBUG └─End of getting ID Token
[2026-06-13 08:28:28] DEBUG Send to daemon : {"apikey":"zGoJhBd19LND5sZIl2WIIQ","action":"refreshToken","param":null}
Le demon étant vert J’ajoute un véhicule je renseigne les infos et sauvegardes
Dans le log bmw je vois cela
[2026-06-13 08:32:34] DEBUG Send to daemon : {"apikey":"zGoJhBd19LND5sZIl2WIIQ","action":"refreshToken","param":null}
[2026-06-13 08:32:58] DEBUG Add command Marque (LogicalId : brand)
[2026-06-13 08:32:58] DEBUG Add command Modèle (LogicalId : model)
[2026-06-13 08:32:58] DEBUG Add command Année (LogicalId : year)
[2026-06-13 08:32:58] DEBUG Add command Type (LogicalId : type)
[2026-06-13 08:32:58] DEBUG Add command Kilométrage (LogicalId : mileage)
[2026-06-13 08:32:58] DEBUG Add command Verrouillage (LogicalId : doorLockState)
[2026-06-13 08:32:58] DEBUG Add command Toutes les portes (LogicalId : allDoorsState)
[2026-06-13 08:32:58] DEBUG Add command Toutes les fenêtres (LogicalId : allWindowsState)
[2026-06-13 08:32:58] DEBUG Add command Porte Conducteur Avant (LogicalId : doorDriverFront)
[2026-06-13 08:32:58] DEBUG Add command Porte Conducteur Arrière (LogicalId : doorDriverRear)
[2026-06-13 08:32:58] DEBUG Add command Porte Passager Avant (LogicalId : doorPassengerFront)
[2026-06-13 08:32:58] DEBUG Add command Porte Passager Arrière (LogicalId : doorPassengerRear)
[2026-06-13 08:32:58] DEBUG Add command Fenêtre Conducteur Avant (LogicalId : windowDriverFront)
[2026-06-13 08:32:58] DEBUG Add command Fenêtre Conducteur Arrière (LogicalId : windowDriverRear)
[2026-06-13 08:32:58] DEBUG Add command Fenêtre Passager Avant (LogicalId : windowPassengerFront)
[2026-06-13 08:32:58] DEBUG Add command Fenêtre Passager Arrière (LogicalId : windowPassengerRear)
[2026-06-13 08:32:58] DEBUG Add command Coffre (LogicalId : trunk_state)
[2026-06-13 08:32:58] DEBUG Add command Capot Moteur (LogicalId : hood_state)
[2026-06-13 08:32:59] DEBUG Add command Toit ouvrant (LogicalId : moonroof_state)
[2026-06-13 08:32:59] DEBUG Add command Pression pneu avant gauche (LogicalId : tireFrontLeft_pressure)
[2026-06-13 08:32:59] DEBUG Add command Consigne pneu avant gauche (LogicalId : tireFrontLeft_target)
[2026-06-13 08:32:59] DEBUG Add command Pression pneu avant droit (LogicalId : tireFrontRight_pressure)
[2026-06-13 08:32:59] DEBUG Add command Consigne pneu avant droit (LogicalId : tireFrontRight_target)
[2026-06-13 08:32:59] DEBUG Add command Pression pneu arrière gauche (LogicalId : tireRearLeft_pressure)
[2026-06-13 08:32:59] DEBUG Add command Consigne pneu arrière gauche (LogicalId : tireRearLeft_target)
[2026-06-13 08:32:59] DEBUG Add command Pression pneu arrière droit (LogicalId : tireRearRight_pressure)
[2026-06-13 08:32:59] DEBUG Add command Consigne pneu arrière droit (LogicalId : tireRearRight_target)
[2026-06-13 08:32:59] DEBUG Add command Etat de la charge (LogicalId : chargingStatus)
[2026-06-13 08:32:59] DEBUG Add command Etat de la prise (LogicalId : connectorStatus)
[2026-06-13 08:32:59] DEBUG Add command Km restant (électrique) (LogicalId : beRemainingRangeElectric)
[2026-06-13 08:32:59] DEBUG Add command Charge restante (LogicalId : chargingLevelHv)
[2026-06-13 08:32:59] DEBUG Add command Heure de fin de charge (LogicalId : chargingEndTime)
[2026-06-13 08:32:59] DEBUG Add command Objectif de recharge (LogicalId : chargingTarget)
[2026-06-13 08:32:59] DEBUG Add command Limite courant de charge (LogicalId : acCurrentLimit)
[2026-06-13 08:32:59] DEBUG Add command Limitation courant de charge (LogicalId : isAcCurrentLimitActive)
[2026-06-13 08:32:59] DEBUG Add command Km restant (thermique) (LogicalId : beRemainingRangeFuelKm)
[2026-06-13 08:32:59] DEBUG Add command Carburant restant (LogicalId : remaining_fuel)
[2026-06-13 08:32:59] DEBUG Add command Messages (LogicalId : vehicleMessages)
[2026-06-13 08:32:59] DEBUG Add command Coordonnées GPS (LogicalId : gps_coordinates)
[2026-06-13 08:32:59] DEBUG Add command Rafraichir (LogicalId : refresh)
[2026-06-13 08:32:59] DEBUG Add command Climatiser (LogicalId : climateNow)
[2026-06-13 08:32:59] DEBUG Add command Stop Climatiser (LogicalId : stopClimateNow)
[2026-06-13 08:32:59] DEBUG Add command Charger (LogicalId : chargeNow)
[2026-06-13 08:32:59] DEBUG Add command Stop Charger (LogicalId : stopChargeNow)
[2026-06-13 08:32:59] DEBUG Add command Verrouiller (LogicalId : doorLock)
[2026-06-13 08:32:59] DEBUG Add command Déverrouiller (LogicalId : doorUnlock)
[2026-06-13 08:32:59] DEBUG Add command Appel de phares (LogicalId : lightFlash)
[2026-06-13 08:32:59] DEBUG Add command Klaxonner (LogicalId : hornBlow)
[2026-06-13 08:32:59] DEBUG Add command Recherche véhicule (LogicalId : vehicleFinder)
[2026-06-13 08:32:59] DEBUG Add command Envoi POI (LogicalId : sendPOI)
[2026-06-13 08:32:59] DEBUG Add command Dernière mise à jour (LogicalId : lastUpdate)
[2026-06-13 08:32:59] DEBUG Add command Statut climatiser (LogicalId : climateNow_status)
[2026-06-13 08:32:59] DEBUG Add command Statut stop climatiser (LogicalId : stopClimateNow_status)
[2026-06-13 08:32:59] DEBUG Add command Statut charger (LogicalId : chargeNow_status)
[2026-06-13 08:32:59] DEBUG Add command Statut stop charger (LogicalId : stopChargeNow_status)
[2026-06-13 08:32:59] DEBUG Add command Statut verrouiller (LogicalId : doorLock_status)
[2026-06-13 08:32:59] DEBUG Add command Statut déverrouiller (LogicalId : doorUnlock_status)
[2026-06-13 08:32:59] DEBUG Add command Statut appel de phares (LogicalId : lightFlash_status)
[2026-06-13 08:32:59] DEBUG Add command Statut klaxonner (LogicalId : hornBlow_status)
[2026-06-13 08:32:59] DEBUG Add command Statut recherche véhicule (LogicalId : vehicleFinder_status)
[2026-06-13 08:32:59] DEBUG Add command Statut envoi POI (LogicalId : sendPOI_status)
[2026-06-13 08:32:59] DEBUG Add command Présence domicile (LogicalId : presence)
[2026-06-13 08:32:59] DEBUG Add command Distance domicile (LogicalId : distance)
[2026-06-13 08:32:59] DEBUG Add command Charge électrique totale (LogicalId : totalEnergyCharged)
[2026-06-13 08:32:59] DEBUG Add command Coût électrique total (LogicalId : totalEnergyCost)
[2026-06-13 08:32:59] DEBUG Add command Sessions de charge (LogicalId : chargingSessions)
[2026-06-13 08:32:59] DEBUG Add command Staistiques de conduite (LogicalId : drivingStats)
[2026-06-13 08:32:59] DEBUG Add command Trajets (LogicalId : trips)
La je clique sur authentification, je m’identifie sur bm avec un reussit qui apparait
revenant sur jeedom en bas a droite j’ai en rouge erreur los de la recuperation des tokens
Dans le log j’ai
[2026-06-13 08:36:04] DEBUG ┌─Command execution : authenticate
[2026-06-13 08:36:04] DEBUG | Brand : BMW - Connection car vin : WBA21 with client ID : e4d0d60b
[2026-06-13 08:36:04] DEBUG | Result Authentication Stage 1 - getDeviceCode() : {"user_code":"CTcXTwKC","device_code":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJodHRwczovL2Zvcmdlcm9jay1ncmVlbi5wcm","interval":5,"verification_uri":"https://customer.bmwgroup.com/oneid/link","expires_in":300}
[2026-06-13 08:36:11] DEBUG | Result Authentication Stage 2 - getTokens() : {"error_description":"The user has not yet completed authorization","error":"authorization_pending"}
[2026-06-13 08:36:16] DEBUG | Result Authentication Stage 2 - getTokens() : {"error_description":"The user has not yet completed authorization","error":"authorization_pending"}
[2026-06-13 08:36:21] DEBUG | Result Authentication Stage 2 - getTokens() : {"error_description":"The user has not yet completed authorization","error":"authorization_pending"}
[2026-06-13 08:36:26] DEBUG | Result Authentication Stage 2 - getTokens() : {"error_description":"The user has not yet completed authorization","error":"authorization_pending"}
[2026-06-13 08:36:32] DEBUG | Result Authentication Stage 2 - getTokens() : {"error_description":"The user has not yet completed authorization","error":"authorization_pending"}
[2026-06-13 08:36:37] DEBUG | Result Authentication Stage 2 - getTokens() : {"error_description":"The user has not yet completed authorization","error":"authorization_pending"}
[2026-06-13 08:36:42] DEBUG | Result Authentication Stage 2 - getTokens() : {"fault":{"faultstring":"Invalid Access Token","detail":{"errorcode":"keymanagement.service.invalid_access_token"}}}
[2026-06-13 08:36:42] DEBUG | Result Authentication : tokenOKat time 1781332602 and expires in : s
[2026-06-13 08:36:42] DEBUG | Url : https://api-cardata.bmwgroup.com/customers/vehicles/WBA21/image
[2026-06-13 08:36:42] DEBUG | Headers : ["Authorization: ","x-version: v1","Accept: */*"]
[2026-06-13 08:36:42] ERROR | Result getImage() : [401 - UNAUTHORIZED]
[2026-06-13 08:36:42] ERROR | Result Authentication : you must (re)authenticate