Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Update setting isn't used / Too many site requests #54

Open
ffuuuuu opened this issue Oct 18, 2024 · 3 comments
Open

Update setting isn't used / Too many site requests #54

ffuuuuu opened this issue Oct 18, 2024 · 3 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@ffuuuuu
Copy link

ffuuuuu commented Oct 18, 2024

The problem

I setup the script to monitor just a single connection. Set it to 5 minutes update time and later even 10 minutes but noticed through my pi.hole that the DB mobile site gets accessed like every 5 seconds. This is very abnormal behavior and is almost like a DDOS to the site when used on mass. So this should really be fixed.

What version of Home Assistant Core has the issue?

2024-9-3

What version of DeutscheBahn Integration has the issue?

latest

What type of installation are you running?

Home Assistant Container

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@FaserF
Copy link
Owner

FaserF commented Oct 18, 2024

Thanks for the Feedback. This is a similar issue to #48
5 seconds should not be possible, since the limit and minimum from HA itself is 30 seconds. But you are right, it refreshes every 30 seconds despite the fact that something different is set up.

Do you use multiple connections which may explains the 5 seconds?

@FaserF FaserF added the bug Something isn't working label Oct 18, 2024
@FaserF FaserF self-assigned this Oct 18, 2024
@FaserF FaserF added the duplicate This issue or pull request already exists label Oct 18, 2024
@ffuuuuu
Copy link
Author

ffuuuuu commented Oct 19, 2024

Thanks for the Feedback. This is a similar issue to #48 5 seconds should not be possible, since the limit and minimum from HA itself is 30 seconds. But you are right, it refreshes every 30 seconds despite the fact that something different is set up.

Do you use multiple connections which may explains the 5 seconds?

Yes, indeed it is very strange. Just a single connection and 3 added times if that makes sense.

@sonyboypatrick
Copy link

I'm using this integration since some weeks. I have 4 connections, each of them is configured with a default poll level of 2 minutes and if I look into my adguardhome, mobile.bahn.de is querried a lot.

image

There are gaps with nearly 30 seconds between some of the querries

image
image

but between the gaps, its querried a lot ...

image

I hope you can identify the bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants