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

Would be nice to have poll frequency configurable #16

Open
hari2m opened this issue Nov 7, 2022 · 3 comments
Open

Would be nice to have poll frequency configurable #16

hari2m opened this issue Nov 7, 2022 · 3 comments

Comments

@hari2m
Copy link

hari2m commented Nov 7, 2022

In cases where automations are setup for closing the garage door when the charger is plugged in, it takes lot of time for HA to know that the charger is plugged in, if we can configure the poll frequency we can avoid lag in automations.

@mbillow
Copy link
Owner

mbillow commented Dec 4, 2022

The polling interval that is set it to avoid causing undue stress on the ChargePoint APIs. Unfortunately, given the nature of pure-polling integrations, they aren't suited for real-time automation. Even if the polling interval was configurable, it still be on the scale of minutes. Which, in the best case scenario, means your garage door would close a minute after you plugged your car in. That still seems pretty sub-optimal.

That said, in the global settings API endpoint, it returns a panda_websocket_endpoint which might be a path forward for us to get push updates from ChargePoint on charger status changes. I haven't had time to play with this yet, so I am just speculating though.

@tylerpieper
Copy link

I know this is bumping an old topic, but would it be possible to add a diagnostic entity to "update now" with an internal cooldown to prevent too many refreshes in a short period? Then, we could automate a refresh based on 5 minutes after coming home, or when the garage door tripwire sensor is triggered.

@almoney
Copy link

almoney commented Mar 12, 2024

Be careful with over polling. Charge point is getting a bill for those polls. Hourly should be fine.

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

4 participants