How do i set up an event service only for a certain entity

How do i set an event task change only for a certain entity. Like for example, I changed the status of the task , i want the status of the entity to change but I want this to happen only for Animation and not for Asset entity. How do i set this to happen.

You mean in the event daemon? In the configuration you specify what entity to listen for.

I have tried entering the id of the entity in the args but it still works for all other entities too. Yes in the event deamon.args = {
“task_status_field”: “sg_status_list”,
“task_com_status”: “com”,
“task_ip_status”: “ip”,
“task_not_ready_status”: “wtg”,
“task_blocked_status”: “blo”,
“target_status_field”: “sg_status_list”,
“target_com_status”: “com”,
“target_ip_status”: “ip”,
“target_disable_status”: “wtg”,
“target_blocked_status”: “blo”,
“step_id”: 646,
“entity_id”: 7633,
“entity_type”: “CustomEntity05”,
}

You must specify the entity (and optionally fields) when you register the handler:

    reg.registerCallback(
        script_name,
        script_key,
        image_change,
        {"Shotgun_Version_Change": ["sg_status_list"]},
        None
    )

reg.registerCallback(
script_name,
script_key,
update_entity_status,
{“Shotgun_Task_Change”: args[“task_status_field”]},
args,
)
reg.logger.debug(“Registered callback.”)
My call back does find task change , how do i add entity under this? Is it something like Shotgun_animation_task_change?

I believe you just add two callbacks - they have to be different for different entities, anyway.