home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.81k stars 30.9k forks source link

statistics blocks Home Assistant from wrapping up the start up phase #123314

Open Juffle74 opened 3 months ago

Juffle74 commented 3 months ago

The problem

After 2024.8.0 update, in log:

Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info...

What version of Home Assistant Core has the issue?

2024.8.0

What was the last working version of Home Assistant Core?

2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Enregistreur: homeassistant.core
Source: core.py:552
S'est produit pour la première fois: 19:34:41 (1 occurrences)
Dernier enregistrement: 19:34:41

Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: wled.light, shelly.update, tuya.scene, logger, matter, tradfri, hue.binary_sensor, hassio.sensor, scene, matter.lock, co2signal, network, mobile_app.sensor, shelly.button, intent, statistics.sensor, tuya.sensor, group.binary_sensor, environment_canada, logbook, webostv, search, input_number, ping.binary_sensor, environment_canada.weather, homekit_controller.button, timer, template.fan, mobile_app, hacs, hacs.sensor, tradfri.light, backup, person, matter.fan, tuya.fan, scrape.sensor, onboarding, matter.switch, tplink.switch, esphome.sensor, midea_ac_lan.light, midea_ac_lan, nest.climate, broadlink, blueprint, hardkernel, hassio.binary_sensor, tplink.binary_sensor, switch, tuya.button, frontend, tplink.light, wled.sensor, midea_ac_lan.sensor, vacuum, upnp.sensor, esphome.button, homekit_controller, dhcp, mqtt.binary_sensor, system_health, event, valve, system_log, esphome, broadlink.sensor, mqtt, midea_ac_lan.fan, mqtt.switch, group.switch, upnp.binary_sensor, speedtestdotnet.sensor, tuya, energy, nut, waqi, hue.scene, template.sensor, config, http, alarm_control_panel, tradfri.sensor, water_heater, oralb.sensor, hassio, stt, shelly.binary_sensor, wake_word, number, nanoleaf, media_player, tuya.climate, homeassistant_alerts, tuya.select, tplink.number, midea_ac_lan.number, mobile_app.binary_sensor, media_source, hue.event, shelly.cover, template, wled.update, mqtt.button, waqi.sensor, tuya.siren, google_translate.tts, tradfri.fan, nanoleaf.button, device_tracker, webostv.media_player, hardware, input_datetime, ping.sensor, matter.binary_sensor, ping.device_tracker, image_upload, systemmonitor, watchman.sensor, tuya.number, tplink.sensor, counter, ffmpeg, hue, application_credentials, midea_ac_lan.switch, update, tplink.climate, file_upload, google_translate, shelly, hue.light, xiaomi_ble, automation, humidifier, watchman, wled, tplink.button, tplink.select, upnp, group, conversation, default_config, homekit_controller.binary_sensor, oralb, tts, environment_canada.camera, select, scrape, matter.number, input_text, nest.sensor, speedtestdotnet, group.light, cover, systemmonitor.sensor, dnsip, shelly.light, climate, tag, homeassistant.scene, mobile_app.notify, ping, xiaomi_ble.event, sun.sensor, usb, mobile_app.device_tracker, shelly.event, midea_ac_lan.humidifier, wled.switch, webhook, matter.select, text, sun, co2signal.sensor, mqtt.number, broadlink.switch, diagnostics, shelly.switch, assist_pipeline, input_boolean, recorder, hacs.update, tuya.alarm_control_panel, google_assistant_sdk, weather, zeroconf, input_select, thread, auth, esphome.update, zone, map, shelly.select, esphome.binary_sensor, ssdp, midea_ac_lan.select, min_max.sensor, webostv.notify, wled.select, min_max, persistent_notification, cloud.tts, tplink, broadlink.remote, matter.sensor, tuya.vacuum, matter.climate, nest.camera, siren, fan, my, lock, wled.button, light, matter.event, hassio.update, binary_sensor, tuya.camera, device_automation, tradfri.switch, wled.number, tuya.binary_sensor, shelly.climate, mqtt.light, tuya.switch, midea_ac_lan.water_heater, homeassistant, tradfri.cover, tplink.fan, matter.light, systemmonitor.binary_sensor, nanoleaf.light, schedule, hue.sensor, sql.sensor, environment_canada.sensor, camera, xiaomi_ble.binary_sensor, shelly.sensor, nanoleaf.event, midea_ac_lan.climate, shelly.valve, mqtt.sensor, matter.update, analytics, tuya.humidifier, lovelace, input_button, shelly.text, nest, notify, tuya.cover, cast.media_player, uptime.sensor, esphome.fan, homekit_controller.sensor, history, manual.alarm_control_panel, midea_ac_lan.binary_sensor, button, cast, bluetooth_adapters, matter.cover, energy.sensor, websocket_api, tuya.light, script, shelly.number, sensor, sql, uptime, repairs, api, bluetooth, remote, dnsip.sensor, trace, hue.switch, xiaomi_ble.sensor, google_assistant_sdk.notify, nut.sensor, cloud, midea_ac_lan.lock, stream The system is waiting for tasks: {<Task finished name='Task-2486' coro=<StatisticsSensor._initialize_from_database() done, defined at /usr/src/homeassistant/homeassistant/components/statistics/sensor.py:634> result=None>, <Task pending name='Task-2483' coro=<StatisticsSensor._initialize_from_database() running at /usr/src/homeassistant/homeassistant/components/statistics/sensor.py:644> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.12/asyncio/futures.py:387, Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='Task-2485' coro=<StatisticsSensor._initialize_from_database() running at /usr/src/homeassistant/homeassistant/components/statistics/sensor.py:644> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.12/asyncio/futures.py:387, Task.task_wakeup()]> cb=[set.remove()]>}

Additional information

No response

bdraco commented 3 months ago

{<Task finished name='Task-2486' coro=<StatisticsSensor._initialize_from_database() done, defined at /usr/src/homeassistant/homeassistant/components/statistics/sensor.py:634> result=None>, <Task pending name='Task-2483' coro=<StatisticsSensor._initialize_from_database() running at /usr/src/homeassistant/homeassistant/components/statistics/sensor.py:644> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.12/asyncio/futures.py:387, Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='Task-2485' coro=<StatisticsSensor._initialize_from_database() running at /usr/src/homeassistant/homeassistant/components/statistics/sensor.py:644> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.12/asyncio/futures.py:387, Task.task_wakeup()]> cb=[set.remove()]>}

home-assistant[bot] commented 3 months ago

Hey there @thomdietrich, mind taking a look at this issue as it has been labeled with an integration (statistics) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `statistics` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign statistics` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


statistics documentation statistics source (message by IssueLinks)

garry0garry commented 2 months ago

Home Assistant 2024.8.3

Logger: homeassistant.core
Source: core.py:552
First occurred: 6:36:27 PM (1 occurrences)
Last logged: 6:36:27 PM

Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: camera, cover, google_maps.device_tracker, stt, ecowitt, reolink.sensor, blitzortung.sensor, default_config, scene, blueprint, cloud.tts, energy.sensor, schedule, braviatv.media_player, text, sensor, ping.binary_sensor, mqtt.select, braviatv.button, input_boolean, mqtt.number, tuya_local.number, system_log, command_line.sensor, device_tracker, climate, energy, esphome.binary_sensor, mqtt.lock, persistent_notification, systemmonitor.sensor, reolink.camera, localtuya.sensor, map, reolink.update, samsungtv.media_player, braviatv.remote, reolink.light, onvif, sun.sensor, reolink, xiaomi_miio.switch, version.sensor, xiaomi_gateway3.number, light, reolink.switch, shell_command, esphome.sensor, remote, frontend, mqtt.sensor, intent, notify, dhcp, xiaomi_gateway3.binary_sensor, api, onvif.camera, asuswrt, google_translate.tts, geo_location, ecowitt.sensor, search, nmap_tracker.device_tracker, hass_diagnostics, media_source, bluetooth, reolink.select, yandex_station, upnp, folder.sensor, asuswrt.sensor, trace, config, siren, xiaomi_gateway3.climate, reolink.binary_sensor, http, network, backup, system_health, yandex_smart_home, systemmonitor, version, ffmpeg, select, template, switch, command_line, hacs.switch, homeassistant, number, mqtt.update, samsungtv.remote, esphome, person, hacs, input_select, my, tuya_local, yandex_station.camera, mobile_app.notify, onvif.sensor, xiaomi_gateway3.cover, onvif.binary_sensor, tag, ping.device_tracker, alarm_control_panel, yandex_station.media_player, tuya_local.sensor, automation, recorder, homeassistant.scene, button, xiaomi_gateway3.alarm_control_panel, timer, tts, hardware, ping.sensor, ecowitt.binary_sensor, lock, history, prometheus, lovelace, version.binary_sensor, analytics, xiaomi_miio, telegram.notify, assist_pipeline, telegram_bot, file_upload, input_button, reolink.siren, wake_word, reolink.number, xiaomi_gateway3.text, media_player, script, yandex_dialogs, template.sensor, tuya_local.switch, input_datetime, webhook, xiaomi_gateway3.sensor, xiaomi_gateway3.select, zeroconf, speedtestdotnet.sensor, homeassistant_alerts, mobile_app, hacs.update, localtuya, onvif.switch, sun, blitzortung, logbook, nmap_tracker, mqtt, zone, application_credentials, profiler, image_upload, blitzortung.geo_location, onboarding, ping, systemmonitor.binary_sensor, logger, template.binary_sensor, statistics.sensor, xiaomi_gateway3.switch, xiaomi_gateway3.light, yandex_station.select, input_number, mqtt.binary_sensor, esphome.switch, tuya_local.button, reolink.button, binary_sensor, upnp.binary_sensor, auth, conversation, xiaomi_gateway3, mqtt.button, mqtt.switch, samsungtv, device_automation, speedtestdotnet, ssdp, counter, repairs, diagnostics, yandex_station.notify, upnp.sensor, hass_diagnostics.sensor, remote_syslog, group, input_text, onvif.button, websocket_api, update, asuswrt.device_tracker, usb, stream, cloud, braviatv, command_line.binary_sensor The system is waiting for tasks: {<Task pending name='Task-3923' coro=<HacsBase.startup_tasks() running at /config/custom_components/hacs/base.py:667> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()]> cb=[set.remove()]>}
bdraco commented 2 months ago

Home Assistant 2024.8.3

{<Task pending name='Task-3923' coro=<HacsBase.startup_tasks() running at /config/custom_components/hacs/base.py:667> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()]> cb=[set.remove()]>} That's unrelated to this issue as its HACS

joostlek commented 2 months ago

@garry0garry that's an issue in HACS and unrelated to this issue

garry0garry commented 2 months ago

that's an issue in HACS and unrelated to this issue

Thanks! https://github.com/hacs/integration/issues/4002

unfug-at-github commented 2 months ago

Could it be that you are loading a very large amount of data for the statistics? It would be helpful to provide some more details: e.g. the definition of the sensor as well as the frequency of changes for the input sensor.

garry0garry commented 1 month ago

Home Assistant 2024.10.0, HACS 2.0.1 - nothing has changed. Every time I reboot HA I get this warning. Detailed data is presented here.