{"record":{"id":"f4dd1a16ec755d41","repo":"home-assistant/core","slug":"activity-not-found","errorCode":null,"errorMessage":"activity_not_found","messagePattern":"activity_not_found","errorType":"validation","errorClass":"ServiceValidationError","httpStatus":null,"severity":"warning","filePath":"homeassistant/components/bring/services.py","lineNumber":78,"sourceCode":"                translation_key=\"entity_not_found\",\n                translation_placeholders={\n                    ATTR_ENTITY_ID: call.data[ATTR_ENTITY_ID],\n                },\n            )\n        config_entry: BringConfigEntry = service.async_get_config_entry(\n            hass, DOMAIN, entity.config_entry_id\n        )\n\n        coordinator = config_entry.runtime_data.data\n\n        list_uuid = entity.unique_id.split(\"_\")[1]\n\n        activity = state.attributes[EventEntityStateAttribute.EVENT_TYPE]\n\n        reaction: ReactionType = call.data[ATTR_REACTION]\n\n        if not activity:\n            raise ServiceValidationError(\n                translation_domain=DOMAIN,\n                translation_key=\"activity_not_found\",\n            )\n        try:\n            await coordinator.bring.notify(\n                list_uuid,\n                BringNotificationType.LIST_ACTIVITY_STREAM_REACTION,\n                receiver=state.attributes[ATTR_RECEIVER],\n                activity=state.attributes[ATTR_ACTIVITY],\n                activity_type=ActivityType(activity.upper()),\n                reaction=reaction,\n            )\n        except (BringRequestException, BringAuthException) as e:\n            raise HomeAssistantError(\n                translation_domain=DOMAIN,\n                translation_key=\"reaction_request_failed\",\n            ) from e\n","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/bring/services.py#L60-L96","documentation":"ServiceValidationError with translation_key activity_not_found (bring/services.py:78), rendered as 'Failed to send reaction for Bring! — No recent activity found'. Raised by send_reaction when the selected activities event entity has an empty event_type attribute (state.attributes[EventEntityStateAttribute.EVENT_TYPE] is falsy) — i.e. the list has no recent activity to react to.","triggerScenarios":"Calling bring.send_reaction against an activities event entity that has never fired (or its event attributes were cleared): the code reads the event_type attribute and, if empty, refuses to send because there is no activity to attach the reaction to.","commonSituations":"Manually testing the service on a freshly loaded list with no member activity yet; triggering from a stale automation after the event entity reset; list members inactive so no recent events exist.","solutions":["Wait until a list member actually adds/changes/removes items so the event entity records activity, then call send_reaction.","Trigger the service from an event/state automation on the activities entity so it only runs after a real event.","Verify in Developer Tools -> States that the event entity has a non-empty event_type attribute before calling.","If the attribute should be populated but is not, reload the bring integration to refresh the activity stream."],"exampleFix":"# before (fires blindly)\n- action: bring.send_reaction\n  data: {entity_id: event.bring_activities, reaction: thumbs_up}\n# after (only react after an activity event)\n- trigger: {platform: state, entity_id: event.bring_activities}\n- action: bring.send_reaction\n  data: {entity_id: event.bring_activities, reaction: thumbs_up}","handlingStrategy":"validation","validationCode":"attrs = hass.states.get(entity_id).attributes\nevent_type = attrs.get(\"event_type\")\nif not event_type:\n    raise ServiceValidationError(\"No recent activity on this list; nothing to react to\")","typeGuard":"def has_recent_activity(state) -> bool:\n    return bool(state and state.attributes.get(\"event_type\"))","tryCatchPattern":"from homeassistant.exceptions import ServiceValidationError\n\ntry:\n    await hass.services.async_call(\"bring\", \"send_reaction\", service_data, blocking=True)\nexcept ServiceValidationError as err:\n    if err.translation_key == \"activity_not_found\":\n        # wait for a real activity event before reacting\n        pass\n    else:\n        raise","preventionTips":["Trigger send_reaction from the activities event entity firing, never manually on a quiet list.","Check the event entity's event_type attribute is populated before calling.","Reload the integration if the attribute looks stale."],"tags":["bring","home-assistant","service-call","activity","validation"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}