mitch-dc / volkswagen_we_connect_id

Apache License 2.0
200 stars 52 forks source link

Home Assistant restarts when loading integration #8

Closed WeirdSience closed 2 years ago

WeirdSience commented 2 years ago

Version of the custom_component

Installation method (hacs / manual)

Hacs

Installation method of hass (venv, docker, hassio,...)

Configuration


Add your configuration here.

Describe the bug

When login information is entered and correct car vin is presented HA restarts and keps restarting with 2min interval until integration is inactivated.

Debug log

Logger: homeassistant.components.binary_sensor Source: custom_components/volkswagen_we_connect_id/binary_sensor.py:163 Integration: Binär sensor (documentation, issues) First occurred: 19:56:14 (2 occurrences) Last logged: 19:56:14

Error adding entities for domain binary_sensor with platform volkswagen_we_connect_id Error while setting up volkswagen_we_connect_id platform for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _async_write_ha_state state = self._stringify_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 511, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 205, in state return STATE_ON if self.is_on else STATE_OFF File "/config/custom_components/volkswagen_we_connect_id/binary_sensor.py", line 163, in is_on return state == self.entity_description.on_value.value File "/usr/local/lib/python3.9/enum.py", line 429, in getattr raise AttributeError(name) from None AttributeError: value

Add your logs here.

mitch-dc commented 2 years ago

Can you try to update to the latest version?

mitch-dc commented 2 years ago

Should be fixed in latest versions!

WeirdSience commented 2 years ago

Tested latest version, HA crashes and re-boots until integration is de-activated and no fault log this time. Sorry for not having more info for fault finding.

mitch-dc commented 2 years ago

Do you have non-id cars in the same account?

WeirdSience commented 2 years ago

No other cars in the account. Will try a new installation of HA to see if it fixes the problem.

WeirdSience commented 2 years ago

Tried a new HA installation on a WM and it crashed first time installing the integration due to lack of memory. Increased from 1GB-2GB and now the integration is running OK. Could be that my RP 3B+ with 1GB RAM can´t handle the integration as it seems to use a lot of memory.

BugBasher28 commented 2 years ago

I'm also experiencing this. In superviser I can see the mem use of the core increase, then the system becomes unresponsive until a watchdog triggers or I manually reset my RP. Looks like some sort of memory leak...

BugBasher28 commented 2 years ago

I did a clean install and can confirm. See attached memory usage graph. At 16:55 I restarted HASS after installing the files in custom_components and a few minutes later I added the integration. That's when the memory usage goes up. HASS then becomes slower and then it reboots. At 18:01 I disabled the integration and at 18:20 I manually restarted HASS. Screenshot 2022-02-08 182853 @mitch-dc Please let me know if I can support you with any other logs.

mitch-dc commented 2 years ago

Do you have the same logs as the reporter?

BugBasher28 commented 2 years ago

No I don't think so. Not very skilled but i changed logging level for this integration to debug, re-activated it and while the memory quickly went up, this is what the log looked like:

2022-02-08 19:41:47 INFO (MainThread) [homeassistant.setup] Setting up volkswagen_we_connect_id 2022-02-08 19:41:47 INFO (MainThread) [homeassistant.setup] Setup of domain volkswagen_we_connect_id took 0.0 seconds 2022-02-08 19:41:49 INFO (SyncWorker_7) [weconnect] Login successful 2022-02-08 19:41:49 INFO (SyncWorker_7) [weconnect] Token refreshed 2022-02-08 19:42:03 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.volkswagen_we_connect_id 2022-02-08 19:42:03 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.volkswagen_we_connect_id 2022-02-08 19:42:03 INFO (SyncWorker_3) [homeassistant.loader] Loaded button from homeassistant.components.button 2022-02-08 19:42:03 INFO (MainThread) [homeassistant.setup] Setting up button 2022-02-08 19:42:03 INFO (MainThread) [homeassistant.setup] Setup of domain button took 0.0 seconds 2022-02-08 19:42:03 INFO (MainThread) [homeassistant.components.button] Setting up button.volkswagen_we_connect_id 2022-02-08 19:42:27 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 14.334 seconds (success: True) 2022-02-08 19:42:50 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.051 seconds (success: True) 2022-02-08 19:43:13 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.801 seconds (success: True) 2022-02-08 19:43:36 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.261 seconds (success: True) 2022-02-08 19:44:00 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 14.276 seconds (success: True) 2022-02-08 19:44:23 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.515 seconds (success: True) 2022-02-08 19:44:46 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.330 seconds (success: True) 2022-02-08 19:45:09 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.975 seconds (success: True) 2022-02-08 19:45:32 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id.sensor] Finished fetching volkswagen_we_connect_id_sensors data in 13.616 seconds (success: True)

mitch-dc commented 2 years ago

Think i have an idea what goes wrong. Will take a look tomorrow!

mitch-dc commented 2 years ago

Working on changing from polling to push (listing to events on de VW Api) but the API has some issues this morning for me (and other dutchies)

mitch-dc commented 2 years ago

Should be fixed in https://github.com/mitch-dc/volkswagen_we_connect_id/releases/tag/v0.0.8

BugBasher28 commented 2 years ago

Didn't work for me. Current logs (after updating to v0.0.8 and activating the integration in the integration view):


