Open KitHubek opened 2 years ago
I have the exact same problem...and then all the entities become unavailable. But if I reload the integration, it starts working fine again....
update with entities behaviour. the same here as post before. After that error i provided at my first post, all entities are unavialable :/
Same exact stuff for me.
Is it a persistent problem? Connection issues happen from time to time, but all entities should be back online after the next successful polling (30 seconds by default)
I mean the connection issues happen pretty often ngl. The question is if its coming from nuki_ng or from nuki itself.
Also this comes up in the console.
2022-08-02 17:13:00.765 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140293901890416] Http response: 503
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/nuki_ng/lock.py", line 53, in async_lock
await self.coordinator.action(self.device_id, "lock")
File "/config/custom_components/nuki_ng/nuki.py", line 392, in action
result = await self.api.bridge_lock_action(dev_id, action, device_type)
File "/config/custom_components/nuki_ng/nuki.py", line 93, in bridge_lock_action
return await self.async_json(
File "/config/custom_components/nuki_ng/nuki.py", line 38, in async_json
raise ConnectionError(f"Http response: {response.status_code}")
ConnectionError: Http response: 503
The bridge unfortunately supports only one http request at a time. If multiple http requests are received, the other not processed receive the 503 response. This means that some other component is querying the bridge.
Make sure you uninstalled the official HA Nuki integration, or make sure you're not using the Nuki mobile app that could potentially query the bridge, but if it happens very often, it shouldn't be the mobile app, that you occasionally open.
Logger: custom_components.nuki_ng.nuki Source: custom_components/nuki_ng/nuki.py:72 Integration: Nuki Lock (documentation, issues) First occurred: 12:44:29 (2 occurrences) Last logged: 12:45:00
Failed to get latest data: ("Connection broken: InvalidChunkLength(got length b'HTTP/1.1 200 OK\r\n', 0 bytes read)", InvalidChunkLength(got length b'HTTP/1.1 200 OK\r\n', 0 bytes read))