Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating state took 1.101 seconds #637

Open
eikowagenknecht opened this issue Feb 25, 2024 · 5 comments
Open

Updating state took 1.101 seconds #637

eikowagenknecht opened this issue Feb 25, 2024 · 5 comments

Comments

@eikowagenknecht
Copy link

What version of Spook are you using?

2.2.2

What version of Home Assistant are you using?

2024.2.2

The problem

Getting errors in the logs.

Anything in the logs? Paste it here!

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1152
First occurred: February 23, 2024 at 04:54:44 (1 occurrences)
Last logged: February 23, 2024 at 04:54:44

Updating state for sensor.media_players (<class 'custom_components.spook.ectoplasms.homeassistant.sensor.HomeAssistantSpookSensorEntity'>) took 1.101 seconds. Please create a bug report at https://github.com/frenck/spook/issues
@DaN66O
Copy link

DaN66O commented Feb 26, 2024

A similar warning

Updating state for sensor.climate (<class 'custom_components.spook.ectoplasms.homeassistant.sensor.HomeAssistantSpookSensorEntity'>) took 0.768 seconds. Please create a bug report at https://github.com/frenck/spook/issues

@bdraco
Copy link

bdraco commented Mar 4, 2024

I was recently looking at a profile for a user and found the problem might be that when all the repairs fire and they all do a linear search of the entity registry to get the entity ids multiple times.

If the call to async_get_all_entity_ids only happened once instead of for every repair it would mostly solve the issue

Screenshot 2024-03-04 at 11 01 54 AM Screenshot 2024-03-04 at 11 09 04 AM

@bdraco
Copy link

bdraco commented Mar 4, 2024

Or maybe increase the debounce time as it was firing almost every 3s on the users system

@frenck frenck mentioned this issue Mar 23, 2024
12 tasks
@robinhood-code
Copy link

got a similar warning:

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1161
First occurred: 9:47:19 AM (1 occurrences)
Last logged: 9:47:19 AM

Updating state for sensor.weather (<class 'custom_components.spook.ectoplasms.homeassistant.sensor.HomeAssistantSpookSensorEntity'>) took 0.617 seconds. Please create a bug report at https://github.com/frenck/spook/issues

@frenck
Copy link
Owner

frenck commented Apr 18, 2024

@robinhood-code That was already reported above. You could consider just adding a 👍 to the start topic, instead repeating the same message 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants