{"record":{"id":"f170d6cd2cf34ce6","repo":"home-assistant/core","slug":"failed-arm-motion","errorCode":"failed_arm_motion","errorMessage":"Blink failed to arm camera motion detection.","messagePattern":"Blink failed to arm camera motion detection\\.","errorType":"exception","errorClass":"HomeAssistantError","httpStatus":null,"severity":"warning","filePath":"homeassistant/components/blink/switch.py","lineNumber":77,"sourceCode":"        self.entity_description = description\n        serial = self._camera.serial\n        self._attr_unique_id = f\"{serial}-{description.key}\"\n        self._attr_device_info = DeviceInfo(\n            identifiers={(DOMAIN, serial)},\n            serial_number=serial,\n            name=camera,\n            manufacturer=DEFAULT_BRAND,\n            model=self._camera.camera_type,\n        )\n\n    @override\n    async def async_turn_on(self, **kwargs: Any) -> None:\n        \"\"\"Turn the switch on.\"\"\"\n        try:\n            await self._camera.async_arm(True)\n\n        except TimeoutError as er:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"failed_arm_motion\",\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        await self.coordinator.async_refresh()\n\n    @override\n    async def async_turn_off(self, **kwargs: Any) -> None:\n        \"\"\"Turn the switch off.\"\"\"\n        try:\n            await self._camera.async_arm(False)\n\n        except TimeoutError as er:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,","sourceCodeStart":59,"sourceCodeEnd":95,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/blink/switch.py#L59-L95","documentation":"HomeAssistantError with translation key 'failed_arm_motion' raised when the camera motion-detection switch is turned on and camera.async_arm(True) raises TimeoutError. The Blink API did not answer the arm request in time; only the switch command failed, the integration itself stays healthy.","triggerScenarios":"Toggle switch.blink <camera>_motion_enabled on while Blink's cloud is slow/unresponsive: the async_arm HTTP request exceeds its timeout and TimeoutError propagates.","commonSituations":"Blink server latency spikes; camera offline so the arm command cannot complete; coinciding with a coordinator refresh saturating the client session.","solutions":["Retry the switch toggle after a minute — transient Blink cloud slowness is the usual cause","Confirm the camera is online in the Blink app (an offline camera cannot arm)","Check for a Blink outage if every command times out","If persistent, reload the entry or restart HA to rebuild the HTTP session"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    await switch.async_turn_on()\nexcept HomeAssistantError as err:\n    if \"failed_arm_motion\" in str(err):\n        # transient Blink slowness: back off and retry once\n        await asyncio.sleep(30)\n        await switch.async_turn_on()","preventionTips":["Wrap Blink switch toggles in automations with retry-once-with-delay logic","Check camera online state before commanding arm/disarm","Expect occasional cloud latency; do not treat single timeouts as device failure"],"tags":["blink","switch","timeout","motion-detection","camera"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}