{"record":{"id":"8c9fc6eacf29fd4f","repo":"home-assistant/core","slug":"failed-arm","errorCode":"failed_arm","errorMessage":"Blink failed to arm camera.","messagePattern":"Blink failed to arm camera\\.","errorType":"exception","errorClass":"HomeAssistantError","httpStatus":null,"severity":"error","filePath":"homeassistant/components/blink/camera.py","lineNumber":82,"sourceCode":"            name=name,\n            manufacturer=DEFAULT_BRAND,\n            model=camera.camera_type,\n        )\n        _LOGGER.debug(\"Initialized blink camera %s\", self._camera.name)\n\n    @property\n    @override\n    def extra_state_attributes(self) -> Mapping[str, Any] | None:\n        \"\"\"Return the camera attributes.\"\"\"\n        return self._camera.attributes\n\n    @override\n    async def async_enable_motion_detection(self) -> None:\n        \"\"\"Enable motion detection for the camera.\"\"\"\n        try:\n            await self._camera.async_arm(True)\n        except TimeoutError as er:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"failed_arm\",\n            ) from er\n        except UnauthorizedError as er:\n            self.coordinator.config_entry.async_start_reauth(self.hass)\n            raise ConfigEntryAuthFailed(\"Blink authorization failed\") from er\n\n        self._camera.motion_enabled = True\n        await self.coordinator.async_refresh()\n\n    @override\n    async def async_disable_motion_detection(self) -> None:\n        \"\"\"Disable motion detection for the camera.\"\"\"\n        try:\n            await self._camera.async_arm(False)\n        except TimeoutError as er:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/blink/camera.py#L64-L100","documentation":"blink camera.async_enable_motion_detection wraps a TimeoutError from camera.async_arm(True) into HomeAssistantError with translation key 'failed_arm' ('Blink failed to arm camera.'). The request to enable motion detection on the camera timed out against the Blink cloud; motion_enabled is not set and the coordinator is not refreshed.","triggerScenarios":"Calling enable_motion_detection (or the camera.enable_motion_detection service) when the blinkpy HTTP request exceeds its timeout — Blink cloud latency, network issues, or the camera being offline/asleep.","commonSituations":"Camera batteries asleep or offline; Blink cloud slowdowns; automation toggling motion on many cameras simultaneously saturating blinkpy's request queue.","solutions":["Confirm the camera is online in the Blink app.","Retry the enable call once the camera wakes (battery cameras sleep between events).","Avoid enabling motion on many cameras in one burst; stagger the calls.","Check Blink cloud status if all cameras time out."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"from homeassistant.exceptions import HomeAssistantError\n\ntry:\n    await camera.async_enable_motion_detection()\nexcept HomeAssistantError as err:\n    if err.translation_key == \"failed_arm\":\n        _LOGGER.warning(\"Camera asleep/offline; retrying once\")\n        await asyncio.sleep(10)\n        await camera.async_enable_motion_detection()","preventionTips":["Confirm cameras are online before bulk motion-enable automations.","Stagger motion detection calls; battery cameras need time to wake."],"tags":["home-assistant","blink","camera","motion-detection","timeout"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}