2022-02-10 12:30:28 INFO (MainThread) [custom_components.hacs] Loading known repositories 2022-02-10 12:49:41 INFO (SyncWorker_6) [homeassistant.util.package] Attempting install of weconnect==0.36 2022-02-10 12:50:53 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of ascii_magic==1.6 2022-02-10 12:51:54 INFO (MainThread) [homeassistant.setup] Setting up volkswagen_we_connect_id 2022-02-10 12:51:54 INFO (MainThread) [homeassistant.setup] Setup of domain volkswagen_we_connect_id took 0.0 seconds 2022-02-10 12:52:24 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 13.469 seconds (success: True) 2022-02-10 12:52:24 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.volkswagen_we_connect_id 2022-02-10 12:52:24 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.volkswagen_we_connect_id 2022-02-10 12:52:24 INFO (SyncWorker_4) [homeassistant.loader] Loaded button from homeassistant.components.button 2022-02-10 12:52:24 INFO (MainThread) [homeassistant.setup] Setting up button 2022-02-10 12:52:24 INFO (MainThread) [homeassistant.setup] Setup of domain button took 0.0 seconds 2022-02-10 12:52:24 INFO (MainThread) [homeassistant.components.button] Setting up button.volkswagen_we_connect_id 2022-02-10 12:52:34 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform volkswagen_we_connect_id is taking over 10 seconds. 2022-02-10 12:52:34 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform volkswagen_we_connect_id is taking over 10 seconds. 2022-02-10 12:52:38 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 14.039 seconds (success: True) 2022-02-10 12:52:39 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 14.174 seconds (success: True) 2022-02-10 12:53:01 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 12.918 seconds (success: True) 2022-02-10 12:53:24 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 13.187 seconds (success: True) 2022-02-10 12:53:47 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 13.042 seconds (success: True) 2022-02-10 12:54:10 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 13.134 seconds (success: True) 2022-02-10 12:54:32 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 12.324 seconds (success: True)


Memory still spikes. After deactivating the integration the memory doesn't drop, but flattens. Screenshot 2022-02-10 125642

BugBasher28 commented 2 years ago

Same behaviour in v0.0.8.1 too.

mitch-dc commented 2 years ago

Hmm don't know what this is, are you using a RPi?

joakimberglund commented 2 years ago

Got exactly the same behaviour with v0.0.85 on a RPi (3B+) Except I have less loaded and start from about 45% mem usage, it still spikes to 95%+ where it stops working. Nothing in the logs

BugBasher28 commented 2 years ago

This is my setup (this integration currently not installed):

System Health

version core-2022.2.9
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.92-v7
arch armv7l
timezone Europe/Stockholm
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4958 Installed Version | 1.23.0 Stage | running Available Repositories | 1067 Downloaded Repositories | 6
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 7.4 -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.9 disk_total | 57.8 GB disk_used | 7.4 GB healthy | true supported | true board | rpi3 supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), Node-RED (11.0.3), Terminal & SSH (9.3.0), Home Assistant Google Drive Backup (0.105.2), Check Home Assistant configuration (3.10.0), Z-Wave JS (0.1.54), AdGuard Home (4.4.4), Samba share (9.5.1)
Lovelace dashboards | 1 -- | -- resources | 0 views | 3 mode | storage

Edit: And this is the log file when I run Profiler while installing and activating the integration.

