Bonjour,
Je viens de migrer sous RPI4B, Debian 12, PHP 8, Jeedom 4.4.19 et j’ai un petit problème de remontée des données sur ton plugin MyWallbox.
Erreur sur la fonction cron du plugin : Unsupported operand types: float + string
La seule donnée manquante dans l’équipement est « Sessions de charge ». J’imagine donc que le problème vient de là mais je ne sais investiguer plus loin avec ses logs en mode Debug :
3660|[2025-05-21 17:05:06][INFO] : CRON - Equipement 764 : Borne recharge | autorefresh = */5 * * * *
3661|[2025-05-21 17:05:06][INFO] : ***** DEBUT execute(refresh) *****
3662|[2025-05-21 17:05:06][DEBUG] : getChargerStatus(XXXXX)
3663|[2025-05-21 17:05:06][DEBUG] : getWallboxToken(xxxx@gmail.com)
3664|[2025-05-21 17:05:07][INFO] : Authentification SUCCES
3665|[2025-05-21 17:05:07][DEBUG] : chargerid : [XXXXX]
3666|[2025-05-21 17:05:07][DEBUG] : Conversion 2025-05-21 10:44:53 (UTC) en 21-05-2025 12:44:53 (Europe/Brussels)
3667|[2025-05-21 17:05:07][INFO] : Enregistrement configuration : Copper Business SN XXXXX
3668|[2025-05-21 17:05:07][DEBUG] : ******* preSave() *******
3669|[2025-05-21 17:05:07][DEBUG] : ******* preUpdate() *******
3670|[2025-05-21 17:05:07][DEBUG] : ******* postUpdate() *******
3671|[2025-05-21 17:05:07][DEBUG] : ******* postSave() DEBUT *******
3672|[2025-05-21 17:05:07][DEBUG] : mywallbox Object ( [id:protected] => 764 [name:protected] => Borne recharge [logicalId:protected] => [generic_type:protected] => [object_id:protected] => 10 [eqType_name:protected] => mywallbox [isVisible:protected] => 1 [isEnable:protected] => 1 [configuration:protected] => Array ( [createtime] => 2024-10-25 21:58:18 [autorefresh] => */5 * * * * [chargerid] => XXXXX [widgetTemplate] => 1 [updatetime] => 2025-05-01 12:15:08 [part_number] => CPB1-W-2-4-8-008-K [energy_price] => 0.1856 [software_currentVersion] => 6.7.25 [software_latestVersion] => 6.7.25 [maxValue] => 25 ) [timeout:protected] => [category:protected] => {"heating":"0","security":"0","energy":"1","light":"0","opening":"0","automatism":"0","multimedia":"0","default":"0"} [display:protected] => {"backGraph::info":0} [order:protected] => 9999 [comment:protected] => [tags:protected] => [_debug:protected] => [_object:protected] => jeeObject Object ( [id:protected] => 10 [name:protected] => Garage [father_id:protected] => 4 [isVisible:protected] => 1 [position:protected] => 10 [configuration:protected] => {"parentNumber":3,"tagColor":"#000000","tagTextColor":"#FFFFFF","desktop::summaryTextColor":"","mobile::summaryTextColor":"","hideOnDashboard":"0","summary::global::security":"0","summary::global::motion":"0","summary::global::door":"0","summary::global::windows":"0","summary::global::shutter":"0","summary::global::light":"0","summary::global::outlet":"0","summary::global::temperature":"0","summary::global::humidity":"0","summary::global::luminosity":"0","summary::global::power":"0","summary::hide::desktop::security":"0","summary::hide::desktop::motion":"0","summary::hide::desktop::door":"0","summary::hide::desktop::windows":"0","summary::hide::desktop::shutter":"0","summary::hide::desktop::light":"0","summary::hide::desktop::outlet":"0","summary::hide::desktop::temperature":"0","summary::hide::desktop::humidity":"0","summary::hide::desktop::luminosity":"0","summary::hide::desktop::power":"0","summary::hide::mobile::security":"0","summary::hide::mobile::motion":"0","summary::hide::mobile::door":"0","summary::hide::mobile::windows":"0","summary::hide::mobile::shutter":"0","summary::hide::mobile::light":"0","summary::hide::mobile::outlet":"0","summary::hide::mobile::temperature":"0","summary::hide::mobile::humidity":"0","summary::hide::mobile::luminosity":"0","summary::hide::mobile::power":"0","summary":{"security":[],"motion":[],"door":[],"windows":[],"shutter":[],"light":[],"outlet":[],"temperature":[],"humidity":[],"luminosity":[],"power":[]},"useCustomColor":"1","hideOnOverview":"0","synthToAction":"synthToDashboard","synthToView":"1","synthToPlan":"1","synthToPlan3d":"1","info::type":"room","info::orientation":"0","info::space":"","useBackground":"0"} [display:protected] => {"icon":"<i class=\"icon jeedom-garage-ferme\"><\/i>","tagColor":"#4a8fc4","tagTextColor":"#ffffff","desktop::summaryTextColor":"#000000","dashboard::size":"","sendToApp":"0"} [image:protected] => [] [_child:protected] => Array ( ) [_changed:protected] => [_summaryChanged:protected] => ) [_needRefreshWidget:protected] => [_timeoutUpdated:protected] => [_batteryUpdated:protected] => [_changed:protected] => [_cmds:protected] => Array ( [refresh..] => mywallboxCmd Object ( [id:protected] => 5860 [logicalId:protected] => refresh [generic_type:protected] => [eqType:protected] => mywallbox [name:protected] => Rafraîchir [order:protected] => 0 [type:protected] => action [subType:protected] => other [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => [configuration:protected] => Array ( [options] => Array ( [cmd_lier] => 0 [type] => 0 [afficher] => 0 [historiser] => 0 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 0 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"icon":"<i class=\"fas fa-sync\"><\/i>","invertBinary":"0"} [value:protected] => [isVisible:protected] => 1 [alert:protected] => [] [_collectDate:protected] => [_valueDate:protected] => [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [tokenhs..] => mywallboxCmd Object ( [id:protected] => 5879 [logicalId:protected] => tokenhs [generic_type:protected] => [eqType:protected] => mywallbox [name:protected] => Nombre erreur token [order:protected] => 19 [type:protected] => info [subType:protected] => numeric [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => [configuration:protected] => {"options":{"type":0,"afficher":0,"historiser":0,"min":0,"max":0,"inverser":0,"unite":0},"minValue":"","maxValue":""} [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"showStatsOnmobile":0,"showStatsOndashboard":0,"invertBinary":"0"} [value:protected] => [isVisible:protected] => 0 [alert:protected] => [] [_collectDate:protected] => [_valueDate:protected] => [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [tokenhs..info] => mywallboxCmd Object ( [id:protected] => 5879 [logicalId:protected] => tokenhs [generic_type:protected] => [eqType:protected] => mywallbox [name:protected] => Nombre erreur token [order:protected] => 19 [type:protected] => info [subType:protected] => numeric [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => [configuration:protected] => Array ( [options] => Array ( [type] => 0 [afficher] => 0 [historiser] => 0 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 0 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"showStatsOnmobile":0,"showStatsOndashboard":0,"invertBinary":"0"} [value:protected] => [isVisible:protected] => 0 [alert:protected] => [] [_collectDate:protected] => 2025-05-21 17:00:48 [_valueDate:protected] => 2025-05-15 20:40:06 [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [name..info] => mywallboxCmd Object ( [id:protected] => 5861 [logicalId:protected] => name [generic_type:protected] => GENERIC_INFO [eqType:protected] => mywallbox [name:protected] => Nom [order:protected] => 1 [type:protected] => info [subType:protected] => string [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => [configuration:protected] => Array ( [options] => Array ( [type] => 0 [afficher] => 0 [historiser] => 0 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 0 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"generic_type":"GENERIC_INFO","invertBinary":"0"} [value:protected] => [isVisible:protected] => 1 [alert:protected] => [] [_collectDate:protected] => 2025-05-21 17:00:10 [_valueDate:protected] => 2025-05-08 08:35:10 [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [valmaxpower..info] => mywallboxCmd Object ( [id:protected] => 5870 [logicalId:protected] => valmaxpower [generic_type:protected] => [eqType:protected] => mywallbox [name:protected] => Valeur puissance maximum [order:protected] => 10 [type:protected] => info [subType:protected] => numeric [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => A [configuration:protected] => Array ( [options] => Array ( [type] => 0 [afficher] => 0 [historiser] => 0 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 1 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"showStatsOnmobile":0,"showStatsOndashboard":0,"invertBinary":"0"} [value:protected] => [isVisible:protected] => 0 [alert:protected] => [] [_collectDate:protected] => 2025-05-21 17:00:10 [_valueDate:protected] => 2025-05-08 08:35:10 [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [lastsync..info] => mywallboxCmd Object ( [id:protected] => 5862 [logicalId:protected] => lastsync [generic_type:protected] => GENERIC_INFO [eqType:protected] => mywallbox [name:protected] => Dernière synchronisation [order:protected] => 2 [type:protected] => info [subType:protected] => string [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => [configuration:protected] => Array ( [options] => Array ( [type] => 0 [afficher] => 0 [historiser] => 0 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 0 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"generic_type":"GENERIC_INFO","invertBinary":"0"} [value:protected] => [isVisible:protected] => 1 [alert:protected] => [] [_collectDate:protected] => 2025-05-21 17:00:10 [_valueDate:protected] => 2025-05-21 12:45:08 [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [lockcontrolid..info] => mywallboxCmd Object ( [id:protected] => 5865 [logicalId:protected] => lockcontrolid [generic_type:protected] => [eqType:protected] => mywallbox [name:protected] => Accès borne [order:protected] => 5 [type:protected] => info [subType:protected] => numeric [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => [configuration:protected] => Array ( [options] => Array ( [type] => 0 [afficher] => 0 [historiser] => 0 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 0 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::default","mobile":"core::default"} [display:protected] => {"showStatsOnmobile":0,"showStatsOndashboard":0,"invertBinary":"0"} [value:protected] => [isVisible:protected] => 0 [alert:protected] => [] [_collectDate:protected] => 2025-05-21 17:00:10 [_valueDate:protected] => 2025-05-08 08:35:10 [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) [signalwifi..info] => mywallboxCmd Object ( [id:protected] => 5874 [logicalId:protected] => signalwifi [generic_type:protected] => [eqType:protected] => mywallbox [name:protected] => Signal WiFi [order:protected] => 14 [type:protected] => info [subType:protected] => numeric [eqLogic_id:protected] => 764 [isHistorized:protected] => 0 [unite:protected] => % [configuration:protected] => Array ( [options] => Array ( [type] => 0 [afficher] => 1 [historiser] => 1 [min] => 0 [max] => 0 [inverser] => 0 [unite] => 1 ) [minValue] => [maxValue] => ) [template:protected] => {"dashboard":"core::line","mobile":"core::default"} [display:protected] => {"icon":"<i class=\"fas fa-wifi\"><\/i>","invertBinary":"0","showStatsOnmobile":0,"showStatsOndashboard":0} [value:protected] => [isVisible:protected] => 1 [alert:protected] => [] [_collectDate:protected] => 2025-05-21 17:00:10 [_valueDate:protected] => 2025-05-21 12:30:09 [_eqLogic:protected] => mywallbox Object *RECURSION* [_needRefreshWidget:protected] => [_needRefreshAlert:protected] => [_changed:protected] => ) ) )
3673|[2025-05-21 17:05:07][DEBUG] : ******* postSave() FIN *******
3674|[2025-05-21 17:05:07][DEBUG] : status[0] = DISCONNECTED / chargecontrol-icon: fa-plug-circle-xmark / text: Déconnecté
3675|[2025-05-21 17:05:07][DEBUG] : état de la borne = Déverrouiller
3676|[2025-05-21 17:05:07][ERROR] : Erreur sur la fonction cron du plugin : Unsupported operand types: float + string
3677|[2025-05-21 17:05:08][DEBUG] : --DEBUT toHtml(1) : version=dashboard
3678|[2025-05-21 17:05:08][DEBUG] : --FIN toHtml()
Es-tu capable de m’aider pour éviter les milliers d’alertes dans les messages Jeedom ?
A ta dispo pour investiguer et un merci sincère pour ce plugin bien pratique.