@@ -3496,12 +3496,13 @@ async def get_all_systems(self, already_configured_lc_serials: list = None):
34963496 _LAST_UPDATE_TS = 0
34973497
34983498 async def update (self ):
3499- if self ._LAST_UPDATE_TS + UPDATE_INTERVALS [self ._UPDATE_INTERVAL ] < time ():
3499+ a_time = time ()
3500+ if self ._LAST_UPDATE_TS + UPDATE_INTERVALS [self ._UPDATE_INTERVAL ] < a_time :
35003501 success = await self .app_update ()
35013502 if not success :
35023503 await self .web_update ()
35033504
3504- self ._LAST_UPDATE_TS = time ()
3505+ self ._LAST_UPDATE_TS = a_time
35053506 else :
35063507 _LOGGER .debug (f"update(): SKIPP UPDATE REQUEST - last update was at { strftime ('%Y-%m-%d %H:%M:%S' , localtime (self ._LAST_UPDATE_TS ))} and we are still within the update interval of '{ self ._UPDATE_INTERVAL } ' [{ UPDATE_INTERVALS [self ._UPDATE_INTERVAL ]} seconds]" )
35073508
@@ -7341,6 +7342,11 @@ def wallbox_1_comfort_set_icmax(self) -> float:
73417342 async def set_nv_wallbox_1_comfort_set_icmax (self , value : float ) -> bool :
73427343 return await self .app_set_wallbox_icmax (value_to_set = value , wallbox_num = 1 , sync = True )
73437344
7345+ @property
7346+ def wallbox_1_current_apparent_charging_power (self ) -> float :
7347+ a_wallbox_obj = self ._app_get_wallbox_object_at_index (0 )
7348+ return a_wallbox_obj .get ("chargingCurrents" , {}).get ("currentApparentChargingPowerInKw" , None )
7349+
73447350
73457351 ## WALLBOX: 2
73467352 @property
@@ -7402,6 +7408,12 @@ def wallbox_2_comfort_set_icmax(self) -> float:
74027408 async def set_nv_wallbox_2_comfort_set_icmax (self , value : float ) -> bool :
74037409 return await self .app_set_wallbox_icmax (value_to_set = value , wallbox_num = 2 , sync = True )
74047410
7411+ @property
7412+ def wallbox_2_current_apparent_charging_power (self ) -> float :
7413+ a_wallbox_obj = self ._app_get_wallbox_object_at_index (1 )
7414+ return a_wallbox_obj .get ("chargingCurrents" , {}).get ("currentApparentChargingPowerInKw" , None )
7415+
7416+
74057417 ## WALLBOX: 3
74067418 @property
74077419 def wallbox_3_temperature (self ) -> str :
@@ -7462,6 +7474,12 @@ def wallbox_3_comfort_set_icmax(self) -> float:
74627474 async def set_nv_wallbox_3_comfort_set_icmax (self , value : float ) -> bool :
74637475 return await self .app_set_wallbox_icmax (value_to_set = value , wallbox_num = 3 , sync = True )
74647476
7477+ @property
7478+ def wallbox_3_current_apparent_charging_power (self ) -> float :
7479+ a_wallbox_obj = self ._app_get_wallbox_object_at_index (2 )
7480+ return a_wallbox_obj .get ("chargingCurrents" , {}).get ("currentApparentChargingPowerInKw" , None )
7481+
7482+
74657483 ## WALLBOX: 4
74667484 @property
74677485 def wallbox_4_temperature (self ) -> str :
@@ -7522,6 +7540,12 @@ def wallbox_4_comfort_set_icmax(self) -> float:
75227540 async def set_nv_wallbox_4_comfort_set_icmax (self , value : float ) -> bool :
75237541 return await self .app_set_wallbox_icmax (value_to_set = value , wallbox_num = 4 , sync = True )
75247542
7543+ @property
7544+ def wallbox_4_current_apparent_charging_power (self ) -> float :
7545+ a_wallbox_obj = self ._app_get_wallbox_object_at_index (3 )
7546+ return a_wallbox_obj .get ("chargingCurrents" , {}).get ("currentApparentChargingPowerInKw" , None )
7547+
7548+
75257549 ###################################
75267550 # SWITCH-STUFF
75277551 ###################################
0 commit comments