Log 2022-03-01 09:41:16 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of weconnect==0.37.0 2022-03-01 09:41:16 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2022-03-01 09:41:16 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2022-03-01 09:41:20 CRITICAL (SyncWorker_1) [homeassistant.components.profiler] Memory Growth: [('function', 72405, 72405), ('dict', 64654, 64654), ('tuple', 56389, 56389), ('cell', 36782, 36782), ('list', 31119, 31119), ('weakref', 20063, 20063), ('builtin_function_or_method', 10144, 10144), ('type', 7985, 7985), ('getset_descriptor', 7246, 7246), ('set', 6578, 6578), ('Parameter', 5273, 5273), ('property', 4617, 4617), ('method', 3643, 3643), ('member_descriptor', 3635, 3635), ('wrapper_descriptor', 3041, 3041), ('ModuleSpec', 2892, 2892), ('module', 2890, 2890), ('SourceFileLoader', 2713, 2713), ('method_descriptor', 2391, 2391), ('Schema', 2248, 2248), ('frozenset', 1514, 1514), ('staticmethod', 1503, 1503), ('OrderedDict', 1316, 1316), ('classmethod', 1225, 1225), ('_abc_data', 1203, 1203), ('PathMetadata', 1191, 1191), ('DistInfoDistribution', 1190, 1190), ('RepositoryData', 1067, 1067), ('RepositoryContent', 1067, 1067), ('RepositoryStatus', 1067, 1067), ('Validate', 1067, 1067), ('RepositoryReleases', 1067, 1067), ('RepositoryPath', 1067, 1067), ('HacsManifest', 1067, 1067), ('ABCMeta', 1062, 1062), ('_GenericAlias', 973, 973), ('ModelField', 892, 892), ('FieldInfo', 892, 892), ('HassJob', 851, 851), ('_tuplegetter', 825, 825), ('_UnionGenericAlias', 793, 793), ('Optional', 758, 758), ('Required', 697, 697), ('HacsIntegrationRepository', 675, 675), ('mappingproxy', 653, 653), ('Field', 635, 635), ('InstanceState', 520, 520), ('_Listener', 516, 516), ('weakproxy', 516, 516), ('Context', 485, 485), ('PosixPath', 466, 466), ('EntryPoint', 464, 464), ('cython_function_or_method', 460, 460), ('Integration', 453, 453), ('ForwardRef', 451, 451), ('FileFinder', 434, 434), ('HassLogger', 423, 423), ('TraversibleType', 405, 405), ('FieldDescriptor', 400, 400), ('_FieldProperty', 396, 396), ('AIOGitHubAPIRepositoryTreeContent', 392, 392), ('deque', 387, 387), ('RepeatedCompositeFieldContainer', 383, 383), ('RegistryEntry', 380, 380), ('MovedAttribute', 351, 351), ('Attribute', 323, 323), ('All', 317, 317), ('Signature', 314, 314), ('itemgetter', 312, 312), ('ValueMetadata', 307, 307), ('FieldDescriptorProto', 298, 298), ('EnumMeta', 284, 284), ('State', 284, 284), ('attrgetter', 282, 282), ('CType', 277, 277), ('_CallableGenericAlias', 268, 268), ('Events', 261, 261), ('States', 258, 258), ('HacsPluginRepository', 250, 250), ('NullMessageListener', 225, 225), ('partial', 221, 221), ('ResourceRoute', 210, 210), ('DebugActions', 210, 210), ('UnicodeValueChecker', 206, 206), ('And', 202, 202), ('Value', 202, 202), ('Client', 201, 201), ('Event', 191, 191), ('_EmptyListener', 188, 188), ('Service', 187, 187), ('MovedModule', 182, 182), ('AttributeEvent', 174, 174), ('CField', 170, 170), ('symbol', 156, 156), ('memoized_property', 154, 154), ('Packet_metaclass', 153, 153), ('RGBColor', 149, 149), ('Descriptor', 145, 145), ('_DataclassParams', 143, 143), ('GeneratedProtocolMessageType', 143, 143)] 2022-03-01 09:41:34 CRITICAL (SyncWorker_6) [homeassistant.components.profiler] Memory Growth: [('weakref', 20066, 3), ('function', 72408, 3), ('SplitResult', 36, 3), ('cell', 36784, 2), ('HassJob', 853, 2), ('State', 286, 2), ('mappingproxy', 654, 1), ('ConnectionEventsDispatch', 3, 1), ('LogEntry', 9, 1), ('DNSPointer', 32, 1), ('DNSService', 17, 1), ('DNSText', 17, 1), ('DNSNsec', 12, 1), ('Connection', 4, 1), ('RootTransaction', 1, 1), ('_ConnectionFairy', 1, 1), ('JoinedConnectionEventsDispatch', 1, 1)] 2022-03-01 09:41:44 CRITICAL (SyncWorker_5) [homeassistant.components.profiler] Memory Growth: [('mappingproxy', 656, 2), ('State', 288, 2), ('WSMessage', 9, 1), ('DNSPointer', 33, 1), ('DNSService', 18, 1), ('DNSText', 18, 1), ('DNSNsec', 13, 1)] 2022-03-01 09:41:55 CRITICAL (SyncWorker_1) [homeassistant.components.profiler] Memory Growth: [('dict', 64748, 94), ('CaseInsensitiveDict', 93, 43), ('SsdpDevice', 19, 7), ('DNSPointer', 35, 2), ('DNSService', 20, 2), ('DNSText', 20, 2), ('cell', 36785, 1), ('EventTask', 2, 1), ('_UnionGenericAlias', 794, 1), ('MimeType', 7, 1), ('MultiDictProxy', 19, 1), ('MultiDict', 13, 1), ('DNSNsec', 14, 1), ('ClientConnectionError', 2, 1), ('DNSQuestion', 2, 1)] 2022-03-01 09:42:04 CRITICAL (SyncWorker_6) [homeassistant.components.profiler] Memory Growth: [('tuple', 56448, 59), ('DNSQuestion', 52, 50), ('set', 6625, 47), ('dict', 64775, 27), ('DNSPointer', 48, 13), ('weakref', 20076, 10), ('list', 31123, 4), ('mappingproxy', 658, 2), ('State', 290, 2), ('WSMessage', 10, 1), ('Handle', 26, 1), ('WSPacket', 1, 1), ('WSJSONPacketFrame', 1, 1), ('WSPacketFrameHeader', 1, 1), ('DNSService', 21, 1), ('DNSText', 21, 1)] 2022-03-01 09:42:14 CRITICAL (SyncWorker_1) [homeassistant.components.profiler] Memory Growth: [('TimerHandle', 123, 18), ('Context', 502, 17), ('dict', 64782, 7), ('mappingproxy', 660, 2), ('State', 292, 2), ('DNSService', 22, 1), ('DNSText', 22, 1)] 2022-03-01 09:42:25 CRITICAL (SyncWorker_0) [homeassistant.components.profiler] Memory Growth: [('tuple', 56690, 242), ('dict', 64891, 109), ('list', 31179, 56), ('frozenset', 1541, 27), ('immutabledict', 91, 18), ('BindParameter', 47, 14), ('itemgetter', 324, 12), ('Comparator', 89, 12), ('AnnotatedColumn', 35, 12), ('_CompileLabel', 21, 12), ('_ORMColumnEntity', 13, 12), ('weakref', 20087, 11), ('function', 72419, 11), ('cell', 36794, 9), ('BinaryExpression', 31, 7), ('_truncated_label', 16, 6), ('Select', 11, 4), ('mappingproxy', 663, 3), ('_anonymous_label', 10, 3), ('State', 295, 3), ('QueryEventsDispatch', 6, 2), ('SQLiteCompiler', 9, 2), ('CacheKey', 9, 2), ('prefix_anon_map', 9, 2), ('ORMSelectCompileState', 5, 2), ('FromLinter', 6, 2), ('CursorResultMetaData', 5, 2), ('BooleanClauseList', 8, 2), ('default_compile_options', 5, 2), ('States', 260, 2), ('Response', 4, 2), ('Query', 2, 2), ('URL', 18, 1), ('SessionEventsDispatch', 3, 1), ('Grouping', 6, 1), ('UnaryExpression', 3, 1), ('Session', 6, 1), ('InstanceState', 521, 1), ('WeakInstanceDict', 2, 1), ('_OffsetLimitParam', 2, 1), ('PayloadAccessError', 1, 1)] 2022-03-01 09:42:29 INFO (SyncWorker_3) [homeassistant.util.package] Attempting install of ascii_magic==1.6 2022-03-01 09:42:34 CRITICAL (SyncWorker_1) [homeassistant.components.profiler] Memory Growth: [('weakref', 20096, 9), ('dict', 64896, 5), ('tuple', 56694, 4), ('mappingproxy', 665, 2), ('State', 297, 2), ('TaskStepMethWrapper', 1, 1), ('KeyedRef', 37, 1), ('SessionEventsDispatch', 4, 1), ('Session', 7, 1), ('WeakInstanceDict', 3, 1)] 2022-03-01 09:42:44 CRITICAL (SyncWorker_4) [homeassistant.components.profiler] Memory Growth: [('tuple', 56703, 9), ('weakref', 20102, 6), ('function', 72424, 5), ('builtin_function_or_method', 10149, 5), ('list', 31183, 4), ('cell', 36797, 3), ('Future', 35, 2), ('Condition', 60, 1), ('_WorkItem', 4, 1), ('SplitResult', 37, 1)] 2022-03-01 09:42:55 CRITICAL (SyncWorker_0) [homeassistant.components.profiler] Memory Growth: [('CaseInsensitiveDict', 97, 4), ('mappingproxy', 667, 2), ('State', 299, 2), ('SessionEventsDispatch', 5, 1), ('Session', 8, 1), ('WeakInstanceDict', 4, 1)] 2022-03-01 09:43:04 CRITICAL (SyncWorker_2) [homeassistant.components.profiler] Memory Growth: [('dict', 64916, 20), ('CaseInsensitiveDict', 104, 7), ('weakref', 20107, 5), ('mappingproxy', 669, 2), ('State', 301, 2), ('KeyedRef', 38, 1)] 2022-03-01 09:43:14 CRITICAL (SyncWorker_0) [homeassistant.components.profiler] Memory Growth: [('weakref', 20115, 8), ('dict', 64923, 7), ('TaskStepMethWrapper', 2, 1)] 2022-03-01 09:43:25 CRITICAL (SyncWorker_6) [homeassistant.components.profiler] Memory Growth: [('mappingproxy', 671, 2), ('State', 303, 2), ('WSMessage', 11, 1), ('KeyedRef', 39, 1), ('SessionEventsDispatch', 6, 1), ('Session', 9, 1), ('WeakInstanceDict', 5, 1)] 2022-03-01 09:43:34 CRITICAL (SyncWorker_4) [homeassistant.components.profiler] Memory Growth: [('dict', 64938, 15), ('weakref', 20121, 6), ('CaseInsensitiveDict', 107, 3), ('mappingproxy', 673, 2), ('State', 305, 2), ('KeyedRef', 40, 1), ('SessionEventsDispatch', 7, 1), ('Session', 10, 1), ('WeakInstanceDict', 6, 1)] 2022-03-01 09:43:44 CRITICAL (SyncWorker_6) [homeassistant.components.profiler] Memory Growth: [('dict', 65669, 731), ('function', 73102, 678), ('tuple', 57281, 578), ('weakref', 20327, 206), ('type', 8148, 163), ('list', 31301, 118), ('module', 2978, 88), ('ModuleSpec', 2980, 88), ('SourceFileLoader', 2801, 88), ('cell', 36863, 66), ('property', 4673, 56), ('getset_descriptor', 7301, 55), ('Status', 54, 46), ('EnumMeta', 324, 40), ('member_descriptor', 3659, 24), ('HassLogger', 441, 18), ('Domain', 16, 16), ('classmethod', 1239, 14), ('FileFinder', 445, 11), ('OpenState', 10, 10), ('ChargingState', 9, 9), ('Badge', 9, 9), ('ObserverPriority', 8, 8), ('ChargeMode', 8, 8), ('CarType', 8, 8), ('BatterySupport', 7, 7), ('ChargeModeEnum', 7, 7), ('EngineType', 7, 7), ('PlugType', 7, 7), ('ObserverEvent', 6, 6), ('EnrollmentStatus', 6, 6), ('ControlOperation', 5, 5), ('ChargeType', 5, 5), ('ClimatizationState', 5, 5), ('PlugConnectionState', 5, 5), ('PlugLockState', 5, 5), ('ErrorEventType', 5, 5), ('AUTHTYPE', 5, 5), ('AccessType', 4, 4), ('Modes', 4, 4), ('MaximumChargeCurrent', 4, 4), ('UnlockPlugState', 4, 4), ('OverallState', 4, 4), ('WindowHeatingState', 4, 4), ('DevicePlatform', 4, 4), ('Role', 4, 4), ('_GenericAlias', 976, 3), ('PlaceHolder', 94, 3), ('Schema', 2251, 3), ('UnitInCar', 3, 3), ('LockState', 3, 3), ('LightState', 3, 3), ('AVAILABILITY', 3, 3), ('staticmethod', 1505, 2), ('TypeVar', 120, 2), ('Required', 699, 2), ('Service', 189, 2), ('BatteryPowerLevel', 2, 2), ('UserRoleStatus', 2, 2), ('frozenset', 1542, 1), ('ABCMeta', 1063, 1), ('_abc_data', 1204, 1), ('_UnionGenericAlias', 795, 1), ('mappingproxy', 674, 1), ('ForwardRef', 452, 1), ('Namespace', 3, 1), ('NullHandler', 16, 1), ('State', 306, 1), ('_FakeSignal', 1, 1), ('PayloadAccessError', 2, 1), ('ConfigFlow', 1, 1)] 2022-03-01 09:43:56 CRITICAL (SyncWorker_1) [homeassistant.components.profiler] Memory Growth: [('dict', 66028, 359), ('list', 31415, 114), ('CaseInsensitiveDict', 160, 53), ('Cookie', 49, 49), ('tuple', 57324, 43), ('OrderedDict', 1347, 31), ('RequestsCookieJar', 19, 17), ('builtin_function_or_method', 10163, 14), ('HTTPResponse', 14, 13), ('DefaultCookiePolicy', 15, 13), ('cell', 36875, 12), ('SsdpDevice', 30, 11), ('PreparedRequest', 10, 9), ('Condition', 68, 8), ('function', 73109, 7), ('HTTPMessage', 7, 7), ('HTTPHeaderDict', 6, 6), ('Response', 10, 6), ('weakref', 20333, 6), ('deque', 393, 6), ('frozenset', 1547, 5), ('Retry', 7, 4), ('HTTPAdapter', 6, 4), ('PoolManager', 6, 4), ('RecentlyUsedContainer', 6, 4), ('SSLContext', 11, 3), ('SSLSocket', 8, 3), ('Timeout', 13, 3), ('PoolKey', 4, 3), ('LifoQueue', 4, 3), ('HTTPSConnectionPool', 3, 3), ('HTTPSConnection', 3, 3), ('mappingproxy', 676, 2), ('State', 308, 2), ('AddressableDict', 2, 2), ('Session', 11, 1), ('Request', 9, 1), ('WeConnect', 1, 1), ('SessionManager', 1, 1), ('WeConnectSession', 1, 1), ('SessionUser', 1, 1), ('Quoter', 1, 1)] 2022-03-01 09:44:04 CRITICAL (SyncWorker_1) [homeassistant.components.profiler] Memory Growth: [('dict', 66723, 695), ('set', 7254, 629), ('AddressableAttribute', 426, 426), ('function', 73301, 192), ('tuple', 57475, 151), ('list', 31487, 72), ('GenericCapability', 70, 70), ('cell', 36919, 44), ('AddressableDict', 29, 27), ('weakref', 20354, 21), ('PngImageFile', 15, 15), ('iTXt', 14, 14), ('Error', 13, 13), ('ChangeableAttribute', 13, 13), ('method_descriptor', 2401, 10), ('property', 4683, 10), ('method', 3652, 9), ('type', 8155, 7), ('BufferedReader', 12, 7), ('deque', 400, 7), ('BytesIO', 7, 7), ('builtin_function_or_method', 10169, 6), ('getset_descriptor', 7307, 6), ('module', 2984, 6), ('ModuleSpec', 2986, 6), ('SourceFileLoader', 2807, 6), ('FileIO', 15, 6), ('ObserverEvent', 12, 6), ('member_descriptor', 3662, 3), ('ABCMeta', 1066, 3), ('_abc_data', 1207, 3), ('Condition', 71, 3), ('mappingproxy', 678, 2), ('Engine', 3, 2), ('State', 310, 2), ('AliasChangeableAttribute', 2, 2), ('Timer', 2, 2), ('Window', 2, 2), ('classmethod', 1240, 1), ('HassLogger', 442, 1), ('SSLContext', 12, 1), ('list_iterator', 4, 1), ('DNSPointer', 49, 1), ('SSLSocket', 9, 1), ('Timeout', 14, 1), ('ChargeMode', 9, 1), ('PoolKey', 5, 1), ('LifoQueue', 5, 1), ('traceback', 2, 1), ('HTTPSConnectionPool', 4, 1), ('HTTPSConnection', 4, 1), ('OAuth2Token', 1, 1), ('Vehicle', 1, 1), ('AddressableList', 1, 1), ('Controls', 1, 1), ('ClimatizationTimer', 1, 1), ('ChargingProfiles', 1, 1), ('CapabilityStatus', 1, 1), ('BatteryStatus', 1, 1), ('ChargingStatus', 1, 1), ('ChargingSettings', 1, 1), ('ChargeModeList', 1, 1), ('PlugStatus', 1, 1), ('ClimatizationStatus', 1, 1), ('ClimatizationSettings', 1, 1), ('WindowHeatingStatus', 1, 1), ('RangeStatus', 1, 1), ('ReadinessStatus', 1, 1), ('ConnectionState', 1, 1), ('ConnectionWarning', 1, 1), ('RecurringTimer', 1, 1), ('SingleTimer', 1, 1), ('_idat', 1, 1), ('AttributeError', 1, 1)] 2022-03-01 09:44:09 INFO (MainThread) [homeassistant.setup] Setting up volkswagen_we_connect_id 2022-03-01 09:44:09 INFO (MainThread) [homeassistant.setup] Setup of domain volkswagen_we_connect_id took 0.0 seconds 2022-03-01 09:44:15 CRITICAL (SyncWorker_5) [homeassistant.components.profiler] Memory Growth: [('cell', 36938, 19), ('function', 73311, 10), ('weakref', 20360, 6), ('FlagValue', 28, 5), ('tuple', 57479, 4), ('frozenset', 1550, 3), ('Timeout', 16, 2), ('mappingproxy', 680, 2), ('Url', 2, 1), ('ConfigEntry', 23, 1), ('NoPayload', 1, 1), ('Ether', 1, 1), ('IP', 1, 1), ('UDP', 1, 1), ('BOOTP', 1, 1), ('DHCP', 1, 1), ('_GatheringFuture', 1, 1)] 2022-03-01 09:44:24 CRITICAL (SyncWorker_4) [homeassistant.components.profiler] Memory Growth: [('dict', 66776, 53), ('list', 31534, 47), ('builtin_function_or_method', 10175, 6), ('method', 3657, 5), ('weakref', 20364, 4), ('deque', 404, 4), ('PngImageFile', 19, 4), ('BytesIO', 11, 4), ('Condition', 74, 3), ('iTXt', 17, 3), ('mappingproxy', 682, 2), ('State', 312, 2), ('KeyedRef', 41, 1), ('SessionEventsDispatch', 8, 1), ('WeakInstanceDict', 7, 1), ('SSLContext', 13, 1), ('DNSText', 23, 1), ('SSLSocket', 10, 1), ('PoolKey', 6, 1), ('LifoQueue', 6, 1), ('HTTPSConnectionPool', 5, 1), ('HTTPSConnection', 5, 1), ('PngStream', 1, 1)] 2022-03-01 09:44:36 CRITICAL (SyncWorker_4) [homeassistant.components.profiler] Memory Growth: [('dict', 66823, 47), ('list', 31548, 14), ('PngImageFile', 30, 11), ('BytesIO', 22, 11), ('iTXt', 27, 10), ('AddressableAttribute', 430, 4), ('weakref', 20366, 2), ('mappingproxy', 684, 2), ('State', 314, 2), ('Image', 2, 2), ('Debouncer', 6, 1), ('DataUpdateCoordinator', 2, 1)] 2022-03-01 09:44:42 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 15.069 seconds (success: True) 2022-03-01 09:44:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.volkswagen_we_connect_id 2022-03-01 09:44:42 INFO (MainThread) [homeassistant.components.button] Setting up button.volkswagen_we_connect_id 2022-03-01 09:44:42 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.volkswagen_we_connect_id 2022-03-01 09:44:43 INFO (MainThread) [homeassistant.components.number] Setting up number.volkswagen_we_connect_id 2022-03-01 09:44:43 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.volkswagen_we_connect_id entity: button.volkswagen_id_id_3_start_climate 2022-03-01 09:44:43 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.volkswagen_we_connect_id entity: button.volkswagen_id_id_3_toggle_ac_charge_speed 2022-03-01 09:44:45 CRITICAL (SyncWorker_5) [homeassistant.components.profiler] Memory Growth: [('dict', 66881, 58), ('list', 31590, 42), ('deque', 418, 14), ('method', 3669, 12), ('weakref', 20375, 9), ('KeyedRef', 48, 7), ('StreamReader', 12, 7), ('socket', 40, 6), ('_SelectorSocketTransport', 18, 6), ('TransportSocket', 23, 6), ('CIMultiDict', 34, 6), ('ResponseHandler', 12, 6), ('HttpResponseParser', 12, 6), ('TimerContext', 13, 6), ('SelectorKey', 26, 4), ('Handle', 29, 3), ('DNSNsec', 15, 1), ('PngImageFile', 31, 1), ('BytesIO', 23, 1), ('iTXt', 28, 1)] 2022-03-01 09:44:52 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform volkswagen_we_connect_id is taking over 10 seconds. 2022-03-01 09:44:52 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform volkswagen_we_connect_id is taking over 10 seconds. 2022-03-01 09:44:53 WARNING (MainThread) [homeassistant.components.number] Setup of number platform volkswagen_we_connect_id is taking over 10 seconds. 2022-03-01 09:44:56 CRITICAL (SyncWorker_8) [homeassistant.components.profiler] Memory Growth: [('dict', 67062, 181), ('list', 31708, 118), ('cell', 37021, 83), ('function', 73393, 82), ('tuple', 57528, 49), ('weakref', 20412, 37), ('method', 3702, 33), ('Context', 522, 20), ('VolkswagenIdEntityDescription', 17, 17), ('builtin_function_or_method', 10188, 13), ('VolkswagenIdBinaryEntityDescription', 13, 13), ('OrderedDict', 1356, 9), ('HassJob', 862, 9), ('ABCMeta', 1072, 6), ('_abc_data', 1213, 6), ('module', 2988, 4), ('property', 4687, 4), ('ModuleSpec', 2990, 4), ('SourceFileLoader', 2811, 4), ('Condition', 78, 4), ('deque', 422, 4), ('Service', 193, 4), ('InstanceState', 525, 4), ('SSLContext', 17, 4), ('EntityPlatform', 82, 4), ('list_iterator', 8, 4), ('SSLSocket', 14, 4), ('HTTPSConnection', 9, 4), ('HTTPMessage', 10, 3), ('frozenset', 1553, 3), ('BufferedReader', 15, 3), ('Field', 638, 3), ('Future', 38, 3), ('NodeListClass', 30, 3), ('PngImageFile', 34, 3), ('BytesIO', 26, 3), ('iTXt', 31, 3), ('_ZoneTaskContext', 3, 3), ('_GeneratorContextManager', 8, 2), ('generator', 9, 2), ('type', 8157, 2), ('FileIO', 17, 2), ('mappingproxy', 686, 2), ('_DataclassParams', 145, 2), ('Thread', 12, 2), ('RegistryEntry', 382, 2), ('State', 316, 2), ('States', 262, 2), ('_ZoneTimeoutManager', 3, 2), ('traceback', 3, 1), ('UnsupportedOperation', 1, 1), ('managedbuffer', 3, 1), ('memoryview', 3, 1), ('Event', 192, 1), ('hamt', 38, 1), ('hamt_bitmap_node', 39, 1), ('Semaphore', 34, 1), ('_FilterableJob', 125, 1), ('Events', 262, 1), ('_WorkItem', 5, 1), ('SocketIO', 2, 1), ('VolkswagenIDStartClimateButton', 1, 1), ('VolkswagenIDToggleACChargeSpeed', 1, 1)] 2022-03-01 09:45:02 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 19.545 seconds (success: True) 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_climatisation_state 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_remaining_climatisation_time 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_target_temperature_c 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_target_temperature_f 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_unit_in_car 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_charging_state 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_remaining_charging_time 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_charging_mode 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_charge_power 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_charge_rate 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_charging_settings 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_charge_type 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_max_charge_current_ac 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_target_state_of_charge 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_state_of_charge 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_range 2022-03-01 09:45:02 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.volkswagen_we_connect_id entity: sensor.volkswagen_id_id_3_battery_power_level 2022-03-01 09:45:04 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 21.431 seconds (success: True) 2022-03-01 09:45:04 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 21.501 seconds (success: True) 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.volkswagen_we_connect_id entity: number.volkswagen_id_id_3_target_state_of_charge 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.volkswagen_we_connect_id entity: number.volkswagen_id_id_3_target_climate_temperature 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_climatisation_without_external_power 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_climatisation_at_unlock 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_zone_front_left_enabled 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_zone_front_right_enabled 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_window_heating_enabled 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_front_window_heating_state 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_rear_window_heating_state 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_auto_unlock_plug_when_charged 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_plug_connection_state 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_plug_lock_state 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_insufficient_battery_level_warning 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_car_is_online 2022-03-01 09:45:04 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.volkswagen_we_connect_id entity: binary_sensor.volkswagen_id_id_3_car_is_active 2022-03-01 09:45:09 CRITICAL (SyncWorker_5) [homeassistant.components.profiler] Memory Growth: [('dict', 67106, 44), ('Context', 554, 32), ('list', 31731, 23), ('tuple', 57548, 20), ('weakref', 20422, 10), ('deque', 431, 9), ('mappingproxy', 690, 4), ('KeyedRef', 52, 4), ('State', 320, 4), ('socket', 43, 3), ('SelectorKey', 29, 3), ('Handle', 32, 3), ('_SelectorSocketTransport', 21, 3), ('TransportSocket', 26, 3), ('CIMultiDict', 37, 3), ('ResponseHandler', 15, 3), ('HttpResponseParser', 15, 3), ('TimerContext', 16, 3), ('StreamReader', 15, 3), ('LogEntry', 11, 2), ('HTTPMessage', 11, 1), ('HTTPResponse', 15, 1), ('method', 3703, 1), ('frame', 118, 1), ('builtin_function_or_method', 10189, 1), ('generator', 10, 1), ('tuple_iterator', 2, 1), ('Lock', 71, 1), ('SessionEventsDispatch', 9, 1), ('Session', 12, 1), ('WeakInstanceDict', 8, 1)] 2022-03-01 09:45:14 CRITICAL (SyncWorker_0) [homeassistant.components.profiler] Memory Growth: [('tuple', 58401, 853), ('dict', 67398, 292), ('cell', 37250, 229), ('function', 73532, 139), ('list', 31862, 131), ('set', 7353, 99), ('method', 3794, 91), ('weakref', 20498, 76), ('frozenset', 1629, 76), ('InstanceState', 589, 64), ('immutabledict', 129, 38), ('BindParameter', 81, 34), ('HassJob', 895, 33), ('RegistryEntry', 414, 32), ('States', 294, 32), ('Events', 294, 32), ('VolkswagenIDSensor', 30, 30), ('itemgetter', 353, 29), ('_CompileLabel', 50, 29), ('_ORMColumnEntity', 40, 27), ('Context', 579, 25), ('AnnotatedColumn', 58, 23), ('mappingproxy', 710, 20), ('State', 340, 20), ('Comparator', 108, 19), ('_truncated_label', 34, 18), ('BinaryExpression', 45, 14), ('Select', 22, 11), ('Variant', 31, 8), ('_anonymous_label', 18, 8), ('SQLiteCompiler', 16, 7), ('CacheKey', 16, 7), ('prefix_anon_map', 16, 7), ('QueryEventsDispatch', 12, 6), ('default_compile_options', 11, 6), ('ORMSelectCompileState', 10, 5), ('FromLinter', 11, 5), ('CursorResultMetaData', 10, 5), ('BooleanClauseList', 13, 5), ('Integer', 30, 4), ('String', 26, 4), ('Query', 5, 3), ('attrgetter', 284, 2), ('methodcaller', 17, 2), ('LRUCache', 13, 2), ('PopulateDict', 20, 2), ('defaultdict', 73, 2), ('Boolean', 7, 2), ('WeakSequence', 13, 2), ('portable_instancemethod', 20, 2), ('PropRegistry', 10, 2), ('AnnotatedTable', 4, 2), ('ImmutableProperties', 5, 2), ('Insert', 5, 2), ('Delete', 5, 2), ('Update', 5, 2), ('InsertDMLState', 5, 2), ('SimpleResultMetaData', 5, 2), ('Float', 3, 1), ('ColumnCollection', 9, 1), ('ImmutableColumnCollection', 9, 1), ('max', 3, 1), ('Label', 2, 1), ('Grouping', 7, 1), ('ClauseList', 8, 1), ('UnaryExpression', 4, 1), ('CachingEntityRegistry', 3, 1), ('_MapperEntity', 3, 1), ('tuplegetter', 3, 1), ('DeviceEntry', 48, 1), ('_OffsetLimitParam', 3, 1), ('ColumnClause', 2, 1), ('_ORMJoin', 1, 1), ('TargetSoCNumber', 1, 1), ('TargetClimateNumber', 1, 1), ('Subquery', 1, 1), ('ColumnSet', 1, 1)] 2022-03-01 09:45:24 CRITICAL (SyncWorker_7) [homeassistant.components.profiler] Memory Growth: [('dict', 67417, 19), ('set', 7362, 9), ('weakref', 20506, 8), ('list', 31865, 3), ('RawRequestMessage', 10, 2), ('CIMultiDictProxy', 18, 2), ('StreamWriter', 9, 2), ('UrlMappingMatchInfo', 9, 2), ('mappingproxy', 711, 1), ('URL', 19, 1), ('Context', 580, 1), ('SessionEventsDispatch', 10, 1), ('Session', 13, 1), ('SimpleCookie', 20, 1), ('State', 341, 1), ('RequestHandler', 7, 1), ('HttpRequestParser', 7, 1), ('AccessLogger', 7, 1), ('Request', 10, 1), ('WeakInstanceDict', 9, 1)] 2022-03-01 09:45:36 CRITICAL (SyncWorker_0) [homeassistant.components.profiler] Memory Growth: [('weakref', 20508, 2), ('Event', 193, 1), ('mappingproxy', 712, 1), ('State', 342, 1)] 2022-03-01 09:45:44 CRITICAL (SyncWorker_2) [homeassistant.components.profiler] Memory Growth: [('dict', 67434, 17), ('list', 31870, 5), ('weakref', 20510, 2)] 2022-03-01 09:45:49 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 13.187 seconds (success: True) 2022-03-01 09:45:54 CRITICAL (SyncWorker_6) [homeassistant.components.profiler] Memory Growth: [('dict', 67488, 54), ('CaseInsensitiveDict', 170, 10), ('weakref', 20519, 9), ('SsdpDevice', 37, 7), ('mappingproxy', 713, 1), ('URL', 20, 1), ('State', 343, 1)] 2022-03-01 09:46:05 CRITICAL (SyncWorker_2) [homeassistant.components.profiler] Memory Growth: [('mappingproxy', 714, 1), ('Context', 581, 1), ('State', 344, 1)] 2022-03-01 09:46:14 CRITICAL (SyncWorker_4) [homeassistant.components.profiler] Memory Growth: [] 2022-03-01 09:46:24 CRITICAL (SyncWorker_2) [homeassistant.components.profiler] Memory Growth: [('dict', 67526, 38), ('weakref', 20528, 9), ('list', 31873, 3), ('tuple', 58404, 3), ('CaseInsensitiveDict', 172, 2), ('Request', 11, 1)] 2022-03-01 09:46:33 DEBUG (MainThread) [custom_components.volkswagen_we_connect_id] Finished fetching volkswagen_we_connect_id data in 14.565 seconds (success: True) 2022-03-01 09:46:36 CRITICAL (SyncWorker_8) [homeassistant.components.profiler] Memory Growth: [('weakref', 20532, 4), ('mappingproxy', 716, 2), ('State', 346, 2), ('SessionEventsDispatch', 11, 1), ('Session', 14, 1), ('WeakInstanceDict', 10, 1)] 2022-03-01 09:46:44 CRITICAL (SyncWorker_7) [homeassistant.components.profiler] Memory Growth: [] 2022-03-01 09:46:53 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2022-03-01 09:46:53 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2022-03-01 09:46:54 CRITICAL (SyncWorker_2) [homeassistant.components.profiler] Memory Growth: [('weakref', 20542, 10), ('mappingproxy', 718, 2), ('State', 348, 2)] 2022-03-01 09:46:59 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2022-03-01 09:46:59 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service

