async def METHOD_NAME(config, action_id, template_arg, args):
    var = cg.new_Pvariable(action_id, template_arg)
    await cg.register_parented(var, config[CONF_ID])
    template_channel = await cg.templatable(config[CONF_CHANNEL], args, int)
    cg.add(var.set_channel(template_channel))
    return var