Skip to content

Zaptec polling intervals #202

@sveinse

Description

@sveinse

To reduce the polling foot-print on Zaptec cloud, there is a need to implement context dependent poll-intervals.

This is the current proposal based on conversation with Zaptec. See #176 (comment)

State Endpoints (GET) Poll interval
Chargers: Charging chargers/{id}/state 60 second
Chargers: Disconnected/idle chargers/{id}/state 10 minute
Chargers: Info charger/{id} 60 minute
Installation: Info installation/{id} 10 minute
Firmware updates chargerFirmware/installation/{id} 1 day
Structure installation, installation/{id}/hierarchy 1 day Only at startup
Charger commands chargers/{id}/state 2, 7, 15 seconds (1)
Installation commands installation/{id} 2, 7 seconds (2)
  • (1) "Commands" are any action from HA that results in POST or PUT sent to Zaptec. This will happen only once. The resulting sequence of polling at intervals is using GET state to ensure the local data is updated sufficiently fast for UX and are able to handle latencies on the cloud side. The exact delay values can be fine tuned later.
  • (2) Installations doesn't have state, so the only end-point to use for polling is `installation/{id}´

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions