Skip to content

homematicip.connection.throttling

homematicip.connection.throttling

Remembers when the cloud last throttled this process.

The cloud throttles by public IP, so one 429 from any connection or access point means every call from this process is blocked for a while. The app shows the block for at least 15 minutes and no response has carried a Retry-After header so far, so the cooldown is a fixed guess.

clear_throttled

clear_throttled

Forget the last 429, for tests and for clients that know the block is over.

record_throttled

record_throttled

Call when the cloud answered with a 429.

throttle_cooldown_remaining

throttle_cooldown_remaining

Seconds until a call to the cloud is worth trying again, 0 when it is not throttled.