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
69.77k stars 28.91k forks source link

Updating state for number.sensor #114190

Open Sardonunsi opened 3 months ago

Sardonunsi commented 3 months ago

The problem

Logger: homeassistant.helpers.entity Source: helpers/entity.py:1155 First occurred: March 24, 2024 at 12:09:02 (1 occurrences) Last logged: March 24, 2024 at 12:09:02

Updating state for number.sensor_presencia_habitacion_radar_sensitivity (<class 'homeassistant.components.mqtt.number.MqttNumber'>) took 0.526 seconds. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

What version of Home Assistant Core has the issue?

System Information version | core-2024.3.3 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.12.2 os_name | Linux os_version | 6.6.20-haos arch | x86_64 timezone | Europe/Madrid config_dir | /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1402 Downloaded Repositories | 21
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | January 10, 2025 at 01:00 relayer_connected | true relayer_region | eu-central-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | false remote_server | eu-central-1-2.ui.nabu.casa certificate_status | ready instance_id | 4475175edf9346a2819c7df4cea49318 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.1 -- | -- update_channel | stable supervisor_version | supervisor-2024.03.0 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 219.4 GB disk_used | 35.0 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Home Assistant Google Drive Backup (0.112.1), Studio Code Server (5.15.0), MariaDB (2.6.1), Terminal & SSH (9.10.0), File editor (5.8.0), Zigbee2MQTT (1.36.0-1), Mosquitto broker (6.4.0), Samba share (12.3.1)
Dashboards dashboards | 5 -- | -- resources | 10 views | 21 mode | storage
Recorder oldest_recorder_run | March 16, 2024 at 08:28 -- | -- current_recorder_run | March 24, 2024 at 10:17 estimated_db_size | 5121.00 MiB database_engine | mysql database_version | 10.6.12

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

MQTT Mini human breathe sensor (ZY-M100-S_2) by TuYa

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?

No response

Additional information

No response

bdraco commented 2 months ago

Its likely you have an integration blocking the event loop

  1. Install profiler integration https://my.home-assistant.io/redirect/config_flow_start/?domain=profiler
  2. Enable asyncio debug service as soon as possible after startup https://www.home-assistant.io/integrations/profiler/#service-profilerset_asyncio_debug
  3. Watch logs for RuntimeError: Non-thread-safe operation and long asyncio delays
  4. Download and post logs with full trace

For 2024.5.x and later Home Assistant debug mode can also be enabled in configuration.yaml

homeassistant:
  debug: true