Corresponding memory graph:

Screenshot 2022-03-01 100556

WeirdSience commented 2 years ago

Changed from Raspberry Pi 3B+ to a Raspberry Pi 4 (4GB) and the problem is gone. Stable memory usage when the integration is activated.

BugBasher28 commented 2 years ago

Not the fix I was hoping for, but I want this so bad... I may have to upgrade.

joakimberglund commented 2 years ago

Changed from Raspberry Pi 3B+ to a Raspberry Pi 4 (4GB) and the problem is gone. Stable memory usage when the integration is activated.

Tried that and while it works then it's only because it has the free memory for it. The integration still allocates 300-400M ram and that works on a pi4 4GB but it won't on a pi3 1GB.

BastianKamp commented 2 years ago

Somethin new here? Have a Pi 3B too and it crashes after a few minutes after activating this integration.

BugBasher28 commented 2 years ago

Tried v0.0.8.7 and it seems like the high mem usage has dissapeared. Looking at the change log I can't really see why, but tbh I don't really care. I just saw a short spike in RAM (like 10%, 100M) on init, but after that it dropped and my Pi3 is now running smoothly.

BastianKamp commented 2 years ago

Broken again with 0.9.0 for me.

BugBasher28 commented 2 years ago

Affirm. Didn't notice this as I have moved to a VM setup, but the integration uses 150-200 MB RAM. My total is exceeding 1GB which it wasn't the other day.