JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
953 stars 80 forks source link

Tapo crashing HA #544

Closed FilipeOS closed 2 months ago

FilipeOS commented 2 months ago

Description

Hi, since I updated my HA to 2024.4.0 my HA was crashing and restarting over and over again. After many tries I found that it was only happen when I was outside home or at night.

Basically when my C210 (v2) cameras go on (don't happen to 510W) the Home assistant goes nuts.

I have always privacy mode enabled and turn off when I need.

Reproduction Steps

Disable privacy mode in cameras

Expected behavior

Don't crash at all

If applicable, add error logs.

2024-04-06 01:06:23.127 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration omie which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.130 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration samsungtv_smart which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.132 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.134 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.136 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_gateway3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.138 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.140 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration eeveemobility which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.142 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration illuminance which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.144 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.146 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration candy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.147 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.150 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration tapo_control which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.152 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration smartthings which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-04-06 01:06:23.569 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly 2024-04-06 01:06:23.724 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=275 from 2024-04-05 23:57:11.039989) 2024-04-06 01:06:26.940 WARNING (ImportExecutor_0) [homeassistant.components.camera] SUPPORT_ON_OFF was used from xiaomi_cloud_map_extractor, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.ON_OFF instead, please report it to the author of the 'xiaomi_cloud_map_extractor' custom integration 2024-04-06 01:06:26.944 WARNING (ImportExecutor_0) [homeassistant.components.camera] SUPPORT_ON_OFF was used from xiaomi_cloud_map_extractor, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.ON_OFF instead, please report it to the author of the 'xiaomi_cloud_map_extractor' custom integration 2024-04-06 01:06:27.279 WARNING (MainThread) [homeassistant.helpers.entity] Entity camera.roborock_s5_0 (<class 'custom_components.xiaomi_cloud_map_extractor.camera.VacuumCamera'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature.ON_OFF: 1>, please create a bug report at https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation 2024-04-06 01:06:27.281 WARNING (MainThread) [homeassistant.helpers.entity] Entity camera.roborock_s5_1 (<class 'custom_components.xiaomi_cloud_map_extractor.camera.VacuumCamera'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature.ON_OFF: 1>, please create a bug report at https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation 2024-04-06 01:06:29.625 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-04-06 01:06:30.598 WARNING (ImportExecutor_0) [homeassistant.const] ELECTRIC_POTENTIAL_VOLT was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please report it to the author of the 'smartthings' custom integration 2024-04-06 01:06:30.605 WARNING (ImportExecutor_0) [homeassistant.const] POWER_WATT was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please report it to the author of the 'smartthings' custom integration 2024-04-06 01:06:30.611 WARNING (ImportExecutor_0) [homeassistant.const] TEMP_CELSIUS was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'smartthings' custom integration 2024-04-06 01:06:30.617 WARNING (ImportExecutor_0) [homeassistant.const] TEMP_FAHRENHEIT was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please report it to the author of the 'smartthings' custom integration 2024-04-06 01:06:30.633 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'smartthings' accesses hass.components.cloud. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from cloud directly at custom_components/smartthings/smartapp.py, line 232: and hass.components.cloud.async_active_subscription(), please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.213 WARNING (MainThread) [custom_components.smartthings.smartapp] Some device attributes may not receive push updates and there may be subscription creation failures under app '86b4f40f-9a8f-4d94-9d93-021756dfbead' because 54 subscriptions are required but there is a limit of 40 per app 2024-04-06 01:06:32.447 ERROR (MainThread) [custom_components.smartthings.smartapp] Failed to create subscription for 'custom.disabledCapabilities' under app '86b4f40f-9a8f-4d94-9d93-021756dfbead': Unprocessable Entity (422): {"requestId": "1866196014981051118", "error": {"code": "LimitError", "message": "subscription limit exceeded", "details": []}} 2024-04-06 01:06:32.448 ERROR (MainThread) [custom_components.smartthings.smartapp] Failed to create subscription for 'samsungvd.firmwareVersion' under app '86b4f40f-9a8f-4d94-9d93-021756dfbead': Unprocessable Entity (422): {"requestId": "790880699327373426", "error": {"code": "LimitError", "message": "subscription limit exceeded", "details": []}} 2024-04-06 01:06:32.459 ERROR (MainThread) [custom_components.smartthings.smartapp] Failed to create subscription for 'tag.tagButton' under app '86b4f40f-9a8f-4d94-9d93-021756dfbead': Unprocessable Entity (422): {"requestId": "4946790399733745358", "error": {"code": "LimitError", "message": "subscription limit exceeded", "details": []}} 2024-04-06 01:06:32.460 ERROR (MainThread) [custom_components.smartthings.smartapp] Failed to create subscription for 'samsungce.deviceIdentification' under app '86b4f40f-9a8f-4d94-9d93-021756dfbead': Unprocessable Entity (422): {"requestId": "5844157063419572406", "error": {"code": "LimitError", "message": "subscription limit exceeded", "details": []}} 2024-04-06 01:06:32.467 ERROR (MainThread) [custom_components.smartthings.smartapp] Failed to create subscription for 'samsungce.softwareUpdate' under app '86b4f40f-9a8f-4d94-9d93-021756dfbead': Unprocessable Entity (422): {"requestId": "7467692016209867932", "error": {"code": "LimitError", "message": "subscription limit exceeded", "details": []}} 2024-04-06 01:06:32.470 ERROR (MainThread) [custom_components.smartthings.smartapp] Failed to create subscription for 'custom.error' under app '86b4f40f-9a8f-4d94-9d93-021756dfbead': Unprocessable Entity (422): {"requestId": "2406550104252557779", "error": {"code": "LimitError", "message": "subscription limit exceeded", "details": []}} 2024-04-06 01:06:32.490 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_COOL was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.COOLING instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.499 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_FAN was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.FAN instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.507 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_HEAT was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.HEATING instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.515 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_IDLE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.IDLE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.522 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.529 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.COOL instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.542 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_DRY was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.DRY instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.555 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_FAN_ONLY was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.FAN_ONLY instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.574 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.584 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT_COOL was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT_COOL instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.594 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.602 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.610 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_SWING_MODE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.SWING_MODE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.617 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.624 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE_RANGE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE_RANGE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.637 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_PRESET_MODE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.650 WARNING (MainThread) [homeassistant.components.fan] SUPPORT_SET_SPEED was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.660 WARNING (MainThread) [homeassistant.components.fan] SUPPORT_SET_SPEED was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.696 WARNING (MainThread) [homeassistant.components.cover] DEVICE_CLASS_DOOR was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverDeviceClass.DOOR instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.706 WARNING (MainThread) [homeassistant.components.cover] DEVICE_CLASS_GARAGE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverDeviceClass.GARAGE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.714 WARNING (MainThread) [homeassistant.components.cover] DEVICE_CLASS_SHADE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverDeviceClass.SHADE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.724 WARNING (MainThread) [homeassistant.components.cover] SUPPORT_CLOSE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.CLOSE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.739 WARNING (MainThread) [homeassistant.components.cover] SUPPORT_OPEN was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.OPEN instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.751 WARNING (MainThread) [homeassistant.components.cover] SUPPORT_SET_POSITION was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.SET_POSITION instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.768 WARNING (MainThread) [homeassistant.components.cover] DEVICE_CLASS_DOOR was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverDeviceClass.DOOR instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.778 WARNING (MainThread) [homeassistant.components.cover] DEVICE_CLASS_GARAGE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverDeviceClass.GARAGE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.787 WARNING (MainThread) [homeassistant.components.cover] DEVICE_CLASS_SHADE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverDeviceClass.SHADE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.801 WARNING (MainThread) [homeassistant.components.cover] SUPPORT_CLOSE was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.CLOSE instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.815 WARNING (MainThread) [homeassistant.components.cover] SUPPORT_OPEN was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.OPEN instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.824 WARNING (MainThread) [homeassistant.components.cover] SUPPORT_SET_POSITION was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.SET_POSITION instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.870 WARNING (MainThread) [homeassistant.components.binary_sensor] DEVICE_CLASS_DOOR was used from smartthings, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.DOOR instead, please create a bug report at https://github.com/veista/smartthings/issues 2024-04-06 01:06:32.878 WARNING (MainThread) [homeassistant.components.binary_sensor] DEVICE_CLASS_MOISTURE was used from smartthings, this is a deprecated constant which will be removed in HA Co

Device Firmware

1.3.11 build 231115 rel 85532n(4555)

Integration Version

5.4.17

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Pi4 model b

Search for similar issues

Yes

Additional information

No response

FilipeOS commented 2 months ago

error_log-2.txt

Full log

JurajNyiri commented 2 months ago

I went through the logs, this does not look like an integration issue.

HA integrations generally cannot crash HA itself.

I see a lot of:

2024-04-06 07:54:36.206 WARNING (MainThread) [homeassistant.components.rest.util] REST result could not be parsed as JSON
2024-04-06 07:54:40.409 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_miot camera took longer than the scheduled update interval 0:01:00
2024-04-06 07:54:44.088 WARNING (MainThread) [homeassistant.components.camera] Updating tapo_control camera took longer than the scheduled update interval 0:00:30

Given that it also affects another camera, there is probably something wrong on your environment and/or HA. You can try using onvif integration instead and see if it happens there as well.