Open Stewart06 opened 11 months ago
21/12/2023 17:53:11Wallbox BridgeWallbox SBUnlocking Wallbox Copper Business 21/12/2023 17:53:12Wallbox BridgeWallbox SBERRORError locking charger config Request failed with status code 401 21/12/2023 17:53:12Wallbox BridgeWallbox SBWARNING{ "code": 401, "message": "Your token is expired, please renew it." } 21/12/2023 17:53:12Wallbox BridgeWallbox SBERRORFailed to unlock Wallbox 21/12/2023 17:53:37Wallbox BridgeWallbox SBUnlocking Wallbox Copper Business 21/12/2023 17:53:37Wallbox BridgeWallbox SBERRORError locking charger config Request failed with status code 401 21/12/2023 17:53:37Wallbox BridgeWallbox SBWARNING{ "code": 401, "message": "Your token is expired, please renew it." } 21/12/2023 17:53:37Wallbox BridgeWallbox SBERRORFailed to unlock Wallbox 21/12/2023 17:55:20Wallbox BridgeWallbox SBUnlocking Wallbox Copper Business 21/12/2023 17:55:21Wallbox BridgeWallbox SBERRORError locking charger config Request failed with status code 401 21/12/2023 17:55:21Wallbox BridgeWallbox SBWARNING{ "code": 401, "message": "Your token is expired, please renew it." } 21/12/2023 17:55:21Wallbox BridgeWallbox SBERRORFailed to unlock Wallbox
21/12/2023 19:57:14Wallbox BridgeWallbox SBWARNING{ "code": 401, "message": "Your token is expired, please renew it." } 21/12/2023 19:57:14Wallbox BridgeWallbox SBERRORFailed to unlock Wallbox 21/12/2023 19:58:12Wallbox BridgeWallbox SBStarting Wallbox platform using homebridge API 2.7 21/12/2023 19:58:12Wallbox BridgeWallbox SBGetting Account info... 21/12/2023 19:58:13Wallbox BridgeWallbox SBEmail status confirmed 21/12/2023 19:58:15Wallbox BridgeWallbox SBFound group for NAMEXXXXX 21/12/2023 19:58:15Wallbox BridgeWallbox SBFound charger Wallbox Copper Business with software 5.17.87 21/12/2023 19:58:15Wallbox BridgeWallbox SBFound account for NAMEXXXXXX 21/12/2023 19:58:15Wallbox BridgeWallbox SBFound device at the location: NAMEXXXX 21/12/2023 19:58:16Wallbox BridgeWallbox SBAdding lock for Wallbox Copper Business charger 21/12/2023 19:58:16Wallbox BridgeWallbox SBAdding sensor for Wallbox Copper Business charger 21/12/2023 19:58:18Wallbox BridgeWallbox SBWallbox platform finished loading 21/12/2023 19:59:43Wallbox BridgeWallbox SBUnlocking Wallbox Copper Business
![Uploading IMG_0416.png…]()
This is an old issue which was addresses a few rev back. (see close issue #16). Can you tell me what version of the plugin you are using?. Can you tell me what app you took the screenshot from?
J'utilise la dernière version disponible qui est 1.1.19 publié en Décembre.
Voici mon schéma :
{ "platform": "wallbox", "name": "Wallbox SB", "email": "XXXX@X", "password": "XXXX", "socSensor": true, "rate": 2 }
This does not make sense. The issue is an old issue, the error message is no longer in the v1.1.19 release and the config for 1.19 should have more lines this one is important to your issue "refreshInterval": 24. { "name": "Wallbox", "email": "username@email.com", "password": "password", "refreshInterval": 24, "liveRefreshRate": 2, "liveRefreshTimeout": 20, "cars": [ { "carName": "My EV", "chargerName": "Wallbox", "kwH": 78 } ], "locationAddress": "123 Easy St", "showControls": 5, "socSensor": true, "showAPIMessages": false, "showUserMessages": false, "_bridge": { "username": "0E:6C:D4:F2:16:EB", "port": 35919 }, "platform": "wallbox" }
Are you using this directly in homebridge or is this by chance HOOBS?
J'utilise HOOBS. Mais tout fonctionne parfaitement sauf qu'après quelques heures, la session expire.
I use HOOBS. But everything works perfectly except that after a few hours the session expires.
{ "platform": "wallbox", "name": "Wallbox SB", "email": "XXXXX@XXXX.fr", "password": "XXXXXX", "socSensor": true, "refreshInterval": 24, "liveRefreshTimeout": 2, "rate": 2 }
Good ?
The configuration menu looks like this:
This is an issue with HOOBS, they are not very good at updating things on there end. They modify some things on there end, like the configuration. I think you will have to open a ticket with them to update the config file.
make sure these there line are in you configuration "refreshInterval": 24, "liveRefreshRate": 2, "liveRefreshTimeout": 20,
refreshInterval - once every 24 hours this will refresh the token liveRefreshRate- will poll every 2 sec liveRefreshTimeout- will poll for 20 secs
if you get a 401 error from an expired token, it will just login from scratch.
If you can view debug logging you should see something like this.
[12/22/2023, 6:50:38 AM] [Wallbox-Dev] Starting live update [12/22/2023, 6:50:38 AM] [Wallbox-Dev] Refreshed exsisting token [12/22/2023, 6:50:41 AM] [Wallbox-Dev] Refreshing token [12/22/2023, 6:50:41 AM] [Wallbox-Dev] Updated token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****ViMEtbg0M3AURdge-CojOEOyzJlY1WV1lzM [12/22/2023, 6:50:41 AM] [Wallbox-Dev] Updated refresh token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****982z0gVJtp05DL52iTOSreQ7suNfX41jXy4 [12/22/2023, 6:50:41 AM] [Wallbox-Dev] Starting live update [12/22/2023, 6:50:41 AM] [Wallbox-Dev] Refreshed exsisting token [12/22/2023, 6:51:01 AM] [Wallbox-Dev] Retrieving charger status [12/22/2023, 6:51:01 AM] [Wallbox-Dev] API call count 251 [12/22/2023, 6:51:02 AM] [Wallbox-Dev] response status 200 [12/22/2023, 6:51:02 AM] [Wallbox-Dev] Updating charger ID 271761 [12/22/2023, 6:51:02 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:51:02 AM] [Wallbox-Dev] Refreshed charger with status=209 LOCKED - Unlock the charger to start using it. Unlock charger to start session. [12/22/2023, 6:51:02 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:51:21 AM] [Wallbox-Dev] Retrieving charger status [12/22/2023, 6:51:21 AM] [Wallbox-Dev] API call count 252 [12/22/2023, 6:51:22 AM] [Wallbox-Dev] response status 200 [12/22/2023, 6:51:22 AM] [Wallbox-Dev] Updating charger ID 271761 [12/22/2023, 6:51:22 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:51:22 AM] [Wallbox-Dev] Refreshed charger with status=209 LOCKED - Unlock the charger to start using it. Unlock charger to start session. [12/22/2023, 6:51:22 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:51:41 AM] [Wallbox-Dev] Retrieving charger status [12/22/2023, 6:51:41 AM] [Wallbox-Dev] API call count 253 [12/22/2023, 6:51:42 AM] [Wallbox-Dev] response status 200 [12/22/2023, 6:51:42 AM] [Wallbox-Dev] Updating charger ID 271761 [12/22/2023, 6:51:42 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:51:42 AM] [Wallbox-Dev] Refreshed charger with status=209 LOCKED - Unlock the charger to start using it. Unlock charger to start session. [12/22/2023, 6:51:42 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:52:01 AM] [Wallbox-Dev] Retrieving charger status [12/22/2023, 6:52:01 AM] [Wallbox-Dev] API call count 254 [12/22/2023, 6:52:02 AM] [Wallbox-Dev] response status 200 [12/22/2023, 6:52:02 AM] [Wallbox-Dev] Updating charger ID 271761 [12/22/2023, 6:52:02 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:52:02 AM] [Wallbox-Dev] Refreshed charger with status=209 LOCKED - Unlock the charger to start using it. Unlock charger to start session. [12/22/2023, 6:52:02 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:52:21 AM] [Wallbox-Dev] Retrieving charger status [12/22/2023, 6:52:21 AM] [Wallbox-Dev] API call count 255 [12/22/2023, 6:52:22 AM] [Wallbox-Dev] response status 200 [12/22/2023, 6:52:22 AM] [Wallbox-Dev] Updating charger ID 271761 [12/22/2023, 6:52:22 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:52:22 AM] [Wallbox-Dev] Refreshed charger with status=209 LOCKED - Unlock the charger to start using it. Unlock charger to start session. [12/22/2023, 6:52:22 AM] [Wallbox-Dev] Charging time 17 hours 53 minutes, charge added 36.482 kWh, 47% [12/22/2023, 6:52:41 AM] [Wallbox-Dev] Live update stopped
You could try homebridge directly if that is possible.
Non j'utilise hobby depuis maintenant quelques années et cela pour moi bien plus simple pour la configuration des plugins sachant que je n'ai pas une immense connaissance dans le domaine du codage.
Voici la configuration actuelle :
{ "platform": "wallbox", "name": "Wallbox SB", "email": "XXX@XXX", "password": "XXXX", "socSensor": false, "refreshInterval": 24, "liveRefreshRate": 2, "liveRefreshTimeout": 20, "rate": 20 }
Et voici les message que j'ai dans les logs :
23/12/2023 à 09:41:48Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:339:54)
at runMicrotasks (
No, I've been using hobby for a few years now and it's much easier for me to configure plugins knowing that I don't have a huge amount of knowledge in the field of coding.
Here is the current configuration:
{ "platform": "wallbox", "name": "Wallbox SB", "email": "XXX@XXX", "password": "XXXX", "socSensor": false, "refreshInterval": 24, "liveRefreshRate": 2, "liveRefreshTimeout": 20, rate: 20 }
And here are the messages I have in the logs:
12/23/2023 at 09:41:48 Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:339:54)
at runMicrotasks (
Edit Log Debug :
23/12/2023 à 09:43:56Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:339:54)
at runMicrotasks (
Can you add this line to your config? "showAPIMessages": true,
This will log the response messages in the debug log. I am looking for a refresh token message. I am stumped, I can replicated this is if I intentionally break it but even then it removes for me. I do not have a working version of HOOBS at this time to test against that platform. I have seen in the past some delta in API response from Europe vs US.
24/12/2023 à 00:35:30Wallbox BridgeLoaded plugin 'homebridge-my-wallbox' 24/12/2023 à 00:35:30Wallbox BridgeRegistering platform 'homebridge-my-wallbox.wallbox' 24/12/2023 à 00:35:30Wallbox BridgeLoading 1 platforms... 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBStarting Wallbox platform using homebridge API 2.7 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBFound cached accessory Wallbox Copper Business 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBFetching Build info... 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBGetting Account info... 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBRetrieving device 24/12/2023 à 00:35:30Wallbox BridgeSetup URI 'X-HM://0023MW5F05PD5' 24/12/2023 à 00:35:30Wallbox BridgeBridge is running on port 51896. 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBcheck email response { "data": { "type": "user_email", "id": "XXXXX@XXXX.fr", "attributes": { "status": "confirmed" } } } 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBEmail status confirmed 24/12/2023 à 00:35:30Wallbox BridgeWallbox SBRetrieving token 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBsignin response { "data": { "type": "user_signin", "id": "01HJCGHAF4QNEXXXXXQE7KP7XJ", "attributes": { "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZyZXNoX3VpZCI6IjAxSEpDR0hBRUswOTZUV1pINTdFSlI2R1JTIiwidXNlcl9pZCI6IjAwMDFKSlpZQzhYR0pYTlEwSFdSVDg1OFRIIiwic2Vzc2lvbl9pZCI6IjAxSEpDR0hBRUtEQlhFREIzNjdTQUNUM0dKIiwiZXhwIjoxNzA4NTU4NTMxLCJpYXQiOXXXXXXXXXXXXXXXXX", "refresh_token_ttl": 1708558XXXXX7, "token": "XXXXXXXXXXXXXXXXXwMEcLkRKy0ts6DvtwfyCPD9LRB_SByVZoyGydEVmN0wuhOBBatz4qfOAIlFg3wpMWyx9NAsOOiQHVxdeoD4SHphYr9OpsnY5GR1Y6dv0EsWmwD9ffJL2Yuw9DnHyS4-hmEai4awJyJmWs6LiBzyDNc1_LIX4SvSpHGVeXCTwvdpZoDcuHvd23XM8jAyvaVEcSFOT-SJpN0PShZiT27HB2UwLFsj5TwXQvAGCv5x34qrilmO5A84VYssr_imJuzgRjYMv5BYmaua80DroyYOF39PsneY82AkMoPlo6z5HFqQ61Bhw_3y2l1lAOLEMvr5EsKh-LTEgE2mO-InL0nCbUcuiKrGpwSsEL8MqsUArS0P0lR_VfuWsnPJ-FTg4ZTS_mYv7mLREQMpv7_GHZMILFcTmkPp9vCE3IF3-EYxjrY5H6fSe9OBmnklNI", "ttl": 170337543XXXX7, "user_id": "000XXXXXXXX0HWRT858TH" } } } 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBFound user ID 0001JJZYCXXXXXXR58TH 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBFound token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****TmkPp9vCE3IF3-EYH6fSe9OBmnklNI 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBFound refresh token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****SQuCBW4goRxcr1Yzk9_6fNLChRj4LH0k 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBCurrent time 12/24/2023, 12:35:31 AM 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBToken will expire on 12/24/2023, 12:50:31 AM, 15 minutes 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBRefresh Token will expire on 2/22/2024, 12:35:31 AM, 60 days 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBRetrieving User ID 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBget ID response { "data": { "type": "user_id", "attributes": { "value": 554913 } } } 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBFound user ID 554913 24/12/2023 à 00:35:31Wallbox BridgeWallbox SBRetrieving charger groups 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBget charger groups data response { "result": { "groups": [ { "id": 566016, "uid": "db873a0b-185c-4acf-b740-53XXXXX9ce", "parent": null, "name": "XXXXXX", "profile": { "id": 4, "name": "super-admin" }, "currency": 1, "energyPrice": 0.2, "chargers": [ { "id": 733649, "uid": "01GSSCDTJ3AMPCBXXXXXXXN44", "access": true, "name": "Wallbox Copper Business", "status": 161, "ocppReady": "ocpp_1.6j", "ocppConnectionStatus": 1, "connectionType": "wifi", "locked": 0, "maxChargingCurrent": null, "addedEnergy": 0, "chargingPower": 0, "chargingTime": 18959, "energyUnit": "kWh", "powerUnit": "kW", "image": "https://api.wall-box.com/uploads/CPB1-0-2-4-0-00A-A.png", "lastConnection": 1703374492, "lastSync": 1703326816, "wifiSignal": 100, "chargerLoadType": "Private", "currency": 1, "energyPrice": 0.2, "energyCost": { "value": 0.2, "inheritedGroupId": null }, "remoteAction": 0, "software": { "updateAvailable": false, "currentVersion": "5.17.87", "latestVersion": "5.17.87", "fileName": "cpb1_5.17.87.tar" }, "midStatus": 1, "midEnabled": false, "country": "FR", "state": null, "operationMode": "wallbox" } ], "payments_account": false, "plan": { "id": 3, "product_id": 3, "name": "Business", "description": null, "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ] }, "billingInformation": null, "customer": null, "subscription": null } ] } } 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBFound group for XXXXX 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBFound charger Wallbox Copper Business with software 5.17.87 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBRetrieving user info 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBget user response { "data": { "id": 554913, "email": "XXX@XXXX.fr", "name": "XXXX", "surname": "XX XX", "isAdmin": false, "isSuperAdmin": true, "avatar": "https://production-wallbox-user-images.s3.eu-central-1.amazonaws.com/img/99/a/99a72d75daf04c5ceede94a5a9a2ff18.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IXXXXXXXXXXXXXXXXXXXXxtiXUOtbtK1JVP6tkfGDcSiZKnPa%2F6i3Ee9LEWc2Umf1wkyAAmR4eb4RY5vCBWmjWvV35sJ8XtlVi1Msd0sgxjry%2BDnxyY7ZdtD9Mw%2FzQa1PBl1f%2F%2Fzr4%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA6DV57SFQPVTZHFAK%2F20231223%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20231223T233532Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Signature=8ed5fa583e7e7179477f686cb8c69bf80705ca0d812774c62e9f06299a35a9a1", "plan": { "plan_id": 3, "plan_name": "Business", "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ], "plan_description": null }, "currency_code": "EUR", "currency_symbol": "€", "access": [ { "type": "rfid", "group": 566XXXX, "user": 554XXX, "authentication": "37279636XXXXX" } ], "accessConfigs": [ { "id": 658080, "name": null, "group": 56XXXX, "servicePrice": null, "profile": 4, "contract": null, "chargers": [ 733649 ] } ] } } 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBFound account for XXXXXX 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBFound device at the location: XXXXX 24/12/2023 à 00:35:32Wallbox BridgeWallbox SBRetrieving charger data 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBget charger data response { "id": 733649, "uid": "01GSSCDTJ3AMPCBXXXX", "uniqueIdentifier": "ASXehcxP", "serialNumber": "733XXX", "name": "Wallbox Copper Business", "group": 566016, "groupUid": "db873a0b-185c-4acf-b740-536ce", "softwareVersion": "5.17.87", "softwareUpdatedAt": 1698857955, "status": 161, "ocppConnectionStatus": 1, "ocppReady": "ocpp_1.6j", "stateOfCharge": null, "maxChgCurrent": null, "maxAvailableCurrent": 32, "maxChargingCurrent": 9, "locked": 0, "lastConnection": 1703374492, "lastSync": { "date": "2023-12-23 10:20:16.000000", "timezone_type": 3, "timezone": "UTC" }, "midEnabled": 0, "midMargin": 1, "midMarginUnit": 1, "midSerialNumber": "", "midStatus": 1, "wifiSignal": 100, "connectionType": "wifi", "chargerLoadName": "Private", "chargerLoadId": 2, "chargingType": "AC", "connectorType": "Type 2/Socket", "protocolCommunication": "wifi", "accessType": "private", "powerSharingStatus": 0, "resume": { "totalUsers": 1, "totalSessions": 20, "chargingTime": "504598", "totalEnergy": "283461", "totalMidEnergy": "0", "energyUnit": "kWh" } } 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBRetrieving charger config 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBget charger config response { "charger_id": 733649, "uid": "01GSSCDTJ3AMPCB13S6XXXXX", "serial_number": "733649", "name": "Wallbox Copper Business", "locked": 0, "auto_lock": 1, "auto_lock_time": 60, "multiuser": 0, "max_charging_current": 9, "language": "EN", "icp_max_current": 32, "grid_type": 1, "energy_price": 0.2, "energyCost": { "value": 0.2, "inheritedGroupId": null }, "unlock_user_id": 554913, "power_sharing_config": 0, "purchased_power": 0, "show_name": 1, "show_lastname": 1, "show_email": 1, "show_profile": 1, "show_default_user": 1, "gesture_status": 7, "home_sharing": 1, "dca_status": 0, "connection_type": 1, "max_available_current": 32, "live_refresh_time": 30, "update_refresh_time": 300, "owner_id": 554913, "remote_action": 0, "rfid_type": null, "charger_has_image": 0, "sha256_charger_image": null, "plan": { "plan_name": "Business", "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ] }, "sync_timestamp": 1703374XXXX, "currency": { "id": 1, "name": "Euro Member Countries", "symbol": "€", "code": "EUR" }, "charger_load_type": "Private", "contract_charging_available": false, "country": { "id": 82, "code": "FRA", "iso2": "FR", "name": "FRANCIA", "phone_code": "33" }, "state": null, "timezone": "Europe/Paris", "part_number": "CPB1-W-2-4-8-002-I", "software": { "updateAvailable": false, "currentVersion": "5.17.87", "latestVersion": "5.17.87", "fileName": "cpb1_5.17.87.tar" }, "available": 1, "operation_mode": "wallbox", "ocpp_ready": "ocpp_1.6j", "tariffs": [], "mid_enabled": 0, "mid_margin": 1, "mid_margin_unit": 1, "mid_serial_number": "", "mid_status": 1, "session_segment_length": 0, "group_id": 566016, "user_socket_locking": 1, "sim_iccid": null, "ecosmart": { "enabled": false, "mode": 0, "percentage": 100 }, "ocpp_connection_status": 1, "status": 200, "error": false } 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBRegistering platform accessory 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBAdding lock for Wallbox Copper Business charger 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBcreate Lock Accessory Wallbox Copper Business 24/12/2023 à 00:35:33Wallbox BridgeERROR[Wallbox Copper Business@@Model] characteristic value expected string and received undefined 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBcreate lock service for Wallbox Copper Business, serial number 733649 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBconfigured Wallbox Copper Business lock for Wallbox Copper Business 24/12/2023 à 00:35:33Wallbox BridgeWallbox SBRetrieving charger status 24/12/2023 à 00:35:34Wallbox BridgeWallbox SBresponse status 200 24/12/2023 à 00:35:34Wallbox BridgeWallbox SBUpdating charger ID 733649 24/12/2023 à 00:35:34Wallbox BridgeWallbox SBRefreshed charger with status=161 READY - Waiting for car connection. Plug your car in. 24/12/2023 à 00:35:35Wallbox BridgeWallbox SBWallbox platform finished loading
24/12/2023 à 09:55:30Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:339:54)
at runMicrotasks (
Si je crée une automatisation dans HomeKit qui va répéter l'operation de déverrouillage plusieurs fois alors le plugin arrive à enfin à déverrouiller ma borne.
If I create an automation in HomeKit which will repeat the unlocking operation several times then the plugin finally manages to unlock my terminal.
24/12/2023 à 09:55:38Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:339:54)
at runMicrotasks (
I am not sure it will solve your issues, but it will help with trouble shooting. I have posted an update v1.1.20 it has some other changes I was working on. Your logs look like they skip some time between loading 24/12/2023 à 00:35:35Wallbox BridgeWallbox SBWallbox platform finished loading and the first error. 24/12/2023 à 09:55:30Wallbox BridgeWallbox SBERRORError updating status.
Do things work ok right after loading? if so I would like to see some logs for that time. If things are still an issue I would need new logs.
Thanks
25/12/2023 à 01:15:09Wallbox BridgeWallbox SBERRORError getting charger status Request failed with status code 401
25/12/2023 à 01:15:09Wallbox BridgeWallbox SBWARNING{
"code": 401,
"message": "Your token is expired, please renew it."
}
25/12/2023 à 01:15:09Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:394:54)
at runMicrotasks (
Oui cela a grandement amélioré les choses. Oui après chaque démarrage du plugin tout fonctionne normalement. Même avant la mise à jour, si j'appuyai plusieurs fois sur le déverrouillage de la borne au bout de trois fois ça finissait par la déverrouiller. Je vois encore des erreurs est-ce normal ? J'ai rentré les deux voitures que nous possédons, du coup les pourcentage du capteur indique quoi ? Les Kwh injecté ou la batterie du véhicule qui charge ? En tous cas merci pour votre réactivité et votre travail sur le plugin!!!
Yes, this has greatly improved things. Yes after each startup of the plugin everything works normally. Even before the update, if I pressed the terminal unlock several times, after three times it would eventually unlock it. I still see errors, is this normal? I returned the two cars we own, so what do the sensor percentages indicate? The kWh injected or the battery of the vehicle which charges? In any case, thank you for your responsiveness and your work on the plugin!!!
25/12/2023 à 01:34:14Wallbox BridgeWallbox SBCharging time 0 hours 53 minutes, charge added 1.745 kWh, 3% 25/12/2023 à 01:34:15Wallbox BridgeWallbox SBRetrieving charger status 25/12/2023 à 01:34:15Wallbox BridgeWallbox SBAPI call count 1680 25/12/2023 à 01:34:16Wallbox BridgeWallbox SBresponse status 200 25/12/2023 à 01:34:16Wallbox BridgeWallbox SBUpdating charger ID 733649 25/12/2023 à 01:34:16Wallbox BridgeWallbox SBCharging time 0 hours 53 minutes, charge added 1.745 kWh, 3% 25/12/2023 à 01:34:16Wallbox BridgeWallbox SBRefreshed charger with status=194 CHARGING - Process started. Plugged and running!. 25/12/2023 à 01:34:16Wallbox BridgeWallbox SBCharging time 0 hours 53 minutes, charge added 1.745 kWh, 3% 25/12/2023 à 01:34:17Wallbox BridgeWallbox SBRetrieving charger status 25/12/2023 à 01:34:17Wallbox BridgeWallbox SBAPI call count 1681 25/12/2023 à 01:34:18Wallbox BridgeWallbox SBresponse status 200 25/12/2023 à 01:34:18Wallbox BridgeWallbox SBUpdating charger ID 733649 25/12/2023 à 01:34:18Wallbox BridgeWallbox SBCharging time 0 hours 53 minutes, charge added 1.745 kWh, 3% 25/12/2023 à 01:34:18Wallbox BridgeWallbox SBRefreshed charger with status=194 CHARGING - Process started. Plugged and running!. 25/12/2023 à 01:34:18Wallbox BridgeWallbox SBCharging time 0 hours 53 minutes, charge added 1.745 kWh, 3% 25/12/2023 à 01:34:19Wallbox BridgeWallbox SBRetrieving charger status 25/12/2023 à 01:34:19Wallbox BridgeWallbox SBAPI call count 1682 25/12/2023 à 01:34:20Wallbox BridgeWallbox SBresponse status 200 25/12/2023 à 01:34:20Wallbox BridgeWallbox SBUpdating charger ID 733649 25/12/2023 à 01:34:20Wallbox BridgeWallbox SBCharging time 0 hours 53 minutes, charge added 1.761 kWh, 4% 25/12/2023 à 01:34:20Wallbox BridgeWallbox SBRefreshed charger with status=194 CHARGING - Process started. Plugged and running!.
25/12/2023 à 01:43:37Wallbox BridgeLoaded plugin 'homebridge-my-wallbox' 25/12/2023 à 01:43:37Wallbox BridgeRegistering platform 'homebridge-my-wallbox.wallbox' 25/12/2023 à 01:43:37Wallbox BridgeLoading 1 platforms... 25/12/2023 à 01:43:37Wallbox BridgeWallbox SBStarting Wallbox platform using homebridge API 2.7 25/12/2023 à 01:43:37Wallbox BridgeWallbox SBFound cached accessory Wallbox Copper Business 25/12/2023 à 01:43:37Wallbox BridgeWallbox SBFetching Build info... 25/12/2023 à 01:43:37Wallbox BridgeWallbox SBGetting Account info... 25/12/2023 à 01:43:37Wallbox BridgeWallbox SBRetrieving device 25/12/2023 à 01:43:37Wallbox BridgeSetup URI 'X-HM://0023MWXXXXXD5' 25/12/2023 à 01:43:37Wallbox BridgeBridge is running on port 51896. 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBcheck email response { "data": { "type": "user_email", "id": "XXX@XXXXX", "attributes": { "status": "confirmed" } } } 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBEmail status confirmed 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBRetrieving token 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBsignin response { "data": { "type": "user_signin", "id": "01HJF6XXXXXSN36", "attributes": { "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZyZXNoX3VpZCI6IjAxSEpGNlRTNzFYUzUxODBCMzNQMUQyWkNEIiwidXNlcl9pZCI6IjAwMDFKSlXXXXXXXQPIWgdRjsSIJRnROQGLo9NR13Mecp0J72XhvXDj9ynx_bkUvpjDSTRGbNe2_6bYlJmG6qIVxJVJzF7DBza0ya7hwxrml860TMk6nmN8Og_rVzljtro-yMTzbM01Z9WxMDoLkOXsdpluxpO6-fYoVDpV6Ois3hVyBBgH7nXXXXXXXn8fkwRJ_YLcDzlhmWyaMZt6i_Bi1_utW5pe5xDjSuCac31mhYIHbBpxP5HRjF71fptUqHfJE", "refresh_token_ttl": 17086XXX593, "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InN0ZXBoYW5lLnZhcmdhc0BvdXRsb29rLmZyIiwidWlkIjoiMDFISkY2VFM3MVhTNTE4MEIzM1AxRDJaQ0QiLCJzZXNzaW9uX2lkIjoiMDFISkY2VFM3MTVGNDk2QkFYUzJTTlIyVDUiLCJleHAiOjE3MDM0NjU5MTgsImlhdCXXX5j5ofEe28K9uSI7V7Wa0rqV1pkptXt7fu0VAcRvSVnbjGeaycDLIPlhJCzlMZyBYhJcBlhDb_9jisdfPygruJM4oR6w6OYlsEynOBHyilhT-_R75XXXXXX0VxjyviuvdB7A", "ttl": 170346XXXX93, "user_id": "0001JJZYC8XGXXXXXXTH" } } } 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBFound user ID 0001JJZYC8XGXXXXXX58TH 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBFound token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****e0mM3m5xGFF7kUERezh85e0VxjyviuvdB7A 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBFound refresh token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****DjSuCac31mhYIHbBpxP5HRjF71fptUqHfJE 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBCurrent time 12/25/2023, 1:43:38 AM 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBToken will expire on 12/25/2023, 1:58:38 AM, 15 minutes 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBRefresh Token will expire on 2/23/2024, 1:43:38 AM, 60 days 25/12/2023 à 01:43:38Wallbox BridgeWallbox SBRetrieving User ID 25/12/2023 à 01:43:39Wallbox BridgeWallbox SBget ID response { "data": { "type": "user_id", "attributes": { "value": 554913 } } } 25/12/2023 à 01:43:39Wallbox BridgeWallbox SBFound user ID 554913 25/12/2023 à 01:43:39Wallbox BridgeWallbox SBRetrieving charger groups 25/12/2023 à 01:43:40Wallbox BridgeWallbox SBget charger groups data response { "result": { "groups": [ { "id": 566016, "uid": "db873a0b-185c-4acf-b740-5XXXXXXX", "parent": null, "name": "XXXXXXXX", "profile": { "id": 4, "name": "super-admin" }, "currency": 1, "energyPrice": 0.2, "chargers": [ { "id": 733649, "uid": "01GSSCDTJXXXXXX4", "access": true, "name": "Wallbox Copper Business", "status": 194, "ocppReady": "ocpp_1.6j", "ocppConnectionStatus": 1, "connectionType": "wifi", "locked": 1, "maxChargingCurrent": null, "addedEnergy": 2.066, "chargingPower": 2.0202, "chargingTime": 3733, "energyUnit": "kWh", "powerUnit": "kW", "image": "https://api.wall-box.com/uploads/CPB1-0-2-4-0-00A-A.png", "lastConnection": 1703465019, "lastSync": 1703326816, "wifiSignal": 100, "chargerLoadType": "Private", "currency": 1, "energyPrice": 0.2, "energyCost": { "value": 0.2, "inheritedGroupId": null }, "remoteAction": 0, "software": { "updateAvailable": false, "currentVersion": "5.17.87", "latestVersion": "5.17.87", "fileName": "cpb1_5.17.87.tar" }, "midStatus": 1, "midEnabled": false, "country": "FR", "state": null, "operationMode": "wallbox" } ], "payments_account": false, "plan": { "id": 3, "product_id": 3, "name": "Business", "description": null, "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ] }, "billingInformation": null, "customer": null, "subscription": null } ] } } 25/12/2023 à 01:43:40Wallbox BridgeWallbox SBFound group for XXXXXX 25/12/2023 à 01:43:40Wallbox BridgeWallbox SBRetrieving charger 25/12/2023 à 01:43:40Wallbox BridgeWallbox SBRetrieving user info 25/12/2023 à 01:43:40Wallbox BridgeWallbox SBget chargerdata response { "data": [ { "type": "charger", "id": "01GSSCDTJ3AMPXXXXXX4", "attributes": { "connection_status": "online", "connector_type": "Type 2/Socket", "image": "https://api.wall-box.com/uploads/CPB1-0-2-4-0-00A-A.png", "last_connection": 1703461264, "location_id": "01HD1PDGM9G9CXXXXXX44", "location_name": "Domicile", "model": "CPB1", "model_name": "Copper Business", "name": "Wallbox Copper Business", "organization_id": "db873a0b-185c-4acf-b74XXXXXX9ce", "part_number": "CPB1-W-2-XXXXX-I", "pay_per_charge_enabled": false, "pay_per_month_enabled": false, "puk": 7165XXXX2, "serial_number": "733XXX9", "software_update_available": false, "status": 194, "timezone": "Europe/Paris", "unique_identifier": "ASXXXXXP" }, "relationships": { "charger_config": { "data": { "type": "charger_config", "id": "01GSSCDTJ3AXXXXX44" } }, "charger_info": { "data": { "type": "charger_info", "id": "01GSSCDTJ3AXXXXX2N44" } }, "charger_status": { "data": { "type": "charger_status", "id": "01GSSCDTJ3XXXXD2N44" } } } } ], "links": { "self": { "href": "://perseus.prod.wall-box.com/organizations/db873a0b-185c-4acf-b740-5364dbb3d9ce/chargers?" } }, "meta": { "count": 1 } } 25/12/2023 à 01:43:40Wallbox BridgeWallbox SBFound charger Wallbox Copper Business with software 5.17.87 25/12/2023 à 01:43:41Wallbox BridgeWallbox SBget user response { "data": { "id": 554913, "email": "XXXX@XXXX", "name": "XXXXX", "surname": "XXX XXX", "isAdmin": false, "isSuperAdmin": true, "avatar": "https://production-wallbox-user-images.s3.eu-central-1.amazonaws.com/img/99/a/99a72d75daf04c5ceede94a5a9a2ff18.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDGV1LWNlbnRyYWwtMSJGMEQCIAakhal2ccQ0E5K1xmdk5u0bk0qtcfqkIuefu24%2F6VlGAiANsm9YTgzxai1B2gD0kvVt0BRdUTK%2Fmg%2FB07stSW4SziryAwhnEAEaDDk2OTk4NzI5NzYzMiIM1gPnDnr%2BXXXXce7XaQ6he8rNfmg9P37gxYl69x%2Bs2KfPA4potHrdEHOCmVewjCg06KsBjqmAcV4p6Xi4BSucH3MZlfy9fjwpNxCp9xpjuTDNcpQ6KjFnlSpgFgfF3taCvH5WTbsc%2BaLrlmEsLloB3%2B6Q%2BC%2BGDydvbHcdizEDwtgPlNJrZlSOjTuR7r%2FFd2ga8vPz%2F2KRRcgzIVbcVLeSxVxvTzv9E4dkMyg95ivIeShwpX2ItNUtxdOr7nFkTOJd3KqrVFTbiFMiiL2V7l1q6rbYPolcv901Vj00Mk%3D&XXXXXXXFs3%2Faws4_request&X-Amz-Date=20231225T004341Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Signature=66b37416908fd1c587268bXXXXX5fa611d1", "plan": { "plan_id": 3, "plan_name": "Business", "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ], "plan_description": null }, "currency_code": "EUR", "currency_symbol": "€", "access": [ { "type": "rfid", "group": 566016, "user": 554913, "authentication": "37279636484767236" } ], "accessConfigs": [ { "id": 658080, "name": null, "group": 566016, "servicePrice": null, "profile": 4, "contract": null, "chargers": [ 733649 ] } ] } } 25/12/2023 à 01:43:41Wallbox BridgeWallbox SBFound account for XXXXXX 25/12/2023 à 01:43:41Wallbox BridgeWallbox SBFound device at the location: XXXXXX 25/12/2023 à 01:43:41Wallbox BridgeWallbox SBRetrieving charger data 25/12/2023 à 01:43:41Wallbox BridgeWallbox SBget charger data response { "id": 733649, "uid": "01GSSCDTJ3XXXXXX44", "uniqueIdentifier": "ASXXXXP", "serialNumber": "XXXXX, "name": "Wallbox Copper Business", "group": 56XXX, "groupUid": "db873a0b-185c-4acf-b7XXXXXe", "softwareVersion": "5.17.87", "softwareUpdatedAt": 1698XXXX5, "status": 194, "ocppConnectionStatus": 1, "ocppReady": "ocpp_1.6j", "stateOfCharge": null, "maxChgCurrent": null, "maxAvailableCurrent": 32, "maxChargingCurrent": 9, "locked": 1, "lastConnection": 170XXXX21, "lastSync": { "date": "2023-12-23 10:20:16.000000", "timezone_type": 3, "timezone": "UTC" }, "midEnabled": 0, "midMargin": 1, "midMarginUnit": 1, "midSerialNumber": "", "midStatus": 1, "wifiSignal": 100, "connectionType": "wifi", "chargerLoadName": "Private", "chargerLoadId": 2, "chargingType": "AC", "connectorType": "Type 2/Socket", "protocolCommunication": "wifi", "accessType": "private", "powerSharingStatus": 0, "resume": { "totalUsers": 1, "totalSessions": 20, "chargingTime": "504598", "totalEnergy": "283461", "totalMidEnergy": "0", "energyUnit": "kWh" } } 25/12/2023 à 01:43:41Wallbox BridgeWallbox SBRetrieving charger config 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBget charger config response { "charger_id": 733649, "uid": "01GSSCDTJXXXXD2N44", "serial_number": "73XXX", "name": "Wallbox Copper Business", "locked": 1, "auto_lock": 1, "auto_lock_time": 60, "multiuser": 0, "max_charging_current": 9, "language": "EN", "icp_max_current": 32, "grid_type": 1, "energy_price": 0.2, "energyCost": { "value": 0.2, "inheritedGroupId": null }, "unlock_user_id": 55XXX3, "power_sharing_config": 0, "purchased_power": 0, "show_name": 1, "show_lastname": 1, "show_email": 1, "show_profile": 1, "show_default_user": 1, "gesture_status": 7, "home_sharing": 1, "dca_status": 0, "connection_type": 1, "max_available_current": 32, "live_refresh_time": 30, "update_refresh_time": 300, "owner_id": 554913, "remote_action": 0, "rfid_type": null, "charger_has_image": 0, "sha256_charger_image": null, "plan": { "plan_name": "Business", "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ] }, "sync_timestamp": 1703461263, "currency": { "id": 1, "name": "Euro Member Countries", "symbol": "€", "code": "EUR" }, "charger_load_type": "Private", "contract_charging_available": false, "country": { "id": 82, "code": "FRA", "iso2": "FR", "name": "FRANCIA", "phone_code": "33" }, "state": null, "timezone": "Europe/Paris", "part_number": "CPB1-W-2-4-8-002-I", "software": { "updateAvailable": false, "currentVersion": "5.17.87", "latestVersion": "5.17.87", "fileName": "cpb1_5.17.87.tar" }, "available": 1, "operation_mode": "wallbox", "ocpp_ready": "ocpp_1.6j", "tariffs": [], "mid_enabled": 0, "mid_margin": 1, "mid_margin_unit": 1, "mid_serial_number": "", "mid_status": 1, "session_segment_length": 0, "group_id": 566016, "user_socket_locking": 1, "sim_iccid": null, "ecosmart": { "enabled": false, "mode": 0, "percentage": 100 }, "ocpp_connection_status": 1, "status": 200, "error": false } 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBupdate Lock Accessory Wallbox Copper Business 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBconfigured Wallbox Copper Business lock for Wallbox Copper Business 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBAdding sensor for Wallbox Copper Business charger 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBcreate new sensor 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBconfigured Wallbox Copper Business SOC sensor for Wallbox Copper Business 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBAdding battery service for Wallbox Copper Business charger 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBcreate battery service for Wallbox Copper Business 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBconfigured battery service for Wallbox Copper Business 25/12/2023 à 01:43:42Wallbox BridgeWallbox SBRetrieving charger status 25/12/2023 à 01:43:43Wallbox BridgeWallbox SBresponse status 200 25/12/2023 à 01:43:43Wallbox BridgeWallbox SBUpdating charger ID 733649 25/12/2023 à 01:43:43Wallbox BridgeWallbox SBCharging time 1 hours 2 minutes, charge added 2.066 kWh, 4% 25/12/2023 à 01:43:43Wallbox BridgeWallbox SBRefreshed charger with status=194 CHARGING - Process started. Plugged and running!. 25/12/2023 à 01:43:43Wallbox BridgeWallbox SBCharging time 1 hours 2 minutes, charge added 2.066 kWh, 4% 25/12/2023 à 01:43:43Wallbox BridgeWallbox SBWallbox platform finished loading 25/12/2023 à 01:46:18Wallbox BridgeShutting down 25/12/2023 à 01:46:20Wallbox BridgeStopped 25/12/2023 à 01:46:27Wallbox BridgeERROR[31mThe plugin "homebridge-my-wallbox" requires a Homebridge version of ^1.7.0 which does not satisfy the current Homebridge version of 1.6.0. You may need to update this plugin (or Homebridge) to a newer version. You may face unexpected issues or stability problems running this plugin.[39m 25/12/2023 à 01:46:27Wallbox BridgeLoaded plugin 'homebridge-my-wallbox' 25/12/2023 à 01:46:27Wallbox BridgeLoading 1 platforms... 25/12/2023 à 01:46:27Wallbox BridgeRegistering platform 'homebridge-my-wallbox.wallbox' 25/12/2023 à 01:46:27Wallbox BridgeWallbox SBStarting Wallbox platform using homebridge API 2.7 25/12/2023 à 01:46:27Wallbox BridgeWallbox SBFound cached accessory Wallbox Copper Business 25/12/2023 à 01:46:27Wallbox BridgeWallbox SBFetching Build info... 25/12/2023 à 01:46:27Wallbox BridgeWallbox SBGetting Account info... 25/12/2023 à 01:46:27Wallbox BridgeWallbox SBRetrieving device 25/12/2023 à 01:46:27Wallbox BridgeSetup URI 'X-HM://00XXXXXD5' 25/12/2023 à 01:46:27Wallbox BridgeBridge is running on port 51896. 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBcheck email response { "data": { "type": "user_email", "id": "XXXXX@XXXX", "attributes": { "status": "confirmed" } } } 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBEmail status confirmed 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBRetrieving token 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBsignin response { "data": { "type": "user_signin", "id": "01HJF6ZZDFFV1DKWET98QCMCC8", "attributes": { "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZyZXNoX3VpZCI6IjAxSEpGNlpaQ01LV0NFVDFORTNGUk1UWjk1IiwidXNlcl9pZCI6IjAwMDFKSlpZQzhYR0pYTlEwSFdSVDg1OFRIIiwic2Vzc2lvbl9pZCI6IjAxSEpGNlpaQ01FSjUxS0YwQjZNTTlDUzBUIiwiZXhwIjoxNzA4NjQ5MTg4LCJpXXXXXXeqQtu5pqT-H4YxNx8ARi2naVgiwn0gJsI_ZNDOjwmq0uJz4E60i8xp3S1VxxvEcDXnuG8Rv7YjA7nDbrxuEVuJyV0LgElRSp4R-2rFfl10fDO2LfcSQDC_pVd4WvhodXFBrVCZD3nEwoXvUoXXXXXXXs19OwTBj0R0PSxxXCY-WFV80tUA", "refresh_token_ttl": 170864XXXX6, "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InN0ZXBoYW5lLnZhcmdhc0BvdXRsb29rLmZyIiwidWlkIjoiMDFISkY2WlpDTUtXQ0VUMU5FM0ZSTVRaOTUiLCJzZXNzaW9uX2lkIjoiMDFISkY2WlpDTUVKNTFLRjBCNk1NOUNTMFQiLCJleHAiOjE3MDM0NjYwODgsImlhdCI6XXXXXXXX7SmNiNfq8hKMvRHohkv3CrvNEepiIOw5LtwtCSFZd1snT-3JvQfJwxDCjSQ3iFK8-1Ovbvb7VxKeDHj8_9jU9SJzRmzlmta_CSQogjSTdlx4K97KqFHBaEpla0IOzrAtv1tv5r9DyqHhz7HAGtA-3DAmcbJW7Gajpp8vVgnFSQwedogIO1DaUoEIuidZJRQPY-3qS8QsO24j7Eiz4T1zAQDkjWLrHd8BxarXXXXXXXzJQdAOEA_PXP19qNgyn1aaWRc", "ttl": 170346XXXX, "user_id": "0001JJZYC8XGJXNQXXXXXTH" } } } 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBFound user ID 0001JJZYC8XGJXXXXXXXH 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBFound token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****I3wDaIVotzzJQdAOEA_PXP19qNgyn1aaWRc 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBFound refresh token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ****5gbqbVR2s19OwTBj0R0PSxxXCY-WFV80tUA 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBCurrent time 12/25/2023, 1:46:28 AM 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBToken will expire on 12/25/2023, 2:01:28 AM, 15 minutes 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBRefresh Token will expire on 2/23/2024, 1:46:28 AM, 60 days 25/12/2023 à 01:46:28Wallbox BridgeWallbox SBRetrieving User ID 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBget ID response { "data": { "type": "user_id", "attributes": { "value": 554913 } } } 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBFound user ID 554913 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBRetrieving charger groups 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBget charger groups data response { "result": { "groups": [ { "id": 566016, "uid": "db873a0b-185c-4acf-b740-XXXXd9ce", "parent": null, "name": "XXXX XXXX", "profile": { "id": 4, "name": "super-admin" }, "currency": 1, "energyPrice": 0.2, "chargers": [ { "id": 733649, "uid": "01GSSCDTJ3AMPXXXXXX44", "access": true, "name": "Wallbox Copper Business", "status": 194, "ocppReady": "ocpp_1.6j", "ocppConnectionStatus": 1, "connectionType": "wifi", "locked": 1, "maxChargingCurrent": null, "addedEnergy": 2.172, "chargingPower": 2.0111, "chargingTime": 3920, "energyUnit": "kWh", "powerUnit": "kW", "image": "https://api.wall-box.com/uploads/CPB1-0-2-4-0-00A-A.png", "lastConnection": 1703465182, "lastSync": 1703326816, "wifiSignal": 100, "chargerLoadType": "Private", "currency": 1, "energyPrice": 0.2, "energyCost": { "value": 0.2, "inheritedGroupId": null }, "remoteAction": 0, "software": { "updateAvailable": false, "currentVersion": "5.17.87", "latestVersion": "5.17.87", "fileName": "cpb1_5.17.87.tar" }, "midStatus": 1, "midEnabled": false, "country": "FR", "state": null, "operationMode": "wallbox" } ], "payments_account": false, "plan": { "id": 3, "product_id": 3, "name": "Business", "description": null, "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ] }, "billingInformation": null, "customer": null, "subscription": null } ] } } 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBFound group for XXXXXXX 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBRetrieving charger 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBRetrieving user info 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBget chargerdata response { "data": [ { "type": "charger", "id": "01GSSCDTJ3AMXXXXX4", "attributes": { "connection_status": "online", "connector_type": "Type 2/Socket", "image": "https://api.wall-box.com/uploads/CPB1-0-2-4-0-00A-A.png", "last_connection": 1703461264, "location_id": "01HD1PDGM9XXXXXV44", "location_name": "Domicile", "model": "CPB1", "model_name": "Copper Business", "name": "Wallbox Copper Business", "organization_id": "db873a0b-185c-4acf-b74XXXXXe", "part_number": "CPB1-W-2-4-8-002-I", "pay_per_charge_enabled": false, "pay_per_month_enabled": false, "puk": 7165XXXX2, "serial_number": "733XXX9", "software_update_available": false, "status": 194, "timezone": "Europe/Paris", "unique_identifier": "ASXXXxP" }, "relationships": { "charger_config": { "data": { "type": "charger_config", "id": "01GSSCDTJ3XXXXXN44" } }, "charger_info": { "data": { "type": "charger_info", "id": "01GSSCDTJ3AXXXXXXD2N44" } }, "charger_status": { "data": { "type": "charger_status", "id": "01GSSCDTJ3AXXXXXD2N44" } } } } ], "links": { "self": { "href": "://perseus.prod.wall-box.com/organizations/db873a0b-185c-4acf-b740-5364dbb3d9ce/chargers?" } }, "meta": { "count": 1 } } 25/12/2023 à 01:46:29Wallbox BridgeWallbox SBFound charger Wallbox Copper Business with software 5.17.87 25/12/2023 à 01:46:30Wallbox BridgeWallbox SBget user response { "data": { "id": 554913, "email": "XXXXX@XXXX", "name": "XXXXX", "surname": "XXX XXXX", "isAdmin": false, "isSuperAdmin": true, "avatar": "https://production-wallbox-user-images.s3.eu-central-1.amazonaws.com/img/99/a/99a72d75daf04c5ceede94a5a9a2ff18.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjENz%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDGV1LWNlbnRyYWwtMSJHMEUCIFpaD3bwgE1Ao82mLhEdLnhEs0ne%2BLQnjxxO2A0SSGibAiEA0yctk%2Fh3sE4TCU5SDC6PENWjH5ZKHYVzPhb0TjoBrmsq8gMIZRABGgw5Njk5ODcyOTc2MzIiDLP6H1j21KdIUNi2lCrPA8T0gkpyZrcKhglGjlNuJew7Ttnv11xgPs1rprOEJsNpSu%2BBerlC4icjqN2T5r%2BQ8ff%2Ft8a7%2BQKI1vLC8B5I1ZAMaAlXrsrjj2sD1V9V3TUFWjR7vUOZHimsKGJuHLSO4sx9KAKk2vMxRyQMQ49nc4lZ%2F0fTd1nRoKQSCEASXXXXXXXXXX%2BXK1fS0OunXq8XXXXXXs=60&X-Amz-Signature=489f2f18d00079df021274c51b8aeXXXXXXXXX93", "plan": { "plan_id": 3, "plan_name": "Business", "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ], "plan_description": null }, "currency_code": "EUR", "currency_symbol": "€", "access": [ { "type": "rfid", "group": 566016, "user": 554913, "authentication": "372796XXXXXX236" } ], "accessConfigs": [ { "id": 65XXXXXX, "name": null, "group": 56XXX6, "servicePrice": null, "profile": 4, "contract": null, "chargers": [ 733XXXX9 ] } ] } } 25/12/2023 à 01:46:30Wallbox BridgeWallbox SBFound account for XXXXXXX 25/12/2023 à 01:46:30Wallbox BridgeWallbox SBFound device at the location: XXXX XXXX 25/12/2023 à 01:46:30Wallbox BridgeWallbox SBRetrieving charger data 25/12/2023 à 01:46:30Wallbox BridgeWallbox SBget charger data response { "id": 733649, "uid": "01GSSCDTJXXXXXX44", "uniqueIdentifier": "ASXXXXP", "serialNumber": "73XXX9", "name": "Wallbox Copper Business", "group": 566016, "groupUid": "db873a0b-185c-bXXXXXd9ce", "softwareVersion": "5.17.87", "softwareUpdatedAt": 169XXXX55, "status": 194, "ocppConnectionStatus": 1, "ocppReady": "ocpp_1.6j", "stateOfCharge": null, "maxChgCurrent": null, "maxAvailableCurrent": 32, "maxChargingCurrent": 9, "locked": 1, "lastConnection": 17XXXXX82, "lastSync": { "date": "2023-12-23 10:20:16.000000", "timezone_type": 3, "timezone": "UTC" }, "midEnabled": 0, "midMargin": 1, "midMarginUnit": 1, "midSerialNumber": "", "midStatus": 1, "wifiSignal": 100, "connectionType": "wifi", "chargerLoadName": "Private", "chargerLoadId": 2, "chargingType": "AC", "connectorType": "Type 2/Socket", "protocolCommunication": "wifi", "accessType": "private", "powerSharingStatus": 0, "resume": { "totalUsers": 1, "totalSessions": 20, "chargingTime": "504598", "totalEnergy": "283461", "totalMidEnergy": "0", "energyUnit": "kWh" } } 25/12/2023 à 01:46:30Wallbox BridgeWallbox SBRetrieving charger config 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBget charger config response { "charger_id": 73XXXX9, "uid": "01GSSCXXXXXXN44", "serial_number": "73XXXX9", "name": "Wallbox Copper Business", "locked": 1, "auto_lock": 1, "auto_lock_time": 60, "multiuser": 0, "max_charging_current": 9, "language": "EN", "icp_max_current": 32, "grid_type": 1, "energy_price": 0.2, "energyCost": { "value": 0.2, "inheritedGroupId": null }, "unlock_user_id": 554913, "power_sharing_config": 0, "purchased_power": 0, "show_name": 1, "show_lastname": 1, "show_email": 1, "show_profile": 1, "show_default_user": 1, "gesture_status": 7, "home_sharing": 1, "dca_status": 0, "connection_type": 1, "max_available_current": 32, "live_refresh_time": 30, "update_refresh_time": 300, "owner_id": 554913, "remote_action": 0, "rfid_type": null, "charger_has_image": 0, "sha256_charger_image": null, "plan": { "plan_name": "Business", "features": [ "DEFAULT_FEATURE", "POWER_BOOST", "MOBILE_CONNECTIVITY", "CHARGER_SUBGROUPS", "USER_SUBGROUPS", "DYNAMIC_POWER_SHARING", "PAYMENTS", "SET_UP_INCLUDED", "BULK_ACTIONS", "AUTOMATIC_REPORTING", "BILLING", "STATISTICS" ] }, "sync_timestamp": 1703461263, "currency": { "id": 1, "name": "Euro Member Countries", "symbol": "€", "code": "EUR" }, "charger_load_type": "Private", "contract_charging_available": false, "country": { "id": 82, "code": "FRA", "iso2": "FR", "name": "FRANCIA", "phone_code": "33" }, "state": null, "timezone": "Europe/Paris", "part_number": "CPB1-XXXXX2-I", "software": { "updateAvailable": false, "currentVersion": "5.17.87", "latestVersion": "5.17.87", "fileName": "cpb1_5.17.87.tar" }, "available": 1, "operation_mode": "wallbox", "ocpp_ready": "ocpp_1.6j", "tariffs": [], "mid_enabled": 0, "mid_margin": 1, "mid_margin_unit": 1, "mid_serial_number": "", "mid_status": 1, "session_segment_length": 0, "group_id": 566016, "user_socket_locking": 1, "sim_iccid": null, "ecosmart": { "enabled": false, "mode": 0, "percentage": 100 }, "ocpp_connection_status": 1, "status": 200, "error": false } 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBupdate Lock Accessory Wallbox Copper Business 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBconfigured Wallbox Copper Business lock for Wallbox Copper Business 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBAdding sensor for Wallbox Copper Business charger 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBcreate new sensor 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBconfigured Wallbox Copper Business SOC sensor for Wallbox Copper Business 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBAdding battery service for Wallbox Copper Business charger 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBcreate battery service for Wallbox Copper Business 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBconfigured battery service for Wallbox Copper Business 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBRetrieving charger status 25/12/2023 à 01:46:32Wallbox BridgeWallbox SBWallbox platform finished loading 25/12/2023 à 01:46:33Wallbox BridgeWallbox SBresponse status 200 25/12/2023 à 01:46:33Wallbox BridgeWallbox SBUpdating charger ID 7XXXXXX9 25/12/2023 à 01:46:33Wallbox BridgeWallbox SBCharging time 1 hours 5 minutes, charge added 2.172 kWh, 4% 25/12/2023 à 01:46:33Wallbox BridgeWallbox SBRefreshed charger with status=194 CHARGING - Process started. Plugged and running!. 25/12/2023 à 01:46:33Wallbox BridgeWallbox SBCharging time 1 hours 5 minutes, charge added 2.172 kWh, 4%
Je precise quand meme que ma borne est équipé d'une clé 4G Lte ce qui me permet de me connecter à distance. Elle n'est donc pas sur mon réseau domestique véritablement.
I would still like to point out that my terminal is equipped with a 4G Lte key which allows me to connect remotely. So it's not really on my home network.
Voici ma configuration, est-ce bien ?
Here is my configuration, is it good?
{ "platform": "wallbox", "name": "Wallbox SB", "email": "XXXX@XXXX", "password": "XXXXXX", "socSensor": true, "showAPIMessages": true, "refreshInterval": 24, "liveRefreshRate": 2, "liveRefreshTimeout": 20, "rate": 20, "showControls": 2, "cars": [ { "carName": "Peugeot e208", "chargerName": "Wallbox Copper Business", "kwH": 50 }, { "carName": "Tesla Model 3", "chargerName": "Wallbox Copper Business", "kwH": 60 } ] }
Glad it is working, nothing really change with this but things seem to be working as expected with the current release, based on your logs, The 401 error is expected, but the plugin should correct itself by signing in when it see that. The status error is benign and I should address that show it is not seen in the logs. The config looks fine, but you do not need the line "rate":20 that is nothing used by this plugin. I do not think the LTE connection matters here. The Plugin does not communicate directly with the charger, it only talks to your info Wallbox collects for you account. The SOC sensor was a user ask to have something automation could trigger on based on how much charge was added. I wrote this originally to have automation to unlock when the car come home since the charger is outside.
Ah oui je comprends l'utilité du capteur, mais j'avoue que cela aurait été bien d'avoir un capteur qui transmette le nombre de Kwh que la borne injecte dans le véhicule. Car je pensais que le capteur actuelle allé indiquer le pourcentage de la batterie du véhicule branché, dommage.
Ah yes I understand the usefulness of the sensor, but I admit that it would have been good to have a sensor which transmits the number of Kwh that the terminal injects into the vehicle. Because I thought that the current sensor would indicate the percentage of the battery of the connected vehicle, too bad.
Une question, à quoi sert "showControls" ?
One question, what is "showControls" for?
The APIs used here do not report back information from the Car, I agree that would be nice.
I don't think HOOBS is exposing these.
Just other options to automate against.
1 and 5 let you pause and start
3 and 7 let you set the charging amperage
default is 0 Lock Only 1=Lock with Start/Pause as Switch 5=Lock with Start/Pause as Outlet 3=Full Control in the form of a Fahrenheit Thermostat 7=Full Control in the form of a Celsius Thermostat
Ok merci pour la précision 👍🏻
Concernant un capteur qui indique les Kwh ajouté c’est possible ? (Vu que dans les logs cela est indiqué).
Ok thanks for the clarification 👍🏻
Concerning a sensor which indicates the added Kwh, is it possible? (Seeing as this is indicated in the logs).
"Rate" reviens systématiquement dans la configuration avec la méthode de configuration du plugin sur HOOBS. Peut-être une erreur...
Le plugin fonctionne mais quand je créer un raccourcis sur l'écran d'accueil pour seulement déverrouiller la borne, je suis obligé de le relancer plusieurs fois pour que cela fonction. Sauf quand le plugin vient de démarrer ! Du coup je suis obligé de créer une automatisation qui lancé le déverrouillage, ensuite verifier si la borne est déverrouillé et si cela n'est pas le cas alors il répète plusieurs fois l'operation.
"Rate" systematically returns to the configuration with the plugin configuration method on HOOBS. Maybe a mistake...
The plugin works but when I create a shortcut on the home screen to just unlock the terminal, I have to relaunch it several times for it to work. Except when the plugin has just started! So I have to create an automation which launches the unlocking, then check if the terminal is unlocked and if this is not the case then it repeats the operation several times.
Try changing the refreshInterval from 24 to 8 or 4 maybe that get you under the token timeout that you have.
Ok, j'ai modifié de 24 à 8 comme conseillé.
Voici se que j'ai dans le journal :
Ok, I changed from 24 to 8 as advised.
Here is what I have in the diary:
26/12/2023 à 15:31:34Wallbox BridgeWallbox SBERRORError getting charger status Request failed with status code 401
26/12/2023 à 15:31:34Wallbox BridgeWallbox SBWARNING{
"code": 401,
"message": "Your token is expired, please renew it."
}
26/12/2023 à 15:31:34Wallbox BridgeWallbox SBERRORError updating status.
TypeError: Cannot read properties of undefined (reading 'status')
at wallboxPlatform.getStatus (/var/lib/hoobs/wallboxbridge/node_modules/homebridge-my-wallbox/wallboxplatform.js:394:54)
at runMicrotasks (
Bonjour,
avant tout merci pour votre travail pour ce plugin très intéressant. Je l’ai installé ce matin et celui fonctionne parfaitement.
Mais bizarrement quand je laisse passer une plugin ou bien quelques heures et bien je n’arrive plus a déverrouiller ma borne.
Voici le l’erreur que je reçois :
BridgeWallbox SBWARNING{ "code": 401, "message": "Your token is expired, please renew it." }
Pour information, j’utilise une WallBox Copper Business SB.
Si vous savez d’où provient le problème ?
Good morning,
first of all thank you for your work for this very interesting plugin. I installed it this morning and it works perfectly.
But strangely when I let a day or a few hours pass, I can no longer unlock my terminal.
Here is the error I receive:
BridgeWallbox SBWARNING{ "code": 401, "message": "Your token is expired, please renew it." }
For information, I use a WallBox Copper Business SB.
Do you know where the problem is coming from?