-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
Tellduslive: update_interval is wrong #20169
Comments
CC @fredrike |
With the configuration integration the custom update interval configuration have been depricated. It is however still configured if you are configuring via I don't see a good way to configure it via configuration integration. Perhaps you have an idea how this should be implemented and shown during configuration and setup. |
For me you don't have to be able to configure this. A 5 sec interval will do it "good enough". The major problem now is that it uses 60 sec scan interval for the update interval as well. 60s doesn't cut it if you are using motion sensors for triggering lights etc. I haven't looked at the complete code but I would think that replacing [KEY_SCAN_INTERVAL] on row 79(as I did with a static 5s) in init.py with something like [KEY_UPDATE_INTERVAL] would do the trick. Don't know if that value/parameter exist as is. I might be able to have a look over the weekend but I belive that you are a much better programmer than me ;) |
I haven't had time to look at it. To much family ;) . But as it seem 5 sek is to little. it will break HA if there is a lot of entities(>20). I did end up with 10 sek. |
@fredrike the docs https://www.home-assistant.io/components/tellduslive/ says it can be changed? |
It have always been 60s as default update interval. As you can see here https://github.com/home-assistant/home-assistant/blob/6df5e712f7ab7e4275c7eca09e8494641d5485c2/homeassistant/components/tellduslive.py#L41 And as mentioned in the original post the value is currently set here: https://github.com/home-assistant/home-assistant/blob/c8d885fb78d747478dbd0e5253ff6d9bcf804f9c/homeassistant/components/tellduslive/__init__.py#L79 It can be changed either by editing the As I've been saying, give me a different reasonable default interval (that doesn't hit the api limits or makes ha unresponsive #20268) |
Okey Fredrik thanks for clearing some things up. |
Hi. I am about to upgrade from 0.64.3 to 0.88.2 One thing i noticed is the Telldus component have problem in 0.88.2 |
@molobrakos Do you remember what you did to make the changes show up instantly? Edit: It is due to the removal of |
@xydix Create a new issue with the current description and I'll ship a fix asap. |
I think this should be closed by the documentation added in home-assistant/home-assistant.io#8481 |
I close it now |
@fredrike No need for a new issue, right? If I understand things right you solved it? |
Home Assistant release with the issue:
0.85.1
Last working Home Assistant release (if known):
0.84.x
Operating environment (Hass.io/Docker/Windows/etc.):
ubuntu 18.04
Component/platform:
https://www.home-assistant.io/components/tellduslive/
Description of problem:
Entity state updates are slow. Up to a minute.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
After testing I changed the interval value in init.py like this:
79 interval = timedelta(seconds=5)
80 # interval = timedelta(seconds=entry.data[KEY_SCAN_INTERVAL])
81 _LOGGER.debug('Update interval %s', interval)
Then it works. Looks like it's getting the scan_interval (or something) in seconds(60) instead of update_interval in seconds(5)
The text was updated successfully, but these errors were encountered: